.checkout-page {
  min-height: 100vh;
  background: #f3f7f9;
}

.checkout-logo-link {
  display: inline-flex;
  align-items: center;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.checkout-header-link {
  color: #bcd1db;
  font-size: 1.5rem;
  text-decoration: none;
}

.checkout-header-link:hover {
  color: #fff;
}


/* Link "Acessar conta" da versão responsiva do cabeçalho.
   No desktop, mantém aparência de botão; no mobile, vira link simples. */
.checkout-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 130px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #bcd1db;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checkout-account-link:link,
.checkout-account-link:visited {
  color: #fff;
  text-decoration: none;
}

.checkout-account-link:hover,
.checkout-account-link:focus-visible,
.checkout-account-link:active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  background-color: #09273C;
}

.checkout-header-link-icon,
.checkout-account-text-mobile {
  display: none;
}

.checkout-main {
  padding: 56px 24px 72px;
}

.checkout-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid #d8e4e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(8, 53, 85, 0.12);
}

.checkout-summary {
  padding: 56px 48px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(8, 53, 85, 0.97), rgba(9, 39, 60, 0.96)),
    url('../images/precos-bg.png') center/cover no-repeat;
}

.checkout-product-logo {
  width: 205px;
  max-width: 100%;
  height: auto;
  margin-bottom: 44px;
}

.checkout-eyebrow {
  margin: 0 0 10px;
  color: #bcd1db;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-summary h1 {
  margin: 0 0 20px;
  font-size: 3.3rem;
  line-height: 1.18;
}

.checkout-summary-text {
  margin: 0;
  color: #e8f0f4;
  font-size: 1.6rem;
  line-height: 1.65;
}

.checkout-benefits {
  display: grid;
  gap: 18px;
  margin: 38px 0;
  padding: 0;
  list-style: none;
}

.checkout-benefits li {
  position: relative;
  padding-left: 31px;
  color: #eef5f7;
  font-size: 1.5rem;
  line-height: 1.55;
}

.checkout-benefits li::before {
  content: '✓';
  position: absolute;
  top: 0;
  left: 0;
  color: #8fc3a8;
  font-size: 1.9rem;
  font-weight: 800;
}

.checkout-security-note {
  padding: 18px;
  border: 1px solid rgba(188, 209, 219, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce9ee;
  font-size: 1.3rem;
  line-height: 1.55;
}

.checkout-security-note strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.checkout-card {
  padding: 50px 48px;
}

.checkout-card-header {
  margin-bottom: 32px;
}

.checkout-step {
  color: #5e8799;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-card-header h2 {
  margin: 8px 0 8px;
  color: #083555;
  font-size: 2.8rem;
}

.checkout-card-header p {
  margin: 0;
  color: #637680;
  font-size: 1.45rem;
  line-height: 1.5;
}

.checkout-alert {
  margin-bottom: 24px;
  padding: 15px 16px;
  border: 1px solid #e7b9b9;
  border-radius: 8px;
  background: #fff3f3;
  color: #8a2727;
  font-size: 1.4rem;
  line-height: 1.5;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.checkout-field {
  margin-bottom: 21px;
}

.checkout-field--full {
  width: 100%;
}

.checkout-field label,
.checkout-legal legend {
  display: block;
  margin-bottom: 8px;
  color: #163d53;
  font-size: 1.4rem;
  font-weight: 600;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #b9ccd5;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: #2e6f91;
  box-shadow: 0 0 0 3px rgba(46, 111, 145, 0.13);
}

.checkout-field input[aria-invalid='true'],
.checkout-field select[aria-invalid='true'] {
  border-color: #b53b3b;
}

.checkout-field-help {
  display: block;
  margin-top: 6px;
  color: #72858f;
  font-size: 1.2rem;
}

.checkout-field-error {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: #a72d2d;
  font-size: 1.2rem;
}

.checkout-password-wrap {
  position: relative;
}

.checkout-password-wrap input {
  padding-right: 76px;
}

.checkout-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #346d89;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-legal {
  margin: 7px 0 25px;
  padding: 20px;
  border: 1px solid #d3e0e5;
  border-radius: 10px;
  background: #f8fbfc;
}

.checkout-legal legend {
  padding: 0 7px;
}

.checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #344b57;
  font-size: 1.35rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkout-checkbox + .checkout-field-error + .checkout-checkbox {
  margin-top: 13px;
}

.checkout-checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #083555;
}

.checkout-checkbox a {
  color: #0f668e;
  font-weight: 600;
}

.checkout-submit {
  position: relative;
  width: 100%;
  min-height: 51px;
  border: 0;
  border-radius: 8px;
  background: #083555;
  color: #fff;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.checkout-submit:hover:not(:disabled) {
  background: #09273c;
  transform: translateY(-1px);
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.checkout-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: checkout-spin 0.7s linear infinite;
}

.checkout-submit.is-loading .checkout-spinner {
  display: inline-block;
}

.checkout-submit-note {
  margin: 13px 0 0;
  color: #6c7d85;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
}

.checkout-footer {
  padding: 28px 0;
  background: #083555;
  color: #bcd1db;
}

.checkout-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.3rem;
}

.checkout-footer a {
  color: #bcd1db;
}

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

@media (max-width: 900px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    padding: 42px 34px;
  }

  .checkout-product-logo {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .checkout-logo-link img {
    width: 145px;
    height: auto;
  }

  .checkout-header-actions {
    gap: 14px;
  }

  .checkout-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }

  .checkout-header-link-icon {
    display: inline;
    font-size: 1.8rem;
    line-height: 1;
  }

  .checkout-header-link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .checkout-account-link {
    min-width: 0;
    min-height: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.3rem;
  }

  .checkout-account-link:hover,
  .checkout-account-link:focus-visible,
  .checkout-account-link:active {
    border: 0;
    background: transparent;
    color: #fff;
  }

  .checkout-account-text-desktop {
    display: none;
  }

  .checkout-account-text-mobile {
    display: inline;
  }

  .checkout-main {
    padding: 24px 12px 42px;
  }

  .checkout-shell {
    border-radius: 12px;
  }

  .checkout-summary,
  .checkout-card {
    padding: 34px 22px;
  }

  .checkout-summary h1 {
    font-size: 2.6rem;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
