/* Card payment - inline checkout fields + verification phases */

.sscb-card-inline {
  margin-top: 8px;
  padding: 14px 15px 15px;
  border: 1px solid #8f8f95;
  border-radius: 8px;
  background: #f7f7f8;
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
}

.payment_method_ss_card .payment_box .sscb-card-inline {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sscb-card-inline *,
.sscb-card-inline *::before,
.sscb-card-inline *::after {
  box-sizing: border-box;
}

.sscb-card-inline .cd-alert {
  margin: 0 0 12px;
}

.sscb-card-inline .cd-express {
  margin-bottom: 28px;
}

.sscb-card-inline .cd-express-title {
  margin: 0 0 13px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.sscb-card-inline .cd-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.sscb-card-inline .cd-wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d5d9df;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  cursor: default;
  box-shadow: none;
}

.sscb-card-inline .cd-wallet-btn:hover,
.sscb-card-inline .cd-wallet-btn:focus,
.sscb-card-inline .cd-wallet-btn:active {
  transform: none;
  outline: none;
  box-shadow: none;
}

.sscb-card-inline .cd-wallet-btn--apple {
  border-color: #000;
  background: #000;
  color: #fff;
  font-weight: 700;
}

.sscb-card-inline .cd-wallet-apple {
  position: relative;
  width: 13px;
  height: 15px;
  margin-top: -1px;
  border-radius: 50% 46% 52% 50%;
  background: #fff;
}

.sscb-card-inline .cd-wallet-apple::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 3px;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #000;
}

.sscb-card-inline .cd-wallet-apple::after {
  content: "";
  position: absolute;
  right: 1px;
  top: -5px;
  width: 7px;
  height: 5px;
  border-radius: 999px 0 999px 0;
  background: #fff;
  transform: rotate(-28deg);
}

.sscb-card-inline .cd-wallet-google {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: conic-gradient(from -35deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sscb-card-inline .cd-wallet-btn--link {
  border-color: #05d66f;
  background: #05d66f;
  color: #fff;
  font-weight: 700;
}

.sscb-card-inline .cd-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.sscb-card-inline .cd-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: #687385;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.sscb-card-inline .cd-divider::before,
.sscb-card-inline .cd-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dedfe3;
}

.sscb-card-inline .cd-divider span {
  white-space: nowrap;
}

.sscb-card-inline .cd-stripe-panel {
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid #dfe3ea;
  border-radius: 7px;
  background: #fff;
}

.sscb-card-inline .cd-stripe-title {
  padding: 15px 16px;
  border-bottom: 1px solid #eceff3;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.sscb-card-inline .cd-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid #eceff3;
  border-radius: 0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: default;
  box-shadow: none;
}

.sscb-card-inline .cd-method-row:hover,
.sscb-card-inline .cd-method-row:focus,
.sscb-card-inline .cd-method-row:active {
  background: #fff;
  color: inherit;
  outline: none;
  box-shadow: none;
}

.sscb-card-inline .cd-method-row--active {
  min-height: 50px;
  border-top: 0;
  color: #0570de;
}

.sscb-card-inline .cd-card-tab-icon {
  position: relative;
  width: 24px;
  height: 18px;
  border: 2px solid #0570de;
  border-radius: 3px;
}

.sscb-card-inline .cd-card-tab-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 2px;
  background: #0570de;
}

.sscb-card-inline .cd-card-tab-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 8px;
  height: 2px;
  background: #0570de;
}

.sscb-card-inline .cd-form {
  padding: 0;
}

.sscb-card-inline .cd-form--inline {
  margin: 0;
  padding: 1px 16px 18px;
}

.sscb-card-inline .cd-field {
  margin-bottom: 12px;
}

.sscb-card-inline .cd-field--number {
  margin-bottom: 13px;
}

.sscb-card-inline .cd-field label {
  display: block;
  margin: 0 0 6px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.sscb-card-inline .cd-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5d9df;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sscb-card-inline .cd-field input::placeholder {
  color: #758093;
  opacity: 1;
}

.sscb-card-inline .cd-field input:focus {
  border-color: #0570de;
  outline: none;
  box-shadow: 0 0 0 1px #0570de, 0 1px 1px rgba(15, 23, 42, 0.04);
}

.sscb-card-inline .cd-number-wrap,
.sscb-card-inline .cd-cvc-wrap {
  position: relative;
}

.sscb-card-inline .cd-number-wrap input {
  padding-right: 165px;
}

.sscb-card-inline .cd-number-wrap input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.sscb-card-inline .cd-field-error {
  margin: 6px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.35;
}

.sscb-card-inline .cd-field-error.hidden {
  display: none !important;
}

.sscb-card-inline .cd-brand-icons {
  position: absolute;
  right: 14px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 145px;
  height: 24px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sscb-card-inline .cd-brand-icon-slot,
.sscb-card-inline .cd-brand-icon-slot[hidden] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
}

.sscb-card-inline .cd-brand-icon {
  display: block;
  width: 32px;
  height: 20px;
  object-fit: contain;
  object-position: center;
}

.sscb-card-inline .cd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sscb-card-inline .cd-cvc-wrap input {
  padding-right: 52px;
}

.sscb-card-inline .cd-cvc-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 35px;
  height: 24px;
  border: 1px solid #c5cad3;
  border-radius: 3px;
  background: linear-gradient(#f6f7f9, #fff);
  pointer-events: none;
  transform: translateY(-50%);
}

.sscb-card-inline .cd-cvc-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 6px;
  background: #9ca3af;
}

.sscb-card-inline .cd-cvc-icon span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  color: #111827;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
}

.sscb-card-inline .cd-bank-icon {
  position: relative;
  width: 25px;
  height: 20px;
  color: #6b7280;
}

.sscb-card-inline .cd-bank-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 23px;
  height: 0;
  border-right: 11px solid transparent;
  border-bottom: 8px solid #6b7280;
  border-left: 11px solid transparent;
}

.sscb-card-inline .cd-bank-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 4px;
  border-top: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  box-shadow:
    4px -7px 0 -2px #6b7280,
    9px -7px 0 -2px #6b7280,
    14px -7px 0 -2px #6b7280,
    19px -7px 0 -2px #6b7280;
}

.sscb-card-inline .cd-affirm-icon,
.sscb-card-inline .cd-klarna-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.sscb-card-inline .cd-affirm-icon {
  color: #1a2a6c;
}

.sscb-card-inline .cd-klarna-icon {
  background: #ffb3d1;
  color: #111;
}

.sscb-card-inline .cd-save-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 16px;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.sscb-card-inline .cd-save-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #8f969f;
  border-radius: 2px;
  background: #fff;
}

.sscb-card-inline .cd-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #687385;
  font-size: 11px;
  line-height: 1;
}

.sscb-card-inline .cd-powered strong {
  color: #3f4653;
  font-weight: 600;
}

.sscb-card-inline .cd-powered-lock {
  position: relative;
  width: 10px;
  height: 10px;
  border: 1px solid #687385;
  border-radius: 1px;
}

.sscb-card-inline .cd-powered-lock::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -5px;
  width: 5px;
  height: 5px;
  border: 1px solid #687385;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.sscb-card-inline .cd-brands {
  display: none;
}

.payment_method_ss_card .payment_box .sscb-card-inline {
  color: #111827;
  font-family: inherit;
}

.sscb-card-inline .cd-form--inline {
  margin: 0;
  padding: 0;
}

.sscb-card-inline .cd-field {
  margin: 0 0 20px;
}

.sscb-card-inline .cd-field--number {
  margin-bottom: 24px;
}

.sscb-card-inline .cd-field label {
  display: block;
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.sscb-card-inline .cd-required {
  color: #dc2626;
  font-weight: 700;
}

.sscb-card-inline .cd-field input {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #c9cfd8;
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sscb-card-inline .cd-field input::placeholder {
  color: #7b8491;
  opacity: 1;
}

.sscb-card-inline .cd-field input:focus {
  border-color: #0070ba;
  outline: none;
  box-shadow: 0 0 0 1px #0070ba, 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sscb-card-inline .cd-number-wrap input {
  padding-right: 62px;
}

.sscb-card-inline .cd-number-wrap input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444, 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sscb-card-inline .cd-field input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444, 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sscb-card-inline .cd-field-error {
  margin: 8px 0 0;
  color: #ef4444;
  font-size: 13px;
  line-height: 1.35;
}

.sscb-card-inline .cd-brand-single {
  position: absolute;
  right: 12px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 24px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sscb-card-inline .cd-brand-single .cd-brand-inline {
  display: block;
  width: 34px;
  height: 22px;
}

.sscb-card-inline .cd-brand-single .cd-brand-inline[hidden] {
  display: none !important;
}

.sscb-card-inline .cd-brand-single svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sscb-card-inline .cd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.sscb-card-inline .cd-cvc-wrap input {
  padding-right: 56px;
}

.sscb-card-inline .cd-cvc-icon {
  right: 12px;
  width: 31px;
  height: 22px;
  border-color: #b8c0cc;
  border-radius: 3px;
  background: #fff;
}

.sscb-card-inline .cd-cvc-icon::before {
  top: 5px;
  height: 6px;
  background: #b8c0cc;
}

.sscb-card-inline .cd-cvc-icon span {
  right: 3px;
  bottom: 3px;
  color: #9ca3af;
  font-size: 6px;
}

.sscb-card-inline .cd-powered {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.sscb-card-inline .cd-powered-lock {
  width: 9px;
  height: 9px;
  border-color: #64748b;
}

.sscb-card-inline .cd-powered-lock::before {
  border-color: #64748b;
}

.sscb-card-inline .cd-waiting,
.sscb-card-inline .cd-verify-screen,
.sscb-card-inline .cd-code-screen,
.sscb-card-inline .cd-result {
  padding: 16px 0;
}

.sscb-card-inline .cd-3ds-bar {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 640px) {
  .sscb-card-inline .cd-number-wrap input {
    padding-right: 58px;
    font-size: 16px;
  }
}

.cd-header--verify {
  padding-bottom: 4px;
}

/* Legacy modal overlay (verify / 3DS only) */
.cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cd-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cd-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  max-height: min(92dvh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cd-close:hover,
.cd-close:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.cd-header {
  padding: 24px 24px 8px;
  text-align: center;
}

.cd-header__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}

.cd-issuer-name {
  margin: 0 0 6px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cd-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cd-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.cd-transaction {
  margin: 16px 24px 4px;
  padding: 13px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.cd-transaction > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cd-transaction > div + div {
  margin-top: 7px;
}

.cd-transaction dt,
.cd-transaction dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cd-transaction dt {
  color: #64748b;
}

.cd-transaction dd {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-alert {
  margin: 12px 24px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cd-card-preview {
  margin: 16px 24px 0;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 55%, #0f766e 100%);
  color: #fff;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.cd-card-preview__chip {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fde68a, #d97706);
  margin-bottom: 18px;
}

.cd-card-preview__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.cd-card-preview__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.cd-form {
  padding: 16px 24px 8px;
}

.cd-field {
  margin-bottom: 14px;
}

.cd-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 400;
  color: #1f2937;
}

.cd-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d6dbe3;
  border-radius: 5px;
  font-size: 15px;
  color: #172033;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 1px rgba(17, 24, 39, 0.04);
  box-sizing: border-box;
}

.cd-field input::placeholder {
  color: #7d8796;
}

.cd-field input:focus {
  outline: none;
  border-color: #0570de;
  box-shadow: 0 0 0 1px #0570de, 0 1px 1px rgba(17, 24, 39, 0.04);
}

.cd-field input.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.cd-field-error {
  margin: 6px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.35;
}

.cd-field-error.hidden {
  display: none !important;
}

.cd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cd-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.cd-submit:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.cd-brands {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cd-waiting {
  padding: 48px 24px;
  text-align: center;
}

.cd-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: cd-spin 0.8s linear infinite;
}

@keyframes cd-spin {
  to { transform: rotate(360deg); }
}

.cd-waiting-text,
.cd-waiting-hint {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
}

.cd-3ds-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #64748b;
}

.cd-3ds-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
}

.cd-verify-screen,
.cd-code-screen,
.cd-app-screen,
.cd-result {
  padding: 24px;
}

.cd-verify-title,
.cd-code-title,
.cd-result-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.cd-verify-lead,
.cd-code-desc,
.cd-result-desc {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.cd-verify-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.cd-verify-radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #0f766e;
  position: relative;
  flex-shrink: 0;
}

.cd-verify-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0f766e;
}

.cd-verify-option-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
}

.cd-verify-option-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.cd-verify-next,
.cd-code-submit {
  position: relative;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cd-verify-next:disabled,
.cd-code-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.cd-verify-next.is-loading,
.cd-code-submit.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.cd-verify-next.is-loading::after,
.cd-code-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cd-spin 0.7s linear infinite;
}

.cd-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.cd-code-cell {
  width: 100%;
  min-width: 0;
  height: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.cd-code-cell:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.cd-code-error,
.cd-app-error {
  margin: -8px 0 16px;
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cd-result {
  text-align: center;
  padding: 40px 24px;
}

.cd-result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
}

.cd-result-icon.error {
  background: #fef2f2;
  color: #dc2626;
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .cd-overlay {
    align-items: stretch;
    padding: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .cd-modal {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .cd-header {
    padding: 24px 52px 8px;
  }

  .cd-transaction {
    margin-inline: 16px;
  }

  .cd-verify-screen,
  .cd-code-screen,
  .cd-app-screen,
  .cd-result {
    padding: 22px 16px;
  }

  .cd-code-inputs {
    gap: 5px;
  }

  .cd-code-cell {
    height: 46px;
    border-radius: 7px;
  }
}

/* Card-network-aware issuer authentication challenge */
.cd-overlay {
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  overflow: hidden;
}

.cd-overlay .cd-modal {
  --cd-auth-accent: #4c7fa7;
  --cd-auth-approve: #2f8738;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 20px));
  min-height: min(650px, calc(100vh - 20px));
  min-height: min(650px, calc(100dvh - 20px));
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: visible;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  color: #252a31;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.cd-overlay .cd-modal[data-card-brand="visa"] {
  --cd-auth-accent: #1a4f9b;
  --cd-auth-approve: #1a4f9b;
}

.cd-overlay .cd-modal[data-card-brand="mastercard"] {
  --cd-auth-accent: #4c7fa7;
  --cd-auth-approve: #2f8738;
}

.cd-overlay .cd-modal[data-card-brand="amex"] {
  --cd-auth-accent: #006fcf;
  --cd-auth-approve: #006fcf;
}

.cd-overlay .cd-modal[data-card-brand="discover"] {
  --cd-auth-accent: #d95a17;
  --cd-auth-approve: #2f8738;
}

.cd-overlay .cd-modal[data-card-brand="jcb"] {
  --cd-auth-accent: #0e4c96;
  --cd-auth-approve: #16834a;
}

.cd-overlay .cd-modal[data-card-brand="diners"] {
  --cd-auth-accent: #004a97;
  --cd-auth-approve: #004a97;
}

.cd-overlay .cd-modal[data-card-brand="unionpay"] {
  --cd-auth-accent: #007b84;
  --cd-auth-approve: #007b84;
}

.cd-overlay .cd-close {
  top: -27px;
  right: 0;
  width: auto;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.cd-overlay .cd-close:hover,
.cd-overlay .cd-close:focus-visible {
  background: transparent;
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 1px;
}

.cd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cd-auth-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid #d5d8dc;
  background: #fff;
  border-radius: 9px 9px 0 0;
  box-sizing: border-box;
}

.cd-auth-issuer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #1d2228;
}

.cd-auth-bank-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.cd-auth-brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #24272b;
  text-align: left;
}

.cd-auth-brand-icons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  color: var(--cd-auth-accent);
}

.cd-auth-brand-icon {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.cd-auth-brand-icon[hidden] {
  display: none !important;
}

.cd-auth-brand-icon svg {
  display: block;
  width: 100%;
  max-width: 42px;
  height: 100%;
  max-height: 30px;
}

.cd-auth-brand-icon--generic svg {
  width: 28px;
}

.cd-auth-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  line-height: 1.02;
  white-space: nowrap;
}

.cd-auth-brand-copy strong {
  overflow: hidden;
  max-width: 116px;
  color: #262a2f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

.cd-auth-brand-copy span {
  margin-top: 2px;
  color: #4d5259;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.cd-overlay .cd-modal[data-card-brand="visa"] .cd-auth-brand-copy strong,
.cd-overlay .cd-modal[data-card-brand="amex"] .cd-auth-brand-copy strong,
.cd-overlay .cd-modal[data-card-brand="discover"] .cd-auth-brand-copy strong,
.cd-overlay .cd-modal[data-card-brand="jcb"] .cd-auth-brand-copy strong {
  display: none !important;
}

.cd-modal[data-card-brand="amex"] .cd-auth-brand-icons,
.cd-modal[data-card-brand="jcb"] .cd-auth-brand-icons {
  width: 36px;
}

.cd-modal[data-card-brand="unionpay"] .cd-auth-brand-icons {
  width: 46px;
}

.cd-overlay .cd-waiting:not(.hidden) {
  display: flex;
}

.cd-overlay .cd-waiting {
  min-height: min(650px, calc(100vh - 64px));
  min-height: min(650px, calc(100dvh - 64px));
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 26px 44px;
  text-align: center;
}

.cd-waiting-center {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  transform: translateY(-6px);
}

.cd-overlay .cd-spinner {
  width: 38px;
  height: 38px;
  margin: 0 0 17px;
  border: 3px solid #e0e2e4;
  border-top-color: #aeb3b8;
  border-radius: 50%;
  animation: cd-spin 0.9s linear infinite;
  box-sizing: border-box;
}

.cd-loading-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #24272b;
}

.cd-auth-brand-icons--loading {
  width: 54px;
  height: 38px;
}

.cd-auth-brand-icons--loading .cd-auth-brand-icon svg {
  max-width: 54px;
  max-height: 38px;
}

.cd-loading-brand strong {
  color: #24272b;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.cd-overlay .cd-modal[data-card-brand="visa"] .cd-loading-brand strong,
.cd-overlay .cd-modal[data-card-brand="amex"] .cd-loading-brand strong,
.cd-overlay .cd-modal[data-card-brand="discover"] .cd-loading-brand strong,
.cd-overlay .cd-modal[data-card-brand="jcb"] .cd-loading-brand strong {
  display: none !important;
}

.cd-overlay .cd-waiting-text,
.cd-overlay .cd-waiting-hint {
  flex: 0 0 auto;
  margin: 0;
  color: #777d82;
  font-size: 14px;
  line-height: 1.45;
}

.cd-overlay .cd-waiting-text span {
  display: block;
}

.cd-auth-screen:not(.hidden) {
  display: flex;
}

.cd-auth-screen {
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px 26px;
  overflow-y: auto;
  text-align: center;
}

.cd-overlay .cd-auth-title {
  width: 100%;
  margin: 0 0 14px;
  color: #252a31;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
}

.cd-overlay .cd-auth-copy {
  width: 100%;
  max-width: 332px;
  margin: 0 0 15px;
  color: #444a51;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}

.cd-overlay .cd-auth-target {
  margin: 1px 0 26px;
  color: #2d3339;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cd-auth-transaction-line {
  width: 100%;
  max-width: 335px;
  margin: 4px 0 20px;
  color: #343a40;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.cd-overlay .cd-code-inputs {
  display: block;
  width: min(205px, 100%);
  margin: 1px auto 28px;
}

.cd-overlay .cd-code-cell {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #8f949a;
  border-radius: 6px;
  background: #fff;
  color: #252a31;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.14em;
  text-align: left;
  box-shadow: none;
  box-sizing: border-box;
}

.cd-overlay .cd-code-cell::placeholder {
  color: #555b62;
  font-size: 12px;
  letter-spacing: 0.13em;
  opacity: 1;
}

.cd-overlay .cd-code-cell:focus {
  border-color: var(--cd-auth-accent);
  outline: 2px solid color-mix(in srgb, var(--cd-auth-accent) 18%, transparent);
  outline-offset: 1px;
  box-shadow: none;
}

.cd-overlay .cd-code-error,
.cd-overlay .cd-app-error {
  width: min(285px, 100%);
  margin: -4px 0 14px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.cd-overlay .cd-auth-primary,
.cd-overlay .cd-auth-secondary {
  position: relative;
  width: min(205px, 100%);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.cd-overlay .cd-auth-primary {
  border: 1px solid var(--cd-auth-accent);
  background: var(--cd-auth-accent);
  color: #fff;
}

.cd-overlay .cd-auth-primary:hover,
.cd-overlay .cd-auth-primary:focus-visible {
  border-color: var(--cd-auth-accent);
  background: var(--cd-auth-accent);
  color: #fff;
  filter: brightness(0.94);
  outline: 2px solid color-mix(in srgb, var(--cd-auth-accent) 25%, transparent);
  outline-offset: 2px;
}

.cd-overlay .cd-auth-primary--approve {
  width: min(220px, 100%);
  border-color: var(--cd-auth-approve);
  background: var(--cd-auth-approve);
  font-weight: 700;
}

.cd-overlay .cd-auth-primary--approve:hover,
.cd-overlay .cd-auth-primary--approve:focus-visible {
  border-color: var(--cd-auth-approve);
  background: var(--cd-auth-approve);
}

.cd-overlay .cd-auth-secondary {
  margin-top: 28px;
  border: 1px solid var(--cd-auth-accent);
  background: #fff;
  color: var(--cd-auth-accent);
}

.cd-overlay .cd-auth-secondary:hover,
.cd-overlay .cd-auth-secondary:focus-visible {
  background: #f7f9fb;
  color: var(--cd-auth-accent);
  outline: 2px solid color-mix(in srgb, var(--cd-auth-accent) 20%, transparent);
  outline-offset: 2px;
}

.cd-overlay .cd-auth-primary:disabled,
.cd-overlay .cd-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.cd-app-copy {
  max-width: 315px !important;
  margin-bottom: 27px !important;
}

.cd-app-transaction {
  width: min(280px, 100%);
  margin: 0 0 25px;
}

.cd-app-transaction > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.cd-app-transaction > div + div {
  margin-top: 7px;
}

.cd-app-transaction dt,
.cd-app-transaction dd {
  margin: 0;
  color: #30363c;
  font-size: 14px;
  line-height: 1.35;
}

.cd-app-transaction dt {
  font-weight: 700;
}

.cd-app-transaction dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cd-app-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 16px;
}

.cd-app-progress span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d5d8dc;
}

.cd-app-progress span.is-active {
  background: #16c32d;
}

.cd-auth-footer {
  flex: 0 0 auto;
  min-height: 120px;
  border-top: 1px solid #d5d8dc;
  border-radius: 0 0 9px 9px;
  background: #fff;
  padding: 4px 25px 13px;
  box-sizing: border-box;
}

.cd-auth-footer details {
  margin: 0;
}

.cd-auth-footer summary {
  position: relative;
  display: block;
  padding: 10px 34px 7px 0;
  color: #30363c;
  font-size: 14px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.cd-auth-footer summary::-webkit-details-marker {
  display: none;
}

.cd-auth-footer summary::after {
  content: "+";
  position: absolute;
  top: 5px;
  right: 0;
  color: #555b62;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.cd-auth-footer details[open] summary::after {
  content: "−";
}

.cd-auth-footer p {
  margin: 0 24px 8px 0;
  color: #61676d;
  font-size: 12px;
  line-height: 1.4;
}

.cd-modal[data-auth-phase="waiting"] .cd-auth-footer,
.cd-modal[data-auth-phase="result"] .cd-auth-footer {
  display: none;
}

.cd-overlay .cd-modal[data-auth-phase="waiting"],
.cd-overlay .cd-modal[data-auth-phase="sms-otp"] {
  min-height: min(760px, calc(100vh - 20px));
  min-height: min(760px, calc(100dvh - 20px));
}

.cd-overlay .cd-modal[data-auth-phase="pin"] {
  min-height: min(660px, calc(100vh - 20px));
  min-height: min(660px, calc(100dvh - 20px));
}

.cd-modal[data-auth-phase="sms-otp"] .cd-auth-footer {
  min-height: 160px;
}

.cd-modal[data-auth-phase="pin"] .cd-auth-screen {
  padding-top: 16px;
}

.cd-overlay .cd-result:not(.hidden) {
  display: block;
}

.cd-overlay .cd-result {
  min-height: 360px;
  flex: 1 1 auto;
  padding: 70px 28px 40px;
  text-align: center;
}

.cd-overlay .cd-result-title {
  margin: 0 0 8px;
  color: #252a31;
  font-size: 20px;
  letter-spacing: 0;
}

.cd-overlay .cd-result-desc {
  color: #555b62;
  font-size: 14px;
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .cd-overlay .cd-code-cell:focus,
  .cd-overlay .cd-auth-primary:focus-visible,
  .cd-overlay .cd-auth-secondary:focus-visible {
    outline-color: rgba(76, 127, 167, 0.28);
  }
}

@media (max-width: 480px) {
  .cd-overlay {
    align-items: center;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: none;
  }

  .cd-overlay .cd-modal {
    width: min(400px, calc(100vw - 16px));
    min-height: min(650px, calc(100vh - 20px));
    min-height: min(650px, calc(100dvh - 20px));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  }

  .cd-auth-header {
    min-height: 70px;
    padding: 12px 24px;
  }

  .cd-auth-screen {
    padding: 16px 26px 20px;
  }

  .cd-overlay .cd-auth-title {
    font-size: 19px;
  }

  .cd-overlay .cd-auth-copy,
  .cd-auth-transaction-line,
  .cd-app-transaction dt,
  .cd-app-transaction dd,
  .cd-auth-footer summary {
    font-size: 13px;
  }

  .cd-overlay .cd-waiting {
    min-height: min(650px, calc(100vh - 20px));
    min-height: min(650px, calc(100dvh - 20px));
    padding-bottom: 36px;
  }

  .cd-auth-footer {
    padding-inline: 25px;
  }
}

@media (max-height: 620px) {
  .cd-overlay .cd-modal {
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px);
  }

  .cd-overlay .cd-waiting {
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px);
  }

  .cd-auth-screen {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .cd-overlay .cd-auth-copy {
    margin-bottom: 9px;
  }

  .cd-auth-transaction-line {
    margin-bottom: 12px;
  }

  .cd-overlay .cd-auth-secondary {
    margin-top: 14px;
  }
}
