.express-checkout-buttons {
  position: relative;
}

.apple-pay-static-button {
  align-items: center;
  background: #000;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 500;
  gap: 3px;
  height: 55px;
  justify-content: center;
  left: 0;
  padding: 0;
  position: absolute;
  top: 4px;
  width: calc(50% - 4px);
  z-index: 2;
}

.apple-pay-static-button svg {
  fill: currentColor;
  height: 27px;
  width: 23px;
}

.apple-pay-static-button > * {
  transition: opacity 160ms ease;
}

.link-wallet-overlay {
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  height: 55px;
  padding: 0;
  position: absolute;
  right: 0;
  top: 4px;
  width: calc(50% - 4px);
  z-index: 3;
}

.apple-pay-static-button::after,
.link-wallet-overlay::after {
  animation: wallet-spinner 650ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  border-top-color: #fff;
  content: "";
  height: 18px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  width: 18px;
}

.apple-pay-static-button.wallet-button-loading > * {
  opacity: 0;
}

.apple-pay-static-button.wallet-button-loading::after,
.link-wallet-overlay.wallet-button-loading::after {
  opacity: 1;
}

.link-wallet-overlay.wallet-button-loading {
  background: #00d66f;
}

.link-wallet-overlay.wallet-button-loading::after {
  border-color: rgba(0, 0, 0, 0.3);
  border-top-color: #000;
}

.wallet-button-loading {
  cursor: wait;
}

.PhoneNumberCountryCodeSelect-flagIconContainer .checkout-flag-icon,
.PhoneNumberCountryCodeSelect-flagIconContainer .PhoneNumberCountryCodeSelect-flagIcon {
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  font-size: 16px;
  height: 16px;
  line-height: 16px;
  overflow: hidden;
  width: 16px;
}

.wallet-unavailable-notice {
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 14px;
  left: 50%;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  top: 20px;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: max-content;
  z-index: 10000;
}

.wallet-unavailable-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes wallet-spinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.CheckoutPaymentForm {
  padding-bottom: 96px;
}

.ProductSummary-buttonsContainer {
  display: none;
}

.FormFieldInput-Icons {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  transition: transform 500ms ease-in-out;
}

.FormFieldInput-Icons.card-brand-detected {
  transform: translateX(20px);
}

.FormFieldInput-IconsIcon {
  flex: 0 0 28px;
  max-width: 28px;
  width: 28px;
  transition: flex-basis 500ms ease-in-out, opacity 400ms ease-in-out,
    transform 500ms ease-in-out, width 500ms ease-in-out,
    max-width 500ms ease-in-out, margin 500ms ease-in-out,
    padding 500ms ease-in-out;
}

.FormFieldInput-IconsIcon.card-brand-hidden {
  flex-basis: 0;
  margin: 0 !important;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 !important;
  transform: scale(0.75);
  width: 0 !important;
}

.FormFieldInput-IconsIcon.card-brand-selected {
  opacity: 1;
  transform: scale(1);
}

.card-validation-invalid {
  border-radius: var(--rounded) var(--rounded) 0 0;
  box-shadow: inset 0 0 0 1px #df1b41;
  outline: 1px solid #df1b41;
  outline-offset: -1px;
  position: relative;
  z-index: 2;
}

.card-validation-invalid:focus-within {
  box-shadow: inset 0 0 0 2px #df1b41;
  outline-width: 2px;
}

.card-validation-invalid::after {
  border: 1px solid #df1b41;
  border-radius: inherit;
  box-sizing: border-box;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.expiration-validation-field.card-validation-invalid {
  border-radius: 0 0 0 var(--rounded);
}

.phone-validation-field.card-validation-invalid,
.postal-validation-field.card-validation-invalid {
  border-radius: 0 0 var(--rounded) var(--rounded);
}

.payment-field-invalid {
  color: #df1b41 !important;
}

.payment-field-error {
  color: #df1b41;
  display: none;
  font-size: 13px;
  line-height: 17px;
  margin-top: 8px;
}

.payment-field-error.is-visible {
  animation: card-error-enter 180ms ease-out;
  display: block;
}

.payment-decline-error.is-visible {
  font-weight: 500;
}

.payment-validation-messages:empty {
  display: none;
}

.SubmitButton {
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease,
    box-shadow 220ms ease;
}

.SubmitButton.SubmitButton--incomplete {
  filter: saturate(0.65);
  opacity: 0.62;
}

.SubmitButton.SubmitButton--complete {
  animation: pay-button-ready 520ms ease-out;
  filter: none;
  opacity: 1;
}

.card-validation-shake {
  animation: card-invalid-shake 280ms ease-out;
}

@keyframes card-error-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-invalid-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
}

@keyframes pay-button-ready {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 116, 212, 0);
    transform: scale(0.985);
  }
  55% {
    box-shadow: 0 0 0 5px rgba(0, 116, 212, 0.2);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 116, 212, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-field-error.is-visible,
  .card-validation-shake {
    animation: none;
    transition: none;
  }
}

body.checkout-locked {
  overflow: hidden;
}

/* Processing — centered on screen */
.checkout-processing-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 99999;
}

.checkout-processing-overlay[hidden] {
  display: none !important;
}

.checkout-processing-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 180px;
  padding: 28px 40px;
  text-align: center;
}

.checkout-processing-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.checkout-processing-spinner {
  animation: checkout-spin 0.7s linear infinite;
  border: 2.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 50%;
  border-top-color: #1a1a1a;
  flex-shrink: 0;
  height: 32px;
  width: 32px;
}

/* 3DS modal — Float / Visa Secure reference layout */
.checkout-3ds-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  inset: 0;
  justify-content: center;
  padding: 20px 16px;
  position: fixed;
  z-index: 100001;
}

.checkout-3ds-overlay[hidden] {
  display: none !important;
}

.checkout-3ds-modal {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
  position: relative;
  width: 100%;
}

.checkout-3ds-modal,
.checkout-3ds-modal * {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.checkout-3ds-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px 14px;
}

.checkout-3ds-merchant {
  align-items: center;
  display: flex;
  min-width: 0;
}

.checkout-3ds-merchant-logo {
  display: block;
  height: 24px;
  object-fit: contain;
  width: auto;
}

.checkout-3ds-scheme {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
}

.checkout-3ds-scheme[hidden] {
  display: none !important;
}

.checkout-3ds-visa-wordmark {
  color: #1a1f71;
  font-size: 26px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.checkout-3ds-mc-wordmark {
  background: #000;
  border-radius: 2px;
  display: block;
  height: 22px;
  position: relative;
  width: 36px;
}

.checkout-3ds-mc-wordmark::before,
.checkout-3ds-mc-wordmark::after {
  border-radius: 50%;
  content: "";
  height: 14px;
  position: absolute;
  top: 4px;
  width: 14px;
}

.checkout-3ds-mc-wordmark::before {
  background: #eb001b;
  left: 7px;
}

.checkout-3ds-mc-wordmark::after {
  background: #f79e1b;
  left: 15px;
}

.checkout-3ds-scheme-badge {
  background: #0d2078;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 4px 10px;
  text-transform: uppercase;
}

.checkout-3ds-divider {
  background: #d8d8d8;
  border: 0;
  height: 1px;
  margin: 0;
  width: 100%;
}

.checkout-3ds-body {
  padding: 18px 22px 24px;
}

.checkout-3ds-title {
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  text-align: left;
}

.checkout-3ds-desc {
  color: #111;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 12px;
  text-align: left;
}

.checkout-3ds-desc:last-of-type {
  margin-bottom: 22px;
}

.checkout-3ds-code-panel {
  text-align: center;
}

.checkout-3ds-label {
  color: #5a6482;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  text-align: center;
}

.checkout-3ds-input {
  background: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  color: #111;
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 auto 16px;
  max-width: 100%;
  padding: 10px 12px;
  width: 100%;
}

.checkout-3ds-input:focus {
  border-color: #1a47a1;
  outline: none;
}

.checkout-3ds-primary {
  background: #1a47a1;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 auto;
  padding: 11px 16px;
  text-transform: uppercase;
  width: 100%;
}

.checkout-3ds-primary:hover {
  background: #163d8c;
}

.checkout-3ds-primary:disabled {
  cursor: default;
  opacity: 0.55;
}

.checkout-3ds-link {
  background: transparent;
  border: 0;
  color: #1a47a1;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin: 14px auto 0;
  padding: 0;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.checkout-3ds-link:disabled {
  color: #999;
  cursor: not-allowed;
  opacity: 0.75;
}

.checkout-3ds-hint {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  margin: 8px 0 0;
  text-align: center;
}

.checkout-3ds-error {
  color: #b00020;
  font-size: 13px;
  font-weight: 400;
  margin: -8px 0 10px;
  text-align: center;
}

.checkout-3ds-error[hidden],
.checkout-3ds-hint[hidden] {
  display: none;
}

.checkout-3ds-app-panel {
  padding: 8px 0 4px;
  text-align: center;
}

.checkout-3ds-app-spinner {
  animation: checkout-spin 0.8s linear infinite;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  border-top-color: #1a47a1;
  height: 32px;
  margin: 0 auto 14px;
  width: 32px;
}

.checkout-3ds-app-text {
  color: #111;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .checkout-3ds-header,
  .checkout-3ds-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .checkout-3ds-title {
    font-size: 18px;
  }
}
