﻿.cart-page {
  min-height: 100vh;
  scroll-padding-top: 86px;
}

.cart-hero {
  padding: 102px 0 34px;
  border-bottom: 1px solid var(--bdr);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}

.cart-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: end;
}

.cart-hero h1 {
  max-width: 760px;
  font-family: var(--f1);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.cart-hero p {
  max-width: 650px;
  color: var(--txt2);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn {
  min-height: 48px;
}

.cart-trust {
  display: grid;
  gap: 10px;
}

.cart-trust span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--txt2);
  font-size: 13px;
  font-weight: 700;
}

.cart-trust span::before,
.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(22,163,74,.5);
}

.cart-sec {
  padding: 34px 0 82px;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 24px;
  align-items: start;
}

.cart-grid-single {
  display: block;
  max-width: 680px;
  margin: 0 auto;
}

.cart-panel {
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.plan-panel,
.checkout-panel {
  padding: 26px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--p2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.cart-panel h2 {
  font-family: var(--f1);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.cart-panel h3 {
  font-family: var(--f1);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.plan-source {
  align-self: flex-start;
  white-space: nowrap;
  padding: 7px 11px;
  border: 1px solid rgba(22,163,74,.25);
  border-radius: 999px;
  color: var(--green);
  background: rgba(22,163,74,.08);
  font-size: 12px;
  font-weight: 800;
}

.field-label,
.order-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--txt2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.plan-select,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  background: rgba(5,5,13,.72);
  color: var(--txt);
  font: 600 15px var(--f2);
  outline: none;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.plan-select:focus,
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: rgba(230,57,70,.55);
  box-shadow: 0 0 0 4px rgba(230,57,70,.12);
  background: rgba(8,8,18,.92);
}

.price-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 22px 0 16px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(245,197,66,.2);
  background: linear-gradient(135deg, rgba(245,197,66,.12), rgba(22,163,74,.07));
}

.price {
  display: inline-block;
  font-family: var(--f1);
  font-size: 48px;
  font-weight: 900;
  line-height: .95;
}

.billing {
  color: var(--txt2);
  font-weight: 800;
}

.price-box p {
  max-width: 230px;
  color: var(--txt2);
  font-size: 14px;
  line-height: 1.45;
}

.plan-details,
.feature-block,
.optional-details {
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}

.plan-details {
  margin-bottom: 14px;
}

.plan-details summary,
.feature-block summary,
.optional-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  color: #fff;
  font-family: var(--f1);
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.plan-details summary::-webkit-details-marker,
.feature-block summary::-webkit-details-marker,
.optional-details summary::-webkit-details-marker {
  display: none;
}

.plan-details summary::after,
.feature-block summary::after,
.optional-details summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--bdr2);
  border-radius: 999px;
  color: var(--p2);
}

.plan-details[open] summary::after,
.feature-block[open] summary::after,
.optional-details[open] summary::after {
  content: "-";
}

.plan-details summary strong {
  min-width: 0;
  color: var(--txt2);
  font-family: var(--f2);
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
}

.plan-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
  margin-bottom: 0;
}

.plan-facts div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: #111827;
}

.plan-facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--txt3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-facts strong {
  display: block;
  color: #fff;
  font-family: var(--f1);
  font-size: 16px;
  line-height: 1.2;
}

.feature-block {
  padding-top: 0;
}

.feature-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0 16px 16px;
  margin-top: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  color: var(--txt2);
  font-size: 15px;
  line-height: 1.45;
}

.checkout-panel {
  position: sticky;
  top: 84px;
}

.checkout-panel-single {
  position: static;
}

.checkout-panel > h2 {
  margin-bottom: 22px;
}

.order-card,
.order-form {
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: #111827;
}

.order-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.order-card p,
.form-head p {
  color: var(--txt2);
  font-size: 14px;
  line-height: 1.45;
}

.whatsapp-card {
  border-color: rgba(22,163,74,.22);
  background: linear-gradient(135deg, rgba(22,163,74,.12), #111827);
}

.whatsapp-message-preview {
  max-height: 178px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(22,163,74,.18);
  border-radius: 8px;
  background: rgba(5,5,13,.44);
}

.whatsapp-message-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-message-preview p {
  color: var(--txt2);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.method-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(22,163,74,.25);
  border-radius: 999px;
  color: var(--green);
  background: rgba(22,163,74,.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-pill {
  border-color: rgba(245,197,66,.25);
  color: var(--p2);
  background: rgba(245,197,66,.08);
}

.order-form {
  padding: 20px;
  scroll-margin-top: 88px;
  scroll-margin-bottom: 104px;
}

.checkout-panel-single .order-form {
  border: 0;
  background: transparent;
  padding: 0;
}

.form-head {
  margin-bottom: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.notes-field {
  display: block;
  margin: 0;
  padding: 0 16px 16px;
}

.optional-details {
  margin: 14px 0 18px;
}

.order-form textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-block {
  width: 100%;
}

.order-form button:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status a {
  color: var(--p2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status.has-checkout-link {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22,163,74,.2);
  border-radius: 8px;
  background: rgba(22,163,74,.07);
}

.checkout-status-copy {
  display: block;
}

.checkout-return-help {
  display: block;
  color: var(--txt2);
  font-weight: 600;
}

.checkout-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white !important;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(168, 85, 247, .25);
}

.checkout-paid-link {
  color: var(--green) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-checkout-bar {
  display: none;
}

@media (max-width: 980px) {
  .cart-hero-grid,
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .cart-page {
    padding-bottom: 104px;
    scroll-padding-top: 76px;
  }

  .cart-page nav.top {
    padding: 0 12px;
  }

  .cart-page nav.top .inner {
    justify-content: flex-start;
    gap: 10px;
  }

  .cart-page nav.top .inner > div:first-of-type {
    display: none;
  }

  .cart-page .lang-switch {
    margin-left: auto;
  }

  .cart-hero {
    padding: 82px 0 22px;
  }

  .cart-hero h1 {
    font-size: 30px;
    line-height: 1.04;
  }

  .cart-hero p {
    max-width: none;
    font-size: 15px;
  }

  .hero-actions {
    display: none;
  }

  .cart-trust,
  .plan-facts,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .plan-panel,
  .checkout-panel {
    padding: 16px;
  }

  .checkout-panel-single {
    padding: 18px;
  }

  .panel-top,
  .price-box {
    display: grid;
  }

  .plan-source {
    justify-self: start;
  }

  .price-box p {
    max-width: none;
  }

  .price {
    font-size: 40px;
  }

  .cart-panel h2 {
    font-size: 24px;
  }

  .order-card,
  .order-form {
    padding: 16px;
  }

  .order-form {
    scroll-margin-top: 76px;
  }

  .whatsapp-message-preview {
    max-height: 126px;
  }

  .plan-select,
  .order-form input,
  .order-form select,
  .order-form textarea,
  .btn-block {
    min-height: 56px;
    font-size: 16px;
  }

  .mobile-checkout-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
    gap: 10px;
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--bdr);
    background: rgba(7,17,31,.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 -18px 44px rgba(0,0,0,.35);
  }

  .mobile-checkout-bar span {
    display: block;
    color: var(--txt3);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-checkout-bar strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-checkout-bar .btn {
    min-height: 46px;
    min-width: 108px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}
