/* HEM Pricing, Cart, Checkout — brand #086AD8 / #0e2b3d */
:root {
  --hem-blue: #086AD8;
  --hem-blue-dark: #0656b0;
  --hem-navy: #0e2b3d;
  --hem-muted: #6b7a90;
  --hem-bg: #eef3fb;
  --hem-card: #ffffff;
  --hem-border: #e6ebf2;
}

.pricing-area { background: linear-gradient(160deg, #f7f3ef 0%, #eaf1fb 45%, #e8eefc 100%); }
.hem-plans-page { padding-top: 50px; padding-bottom: 70px; }

.plans-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.plans-hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--hem-navy);
  letter-spacing: -0.02em;
}
.plans-hero-copy p {
  margin: 0;
  max-width: 520px;
  color: var(--hem-muted);
  font-size: 15px;
  line-height: 1.6;
}
.plans-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(14, 43, 61, 0.06);
  max-width: 100%;
}
.plans-chip {
  border: 0;
  background: transparent;
  color: var(--hem-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.plans-chip.is-active {
  background: var(--hem-blue);
  color: #fff;
}

.plans-shell {
  background: rgba(255,255,255,0.72);
  border-radius: 28px;
  padding: 28px 22px 10px;
  box-shadow: 0 20px 50px rgba(14, 43, 61, 0.08);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 22px;
  border: 1px solid rgba(230, 235, 242, 0.9);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(14, 43, 61, 0.1);
}
.plan-card.is-featured {
  background: linear-gradient(165deg, #0e2b3d 0%, #134a7c 55%, #086AD8 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 22px 48px rgba(8, 106, 216, 0.28);
  transform: translateY(-10px);
}
.plan-card.is-featured:hover { transform: translateY(-12px); }
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--hem-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.plan-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--hem-navy);
  line-height: 1.1;
  margin-bottom: 10px;
}
.plan-price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--hem-muted);
}
.plan-card.is-featured .plan-price,
.plan-card.is-featured .plan-name { color: #fff; }
.plan-card.is-featured .plan-price small,
.plan-card.is-featured .plan-desc { color: rgba(255,255,255,0.72); }
.plan-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hem-navy);
}
.plan-desc {
  margin: 0 0 18px;
  color: var(--hem-muted);
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}
.plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f1fc;
  box-shadow: inset 0 0 0 4px #086AD8;
}
.plan-card.is-featured .plan-features li {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.12);
}
.plan-card.is-featured .plan-features li::before {
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 0 4px #fff;
}
.plan-actions {
  display: grid;
  gap: 8px;
}
.plan-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.plan-btn-primary {
  background: var(--hem-blue);
  color: #fff;
}
.plan-btn-primary:hover { background: var(--hem-blue-dark); }
.plan-btn-secondary {
  background: #eef2f7;
  color: var(--hem-navy);
}
.plan-btn-secondary:hover { background: #e2e8f0; }
.plan-card.is-featured .plan-btn-primary {
  background: #fff;
  color: var(--hem-navy);
}
.plan-card.is-featured .plan-btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.pricing-note {
  font-size: 13px;
  color: var(--hem-muted);
  margin-top: 22px;
  line-height: 1.6;
  text-align: center;
}
.pricing-note a { color: var(--hem-blue); font-weight: 600; }

/* —— Shared commerce shell —— */
.hem-commerce {
  max-width: 1080px;
  margin: 0 auto;
}
.hem-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
  max-width: 640px;
  flex-wrap: wrap;
}
.hem-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hem-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hem-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 13px;
}
.hem-step.is-done .hem-step-num,
.hem-step.is-active .hem-step-num {
  background: var(--hem-blue);
  color: #fff;
}
.hem-step.is-active { color: var(--hem-navy); }
.hem-step-line {
  width: 48px;
  height: 2px;
  background: #dbe4f0;
  margin: 0 10px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.checkout-form-card,
.cart-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(14, 43, 61, 0.07);
  padding: 28px;
}
.checkout-form-card h3,
.cart-panel h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--hem-navy);
}
.checkout-form-card .sub { color: var(--hem-muted); font-size: 14px; margin: 0 0 20px; }
.checkout-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hem-navy);
  margin-bottom: 6px;
}
.checkout-form-card .form-group { margin-bottom: 14px; }
.checkout-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-form-card input,
.checkout-form-card select,
.checkout-form-card textarea {
  width: 100%;
  border: 1px solid var(--hem-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--hem-navy);
  background: #f8fafc;
}
.checkout-form-card input:focus,
.checkout-form-card select:focus,
.checkout-form-card textarea:focus {
  outline: 2px solid rgba(8,106,216,0.22);
  border-color: var(--hem-blue);
  background: #fff;
}
.checkout-form-card textarea { min-height: 110px; resize: vertical; }
.checkout-form-card .btn-submit,
.btn-hem-block {
  background: var(--hem-blue);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.checkout-form-card .btn-submit:hover,
.btn-hem-block:hover { background: var(--hem-blue-dark); }
.checkout-legal { font-size: 12px; color: var(--hem-muted); margin-top: 12px; line-height: 1.5; }
.checkout-legal a { font-weight: 600; color: var(--hem-blue); }

.checkout-summary {
  background: linear-gradient(165deg, #0e2b3d 0%, #086AD8 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(8, 106, 216, 0.28);
  min-height: 280px;
}
.checkout-summary h3 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #fff;
}
.checkout-summary .price-big {
  margin: 8px 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.checkout-summary .row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 14px;
}
.checkout-summary .row-line span { color: rgba(255,255,255,0.78); }
.checkout-summary .row-line strong { color: #fff; text-align: right; }
.checkout-summary .pricing-note,
.checkout-summary .summary-note {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
}
.checkout-summary a { color: #fff; font-weight: 600; text-decoration: underline; }
.checkout-summary .feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.checkout-summary .feature-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.checkout-summary .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: #9fd0ff;
  font-weight: 700;
}

/* Cart list */
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hem-border);
  align-items: start;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--hem-navy); }
.cart-item .meta { margin: 0; color: var(--hem-muted); font-size: 13px; }
.cart-item .fee { font-size: 18px; font-weight: 700; color: var(--hem-blue); white-space: nowrap; }
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cart-total-label { color: var(--hem-muted); font-size: 13px; }
.cart-total-value { font-size: 28px; font-weight: 700; color: var(--hem-navy); }

/* Payment methods */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.pay-methods label {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.pay-methods input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  border: 1.5px solid var(--hem-border);
  border-radius: 16px;
  padding: 18px 14px 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pay-methods label:has(input:checked) .pay-method-card {
  border-color: var(--hem-blue);
  box-shadow: 0 0 0 3px rgba(8, 106, 216, 0.15);
}
.pay-method-card .pay-ico,
.pay-method-card img.pay-ico,
.pay-method-card img {
  width: auto !important;
  max-width: 120px !important;
  height: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  background: transparent !important;
  padding: 0 !important;
}
.pay-method-card .pay-method-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hem-navy);
  text-align: center;
}
.qr-pay-box { text-align: center; margin-bottom: 14px; }
.hem-static-qr {
  width: min(220px, 100%);
  border-radius: 12px;
  border: 1px solid var(--hem-border);
  background: #fff;
  padding: 10px;
}
.order-box {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
}
.order-box .row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--hem-muted);
}
.order-box .row-line strong { color: var(--hem-navy); }
.order-box .row-total {
  border-top: 1px solid #dde5ef;
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 700;
  color: var(--hem-navy);
}

/* Payment status cards */
.pay-status-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 30px;
}
.pay-status-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(14, 43, 61, 0.1);
  padding: 36px 28px 28px;
  text-align: center;
}
.pay-status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}
.pay-status-icon.ok { background: var(--hem-blue); }
.pay-status-icon.fail { background: #c62828; }
.pay-status-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--hem-navy);
}
.pay-status-card .lead {
  margin: 0 0 20px;
  color: var(--hem-muted);
  font-size: 14px;
  line-height: 1.5;
}
.pay-status-card .divider {
  height: 1px;
  background: var(--hem-border);
  margin: 0 0 18px;
}
.pay-status-amount-label {
  font-size: 12px;
  color: var(--hem-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pay-status-amount {
  font-size: 34px;
  font-weight: 700;
  color: var(--hem-navy);
  margin: 6px 0 18px;
}
.pay-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.pay-meta {
  border: 1px solid var(--hem-border);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}
.pay-meta.wide { grid-column: 1 / -1; }
.pay-meta span {
  display: block;
  font-size: 11px;
  color: var(--hem-muted);
  margin-bottom: 4px;
}
.pay-meta strong {
  font-size: 13px;
  color: var(--hem-navy);
  word-break: break-word;
}
.pay-status-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.is-featured { transform: none; }
  .plan-card.is-featured:hover { transform: translateY(-3px); }
  .checkout-layout { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-shell { padding: 16px 12px 4px; border-radius: 20px; }
  .plans-filter { border-radius: 16px; }
  .checkout-form-card .form-row { grid-template-columns: 1fr; }
  .hem-step-line { width: 24px; margin: 0 6px; }
  .pay-meta-grid { grid-template-columns: 1fr; }
}
