/* Static styles for checkout UI that is created dynamically by JavaScript. */

.checkout-context {
  grid-column: 1 / -1;
  padding: 13px 14px;
  border: 1px solid #20e7ff38;
  border-radius: 14px;
  background: #20e7ff0d;
  color: #d9faff;
  line-height: 1.45;
}

.checkout-context a {
  color: var(--lime);
  font-weight: 900;
}

.checkout-saved {
  grid-column: 1 / -1;
}

.checkout-saved select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ffffff22;
  border-radius: 14px;
  background: #080615;
  color: #fff;
}

.checkout-field.locked input,
.checkout-field.locked textarea {
  opacity: .72;
  cursor: not-allowed;
}

.checkout-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  background: #ffffff08;
}

.checkout-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  cursor: pointer;
}

.checkout-options input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0;
}

.checkout-options input[type="text"] {
  margin-top: 5px;
}

.checkout-delivery {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.checkout-delivery-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.checkout-delivery-title b {
  font-size: 16px;
}

.delivery-options {
  display: grid;
  gap: 9px;
}

.delivery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #ffffff22;
  border-radius: 15px;
  background: #ffffff08;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.delivery-option:has(input:checked) {
  border-color: #20e7ff99;
  background: #20e7ff12;
  box-shadow: inset 0 0 0 1px #20e7ff33;
}

.delivery-option input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.delivery-option b {
  display: block;
  color: #fff;
}

.delivery-option span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.delivery-option strong {
  white-space: nowrap;
  color: var(--lime);
  font-size: 17px;
}

.delivery-option small {
  display: block;
  margin-top: 4px;
  color: #d9faff;
}

.checkout-delivery-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-loading {
  opacity: .68;
  pointer-events: none;
}

.checkout-address-hidden {
  display: none !important;
}

.cdek-city-field,
.gar-checkout-control {
  position: relative;
}

.cdek-city-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cab9df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px #4b30652e;
}

.cdek-city-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #ece4f3;
  background: transparent;
  color: #332343;
  text-align: left;
  cursor: pointer;
}

.cdek-city-option:last-child {
  border-bottom: 0;
}

.cdek-city-option:hover {
  background: #f8f2fc;
}

.cdek-city-option span,
.cdek-city-hint {
  color: #75677f;
  font-size: 12px;
}

.cdek-city-hint {
  display: block;
  margin-top: 5px;
}

.cdek-city-hint.error {
  color: #a52b48;
}

.cdek-suggestion-state {
  padding: 12px;
  color: #75677f;
}

.cdek-suggestion-state.error {
  color: #a52b48;
}

.cdek-provider-panel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #cab9df;
  border-radius: 15px;
  background: #fbf8fd;
  color: #332343;
}

.cdek-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cdek-panel-heading div {
  display: grid;
  gap: 3px;
}

.cdek-panel-heading small {
  color: #75677f;
}

.cdek-panel-heading small.error {
  color: #a52b48;
}

.cdek-control {
  display: grid;
  gap: 6px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.cdek-control span {
  font-weight: 800;
}

.cdek-provider-panel select,
.cdek-provider-panel input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cab9df;
  border-radius: 12px;
  background: #fff;
  color: #332343;
}

.cdek-pickup-fields {
  display: grid;
  gap: 11px;
}

.cdek-point-search-control {
  margin-top: 2px;
}

.cdek-point-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dfd2ea;
  border-radius: 12px;
  background: #fff;
}

.cdek-point-card span,
.cdek-point-card small {
  color: #75677f;
}

.gar-checkout-hint {
  display: block;
  margin-top: 6px;
  color: #746b7c;
  font-size: 12px;
  line-height: 1.35;
}

.gar-checkout-suggestions {
  position: absolute;
  z-index: 95;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #7d69ad55;
  border-radius: 14px;
  background: #fffdfb;
  box-shadow: 0 18px 48px #49365d2b;
}

.gar-checkout-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #49365d18;
  background: transparent;
  color: #251b2d;
  text-align: left;
  cursor: pointer;
}

.gar-checkout-option:last-child {
  border-bottom: 0;
}

.gar-checkout-option:hover {
  background: #7d69ad10;
}

.gar-checkout-option b {
  font-size: 14px;
}

.gar-checkout-option span {
  color: #746b7c;
  font-size: 12px;
}

.gar-checkout-state {
  padding: 11px;
  color: #746b7c;
}

.gar-checkout-state.error {
  color: #b72d57;
}

.checkout-payment {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
  padding: 15px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: #ffffff08;
}

.checkout-payment-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.checkout-payment-heading b {
  font-size: 16px;
}

.checkout-payment-heading span {
  color: var(--muted);
  font-size: 13px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding: 14px;
  border: 1px solid #ffffff22;
  border-radius: 15px;
  background: #08061580;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.payment-option:has(input:checked) {
  border-color: #20e7ff99;
  background: #20e7ff12;
  box-shadow: inset 0 0 0 1px #20e7ff33;
}

.payment-option input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.payment-option b {
  display: block;
  color: #fff;
}

.payment-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.payment-option[data-method="sbp"] b::before {
  content: "⚡ ";
  color: var(--lime);
}

.payment-receipt-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b8ff5038;
  border-radius: 12px;
  background: #b8ff500b;
  color: #dcffb8;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-dialog {
  width: min(650px, calc(100% - 24px));
  padding: 0;
  border: 1px solid #ffffff2c;
  border-radius: 24px;
  background: #151029;
  color: #fff;
  box-shadow: 0 30px 100px #000c;
}

.checkout-dialog::backdrop {
  background: #05030dcc;
  backdrop-filter: blur(6px);
}

.checkout-dialog header,
.checkout-dialog footer {
  padding: 20px 22px;
}

.checkout-dialog header {
  border-bottom: 1px solid #ffffff18;
}

.checkout-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ffffff18;
}

.checkout-dialog h2 {
  margin: 0 0 6px;
  font-size: 30px;
  text-transform: none;
  letter-spacing: -.04em;
}

.checkout-dialog [data-dialog-subtitle] {
  color: var(--muted);
}

.checkout-dialog-error {
  margin: 0 22px;
  padding: 12px 14px;
  border: 1px solid #d86b6b;
  border-radius: 12px;
  background: #fff1f1;
  color: #8a1f1f;
  font-weight: 700;
  white-space: pre-line;
}

.checkout-dialog[aria-busy="true"] {
  cursor: progress;
}

.checkout-dialog[aria-busy="true"] button {
  cursor: wait;
}

.checkout-dialog-body {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
}

.checkout-summary-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #ffffff10;
}

.checkout-summary-row span {
  color: var(--muted);
}

.checkout-summary-total {
  color: var(--lime);
  font-size: 25px;
}

.checkout-summary-price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
}

.checkout-summary-price span {
  color: var(--muted);
}

.checkout-summary-price.total {
  margin-top: 5px;
  padding-top: 13px;
  border-top: 1px solid #ffffff22;
  font-size: 18px;
}

.checkout-dialog button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.checkout-dialog [data-cancel] {
  background: #ffffff12;
}

.checkout-dialog [data-confirm] {
  background: linear-gradient(135deg, var(--pink), var(--purple, var(--violet)));
}

.checkout-empty-actions {
  margin-top: 16px;
}

.checkout-honeypot {
  position: absolute;
  left: -10000px;
}

.summary-note-link {
  color: var(--lime);
  font-weight: 900;
}

@media (max-width: 620px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .delivery-option {
    grid-template-columns: auto 1fr;
  }

  .delivery-option strong {
    grid-column: 2;
  }

  .checkout-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .checkout-dialog footer {
    flex-direction: column-reverse;
  }

  .checkout-dialog button {
    width: 100%;
  }
}
