/* TEXTORASIGN CHECKOUT V4 — AUTH LANGUAGE */

:root {
  --tx-checkout-blue: #145fe7;
  --tx-checkout-blue-hover: #0f50ca;
  --tx-checkout-blue-focus: rgba(20, 95, 231, .14);
  --tx-checkout-ink: #0f2340;
  --tx-checkout-copy: #53637a;
  --tx-checkout-muted: #7f8da1;
  --tx-checkout-border: #d7dfe9;
  --tx-checkout-border-soft: #e7ecf2;
  --tx-checkout-canvas: #f9fbfe;
  --tx-checkout-surface: #ffffff;
  --tx-checkout-soft: #f7f9fc;
  --tx-checkout-danger: #bd2c42;
  --tx-checkout-success: #0f7a52;
  --tx-checkout-font: "Instrument Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--tx-checkout-canvas);
}

body.checkout-v3 {
  min-height: 100dvh;
  margin: 0;
  color: var(--tx-checkout-ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(20, 95, 231, .035), transparent 24%),
    radial-gradient(circle at 8% 94%, rgba(20, 95, 231, .028), transparent 28%),
    var(--tx-checkout-canvas);
  font-family: var(--tx-checkout-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.checkout-v3 button,
body.checkout-v3 input {
  font: inherit;
}

/* Shared authentication-style top bar */

.co-header {
  width: 100%;
  height: 70px;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(215, 223, 233, .65);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(15, 35, 64, .018);
  backdrop-filter: blur(12px);
}

.co-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(204, 214, 226, .92);
  border-radius: 12px;
  background: #fff;
  color: #0b1e37;
  box-shadow:
    0 6px 18px rgba(20, 40, 70, .075),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.co-logo:hover {
  border-color: rgba(20, 95, 231, .35);
  box-shadow:
    0 8px 22px rgba(20, 40, 70, .1),
    0 0 0 3px rgba(20, 95, 231, .05);
  text-decoration: none;
  transform: translateY(-1px);
}

.co-logo:focus-visible {
  outline: 0;
  border-color: var(--tx-checkout-blue);
  box-shadow:
    0 0 0 4px var(--tx-checkout-blue-focus),
    0 8px 22px rgba(20, 40, 70, .1);
}

.co-logo img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.co-header-login {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tx-checkout-copy);
  font-size: 13px;
}

.co-header-login a {
  color: var(--tx-checkout-blue);
  font-weight: 600;
  text-decoration: none;
}

.co-header-login a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main checkout shell */

.co-page {
  width: min(1080px, calc(100% - 36px));
  margin: clamp(18px, 3vh, 34px) auto 18px;
}

.co-card {
  min-height: min(650px, calc(100dvh - 158px));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  border: 1px solid rgba(204, 214, 226, .92);
  border-radius: 15px;
  background: var(--tx-checkout-surface);
  box-shadow:
    0 22px 58px rgba(20, 40, 70, .085),
    0 3px 10px rgba(20, 40, 70, .035);
}

.co-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vh, 52px) clamp(34px, 4vw, 54px) 34px;
  background: #fff;
}

#checkoutView {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.co-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--tx-checkout-blue);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.co-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tx-checkout-blue);
  box-shadow: 0 0 0 4px rgba(20, 95, 231, .09);
}

.co-main h1 {
  max-width: 620px;
  margin: 0;
  color: #0b2140;
  font-size: clamp(34px, 3.3vw, 44px);
  line-height: 1.07;
  font-weight: 560;
  letter-spacing: -.05em;
}

.co-intro {
  max-width: 610px;
  margin: 13px 0 0;
  color: var(--tx-checkout-copy);
  font-size: 15px;
  line-height: 1.55;
}

.co-email-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: clamp(30px, 5vh, 58px);
}

.co-email-panel .tx-field {
  display: grid;
  gap: 7px;
}

.co-email-panel .tx-field label,
.co-claim-field label {
  color: #172940;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 590;
}

.co-email-panel .tx-input,
.co-claim-field input,
.co-password-wrap input {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--tx-checkout-border);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #10233d;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.co-email-panel .tx-input::placeholder,
.co-claim-field input::placeholder,
.co-password-wrap input::placeholder {
  color: #93a0b2;
  opacity: 1;
}

.co-email-panel .tx-input:focus,
.co-claim-field input:focus,
.co-password-wrap input:focus {
  border-color: var(--tx-checkout-blue);
  box-shadow: 0 0 0 3px var(--tx-checkout-blue-focus);
}

.tx-error,
.form-error,
.co-claim-error {
  color: var(--tx-checkout-danger);
  font-size: 12px;
  line-height: 1.4;
}

.co-email-panel > .tx-btn {
  margin-top: auto;
}

.tx-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--tx-checkout-blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(20, 95, 231, .18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tx-btn:hover {
  background: var(--tx-checkout-blue-hover);
  box-shadow: 0 9px 19px rgba(20, 95, 231, .22);
  text-decoration: none;
  transform: translateY(-1px);
}

.tx-btn:active {
  transform: translateY(0);
}

.tx-btn:disabled {
  opacity: .66;
  cursor: wait;
  transform: none;
}

.tx-btn.ghost {
  border: 1px solid var(--tx-checkout-border);
  background: #fff;
  color: #263850;
  box-shadow: none;
}

.tx-btn.ghost:hover {
  border-color: var(--tx-checkout-border-strong, #bcc8d7);
  background: #f8fafc;
  color: #10233d;
}

.co-email-help {
  margin: 11px 0 0;
  color: var(--tx-checkout-muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: left;
}

/* Plan summary */

.co-summary {
  min-width: 0;
  padding: clamp(34px, 5vh, 50px) clamp(30px, 3.5vw, 44px);
  border-left: 1px solid var(--tx-checkout-border-soft);
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.co-summary-label {
  color: #69778a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.co-plan-head {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.co-plan-name {
  color: #10233d;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.tx-plan-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(20, 95, 231, .2);
  border-radius: 999px;
  background: rgba(20, 95, 231, .07);
  color: var(--tx-checkout-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.tx-price {
  margin-top: 18px;
  color: #0b2140;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1;
  font-weight: 620;
  letter-spacing: -.055em;
}

.tx-price small {
  margin-left: 3px;
  color: #69778a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

#priceSub {
  margin: 10px 0 0;
  color: var(--tx-checkout-copy);
  font-size: 12px;
  line-height: 1.5;
}

.tx-billing-toggle {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--tx-checkout-border-soft);
  border-radius: 10px;
  background: #eef2f7;
}

.tx-billing-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #65748a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.tx-billing-toggle button.active,
.tx-billing-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--tx-checkout-blue);
  box-shadow: 0 2px 8px rgba(20, 40, 70, .09);
}

.co-rule {
  height: 1px;
  margin: 24px 0;
  background: var(--tx-checkout-border-soft);
}

.co-features {
  display: grid;
  gap: 16px;
}

.co-feature {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 10px;
  align-items: start;
}

.co-check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 95, 231, .08);
  color: var(--tx-checkout-blue);
  font-size: 12px;
  font-weight: 700;
}

.co-feature strong {
  display: block;
  color: #1d3049;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 620;
}

.co-feature span:not(.co-check) {
  display: block;
  margin-top: 2px;
  color: #7a8798;
  font-size: 11px;
  line-height: 1.4;
}

.co-payment-note {
  margin-top: 26px;
  padding: 14px 15px;
  border: 1px solid var(--tx-checkout-border-soft);
  border-radius: 10px;
  background: #fff;
}

.co-payment-note strong {
  color: #22354e;
  font-size: 12px;
  font-weight: 620;
}

.co-payment-note p {
  margin: 5px 0 0;
  color: #7a8798;
  font-size: 10.8px;
  line-height: 1.45;
}

/* Processing and failure views */

.co-payment-state {
  min-height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.co-payment-state.show {
  display: flex;
}

.co-state-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(20, 95, 231, .08);
  color: var(--tx-checkout-blue);
  font-size: 21px;
  font-weight: 650;
}

.co-state-icon.error {
  background: #fff2f4;
  color: var(--tx-checkout-danger);
}

.co-payment-state h2 {
  margin: 0;
  color: #10233d;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 620;
  letter-spacing: -.035em;
}

.co-payment-state p {
  max-width: 450px;
  margin: 10px auto 0;
  color: var(--tx-checkout-copy);
  font-size: 14px;
  line-height: 1.55;
}

.co-state-actions {
  width: min(100%, 390px);
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* Footer */

.co-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 18px 18px;
  color: #8995a6;
  font-size: 11px;
}

.co-footer a {
  color: #69778a;
  text-decoration: none;
}

.co-footer a:hover {
  color: var(--tx-checkout-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep the already-approved account claim modal in the same language. */

.co-modal {
  font-family: var(--tx-checkout-font);
}

.co-claim-card {
  border-radius: 15px;
}

.co-claim-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b1e37;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.co-claim-brand-name img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.co-paid-badge {
  border-color: rgba(20, 95, 231, .2);
  background: rgba(20, 95, 231, .07);
  color: var(--tx-checkout-blue);
}

.otp-input:focus {
  border-color: var(--tx-checkout-blue);
  box-shadow: 0 0 0 3px var(--tx-checkout-blue-focus);
}

.otp-resend-button {
  color: var(--tx-checkout-blue);
}

/* Laptop fit */

@media (min-width: 901px) and (max-height: 820px) {
  .co-header {
    height: 62px;
  }

  .co-logo {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 18px;
  }

  .co-logo img {
    width: 29px;
    height: 29px;
  }

  .co-page {
    margin-top: 14px;
  }

  .co-card {
    min-height: calc(100dvh - 128px);
  }

  .co-main,
  .co-summary {
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .co-main h1 {
    font-size: 34px;
  }

  .co-email-panel {
    margin-top: 26px;
  }

  .co-rule {
    margin: 18px 0;
  }

  .co-features {
    gap: 11px;
  }

  .co-payment-note {
    margin-top: 18px;
  }

  .co-footer {
    min-height: 38px;
    padding-bottom: 8px;
  }
}

/* Tablet and mobile */

@media (max-width: 900px) {
  .co-header {
    height: 64px;
    padding: 0 18px;
  }

  .co-page {
    width: min(720px, calc(100% - 24px));
    margin: 16px auto 18px;
  }

  .co-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .co-main {
    padding: 32px 28px 30px;
  }

  .co-email-panel {
    min-height: 270px;
    margin-top: 28px;
  }

  .co-summary {
    border-top: 1px solid var(--tx-checkout-border-soft);
    border-left: 0;
    padding: 30px 28px;
  }
}

@media (max-width: 600px) {
  .co-header {
    height: 60px;
    padding: 0 12px;
  }

  .co-logo {
    gap: 8px;
    padding: 5px 9px 5px 6px;
    border-radius: 11px;
    font-size: 17px;
  }

  .co-logo img {
    width: 30px;
    height: 30px;
  }

  .co-header-login span {
    display: none;
  }

  .co-page {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .co-card {
    border-radius: 13px;
  }

  .co-main,
  .co-summary {
    padding: 24px 17px;
  }

  .co-main h1 {
    font-size: 30px;
  }

  .co-intro {
    font-size: 13px;
  }

  .co-email-panel {
    min-height: 230px;
    margin-top: 22px;
  }

  .co-email-panel .tx-input,
  .co-claim-field input,
  .co-password-wrap input {
    min-height: 45px;
  }

  .tx-btn {
    min-height: 45px;
  }

  .co-summary {
    padding-top: 25px;
  }

  .co-plan-head {
    margin-top: 13px;
  }

  .tx-price {
    font-size: 42px;
  }

  .co-features {
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
  }

  .co-feature {
    grid-template-columns: 20px 1fr;
    gap: 8px;
  }

  .co-check {
    width: 20px;
    height: 20px;
  }

  .co-feature span:not(.co-check) {
    display: none;
  }

  .co-payment-note {
    margin-top: 22px;
  }

  .co-footer {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

@media (max-width: 390px) {
  .co-main,
  .co-summary {
    padding-left: 14px;
    padding-right: 14px;
  }

  .co-main h1 {
    font-size: 27px;
  }

  .co-features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* TEXTORASIGN CHECKOUT CHECKMARK CENTER START */

.co-feature > .co-check {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  overflow: hidden !important;
}

.co-feature > .co-check::before {
  content: "✓";
  display: block;
  width: 1em;
  height: 1em;
  margin: 0;
  color: currentColor;
  font-family:
    "Instrument Sans",
    Inter,
    Arial,
    sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transform: translateY(-0.25px);
}

/* TEXTORASIGN CHECKOUT CHECKMARK CENTER END */
