/* Cart / checkout / thank-you pages */
.cart-shell {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  z-index: 1;
}

/* Shared chrome header on cart flow (Home Mama match) */
.cart-chrome-header {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem 0;
  max-width: 80rem;
  margin: 0 auto;
}
.cart-chrome-logo {
  display: inline-block;
  margin: 0 0 0.75rem 0.25rem;
}
.cart-chrome-logo img {
  width: min(220px, 48vw);
  height: auto;
  display: block;
}
.cart-chrome-rail {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-top: 3px solid #61c6F2;
  border-bottom: 3px solid #61c6F2;
  box-shadow: 0 0 18px rgba(97, 198, 242, 0.35);
  padding: 0.65rem 0.5rem;
  margin-bottom: 0.35rem;
}
.cart-chrome-rail #navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-chrome-rail .nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  text-decoration: none;
}
.cart-chrome-rail .nav-btn-img {
  display: block;
  height: 48px;
  width: auto;
  min-width: 7.5rem;
  border-radius: 6px;
  object-fit: contain;
}
.cart-chrome-rail .nav-btn-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0018c6;
  font-family: Orbitron, Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  pointer-events: none;
  text-align: center;
  line-height: 1.1;
  padding: 0 6px;
}
@media (max-width: 768px) {
  .cart-chrome-rail #navigation ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .cart-chrome-rail .nav-btn {
    width: 100%;
    min-width: 0;
  }
  .cart-chrome-rail .nav-btn-img {
    width: 100%;
    min-width: 0;
    height: 46px;
    object-fit: fill;
  }
}

.cart-shell h1,
.cart-shell h2 {
  font-family: "Technovier", "Orbitron", Arial, sans-serif;
  color: #e8eef5;
  text-shadow: 0 0 14px rgba(173, 232, 255, 0.35);
}

.cart-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #61c6F2;
  color: #001433;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(97, 198, 242, 0.35);
  border-radius: 12px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  background: rgba(10, 26, 74, 0.9);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ade8ff;
}

.cart-item-img {
  width: 72px;
  height: 56px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: default;
}

.cart-qty {
  width: 4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(173, 232, 255, 0.35);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

.cart-btn img {
  height: 52px;
  width: auto;
  min-width: 160px;
  display: block;
  transition: transform 0.25s ease, filter 0.2s ease;
}

.cart-btn span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0018c6;
  font-family: "Orbitron", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1.5vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
  padding: 0 0.75rem;
  text-align: center;
  line-height: 1.15;
}

.cart-btn:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(173, 232, 255, 0.95));
}

.cart-btn:hover span {
  color: #ade8ff;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed rgba(173, 232, 255, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-style: italic;
}

.checkout-grid {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    align-items: start;
  }
}

.checkout-row3,
.checkout-city-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 800px) {
  .checkout-row3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .checkout-city-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .checkout-city-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  }
}

.checkout-place-order,
.checkout-summary-actions {
  justify-content: center;
  margin-top: 1rem;
}

.checkout-oneview {
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

footer.checkout-footer,
.checkout-footer {
  position: relative !important;
  z-index: 0 !important;
  min-height: 300px !important;
  max-height: none !important;
  height: 32vh !important;
  margin-top: 0.75rem !important;
  padding-top: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}

.checkout-footer .footer-earth {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: -12% !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  transform-origin: center bottom !important;
  animation: galaxyEarthInOut 55s ease-in-out infinite !important;
  mix-blend-mode: screen !important;
  pointer-events: none;
  background: url("../images/hero/earth.jpg?v=earth-down1") center 70% / cover no-repeat;
}

.checkout-footer .footer-earth img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 72% !important;
  opacity: 0.9 !important;
  mix-blend-mode: screen !important;
  animation: none !important;
  transform: none !important;
}

.checkout-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
  color: #e8eef5;
  font-size: 0.85rem;
}
.checkout-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.summary-remove {
  display: inline;
  margin-left: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: #ade8ff;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.checkout-card {
  background: #000;
  border: 1px solid rgba(97, 198, 242, 0.35);
  border-radius: 12px;
  padding: 1.25rem;
  isolation: isolate;
  color: #e8eef5;
}

.checkout-card h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: #e8eef5;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: #ade8ff;
  margin-bottom: 0.3rem;
  font-style: italic;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(173, 232, 255, 0.3);
  background: #050505;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}
.field select {
  -webkit-appearance: menulist;
  appearance: menulist;
  min-height: 2.5rem;
  cursor: pointer;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field textarea {
  -webkit-appearance: none;
  appearance: none;
  cursor: text;
  min-height: 2.5rem;
}
.field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
  margin: 0.15rem 0 0;
  border: 1px solid rgba(173, 232, 255, 0.55);
  border-radius: 3px;
  background: #111;
  accent-color: #ade8ff;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  cursor: pointer;
  flex-shrink: 0;
}
.field select option {
  background: #111;
  color: #fff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #ffffff;
  opacity: 0.85;
}

.field textarea { min-height: 90px; resize: vertical; }

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c6c6f7;
  font-style: italic;
}

.field-check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #e8eef5;
  font-style: italic;
  line-height: 1.4;
}
.field-check .check-label input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pay-exp-cvv {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 700px) {
  .pay-exp-cvv {
    grid-template-columns: 1fr 1fr;
  }
  .pay-exp-cvv .field:last-child {
    grid-column: 1 / -1;
  }
}

.terms-box {
  border: 1px solid rgba(255, 200, 80, 0.45);
  background: rgba(40, 30, 0, 0.35);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
  color: #e8eef5;
}

.terms-box label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  color: #e8eef5;
}
.terms-box label + label {
  margin-top: 0.75rem;
}

.terms-box input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  color: #e8eef5;
}

.order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ade8ff;
}

.note-muted {
  font-size: 0.85rem;
  color: #cfd8e3;
  font-style: italic;
  margin-top: 0.75rem;
}

.thankyou-box {
  text-align: center;
  max-width: 48rem;
  margin: 2rem auto 1.5rem;
  padding: 2.15rem 1.35rem 2rem;
  background: #000;
  border: 1px solid rgba(97, 198, 242, 0.4);
  border-radius: 12px;
  overflow: visible;
}

.thankyou-box h1,
.thankyou-box h2 {
  margin-bottom: 0.75rem;
  padding-top: 0.2rem;
  line-height: 1.3;
  color: #ade8ff;
}

.thankyou-box h2 {
  margin-top: 1.35rem;
  font-size: 1.15rem;
}

.thankyou-copy {
  text-align: justify;
  font-style: italic;
  line-height: 1.65;
  color: #ade8ff;
  margin: 0 auto 0.35rem;
}

.thankyou-tabs {
  justify-content: center;
  margin-top: 1.5rem;
}

.thankyou-page .cart-shell {
  padding-bottom: 0.5rem;
}

.thankyou-page .thankyou-box {
  margin-bottom: 0.5rem;
}

.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ade8ff;
  text-decoration: none;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(173, 232, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.nav-cart-link:hover {
  box-shadow: 0 0 14px rgba(173, 232, 255, 0.55);
  color: #fff;
}

/* Checkout captcha — centered white widget; no red until submit miss */
#checkout-recaptcha-area.recaptcha-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem auto 0;
  padding: 0;
  border: none;
  background: transparent;
}
#checkout-recaptcha-area .g-recaptcha {
  display: inline-block;
  margin: 0 auto;
}
#checkout-recaptcha-error {
  display: none !important;
  color: #ade8ff;
  font-size: 0.875rem;
  text-align: center;
}
#checkout-recaptcha-area.recaptcha-error #checkout-recaptcha-error {
  display: block !important;
}
#checkout-recaptcha-area.recaptcha-error {
  border: 2px solid rgba(173, 232, 255, 0.55);
  border-radius: 6px;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
}

.terms-box .terms-one-line {
  display: inline;
  white-space: nowrap;
}

.checkout-upsell {
  margin-top: 2.25rem;
  padding-top: 0.35rem;
  text-align: center;
}
.checkout-upsell__title {
  margin: 0 0 0.75rem;
  color: #c6c6f7;
  font-family: "Orbitron", "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-shadow: 0 0 10px rgba(198, 198, 247, 0.45);
}
.checkout-upsell__copy {
  margin: 0 auto 1rem;
  max-width: 22rem;
  color: #c6c6f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.checkout-upsell__pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.checkout-upsell__shot {
  border: 1px solid rgba(198, 198, 247, 0.35);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem;
  max-width: 20rem;
  width: 100%;
}
.checkout-upsell__shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: contain;
  cursor: zoom-in;
}
.checkout-upsell__shot:hover {
  border-color: rgba(173, 232, 255, 0.65);
}

@media (max-width: 420px) {
  .terms-box .terms-one-line {
    white-space: normal;
  }
}

/* Hide current-page chrome tab on cart/checkout (avoids blank silver tab) */
.cart-chrome-rail #navigation ul li:has(> a[aria-current="page"]),
.cart-chrome-rail #navigation ul li:has(> a.is-active) {
  display: none !important;
}
