/* Cart, checkout and hosting package styles. */

/* ── Flash + inline notices ─────────────────────────────────── */
.cart-flash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
  padding: .85rem 1.25rem;
  border-radius: var(--hg-radius-sm);
  border: 1px solid var(--hg-border);
  background: var(--hg-surface);
  font-size: .95rem;
  font-weight: 600;
}
.cart-flash a { font-weight: 800; }
.cart-flash-added     { border-color: rgba(72,200,100,.35); background: rgba(72,200,100,.10); }
.cart-flash-duplicate { border-color: var(--hg-border-strong); }
.cart-flash-full,
.cart-flash-invalid   { border-color: rgba(200,72,72,.35); background: rgba(200,72,72,.10); }
.cart-inline-note { margin-top: 1.5rem; font-weight: 700; }
.dr-add-form { display: contents; }

/* ── Hosting packages ───────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.25rem 2rem;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  background: var(--hg-surface);
  transition: transform .3s var(--hg-ease), box-shadow .3s, border-color .3s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.plan-card-featured {
  border-color: var(--hg-accent);
  background: linear-gradient(160deg, var(--hg-surface-2), var(--hg-surface));
  box-shadow: 0 18px 48px rgba(136,132,192,.22);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 2rem;
  padding: .3rem 1rem;
  border-radius: 999px;
  background: var(--hg-accent-grad);
  color: #14102a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.plan-card h3 { font-size: 1.45rem; font-weight: 900; }
.plan-tagline { margin-top: .4rem; color: var(--hg-text-muted); font-size: .92rem; min-height: 3.5em; }
.plan-price { margin: 1.25rem 0 1.5rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.plan-amount {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--hg-brand-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plan-period { color: var(--hg-text-muted); font-size: .95rem; font-weight: 700; }
.plan-quote { font-size: 1.7rem; font-weight: 900; color: var(--hg-accent-light); line-height: 1.2; }
.plan-features { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--hg-text-soft);
  font-size: .95rem;
}
.plan-features svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: .35rem; color: #4bc868; }
.plan-cta-form { margin-top: auto; }
.plan-cta { width: 100%; justify-content: center; margin-top: auto; }
.plan-note { margin-top: 2.5rem; text-align: center; color: var(--hg-text-muted); font-size: .92rem; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cart-head .section-title { margin-bottom: 0; }
.cart-clear {
  padding: .45rem 1rem;
  border: 1px solid var(--hg-border);
  border-radius: 999px;
  background: none;
  color: var(--hg-text-muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cart-clear:hover { color: #f07070; border-color: rgba(200,72,72,.4); }

.cart-lines { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; }
.cart-line {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--hg-surface);
  border-bottom: 1px solid var(--hg-border);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(136,132,192,.18);
  color: var(--hg-accent-light);
}
.cart-line-icon svg { width: 20px; height: 20px; }
.cart-line-text { display: flex; flex-direction: column; min-width: 0; }
.cart-line-text strong { font-size: 1.02rem; font-weight: 800; overflow-wrap: anywhere; }
.cart-line-text span { color: var(--hg-text-muted); font-size: .85rem; }
.cart-line-price { font-weight: 800; white-space: nowrap; }
.cart-line-price small { color: var(--hg-text-muted); font-weight: 600; }
.cart-line-remove button {
  padding: .35rem .5rem;
  border: none;
  background: none;
  color: var(--hg-text-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.cart-line-remove button:hover { color: #f07070; }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hg-border-strong);
  border-radius: var(--hg-radius);
  background: var(--hg-bg-2);
  font-size: 1.05rem;
  font-weight: 700;
}
.cart-total strong { font-size: 1.6rem; font-weight: 900; }
.cart-note { margin-top: .9rem; color: var(--hg-text-muted); font-size: .88rem; }
.cart-more { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-weight: 700; font-size: .92rem; }

.cart-checkout-card {
  padding: 2rem;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  background: var(--hg-surface);
}
.cart-checkout-card h3 { font-size: 1.2rem; font-weight: 900; }
.cart-checkout-intro { margin: .6rem 0 1.5rem; color: var(--hg-text-muted); font-size: .9rem; }
.cart-checkout-card .btn { width: 100%; justify-content: center; }
.cart-checkout-help { margin-top: 1.25rem; color: var(--hg-text-muted); font-size: .85rem; line-height: 1.7; }

/* ── Empty + success states ─────────────────────────────────── */
.cart-empty,
.cart-success {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  background: var(--hg-surface);
}
.cart-empty h2, .cart-success h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin-bottom: .75rem; }
.cart-empty p, .cart-success p { color: var(--hg-text-soft); }
.cart-success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(72,200,100,.15);
  border: 1px solid rgba(72,200,100,.35);
  color: #4bc868;
}
.cart-success-icon svg { width: 30px; height: 30px; }
.cart-success-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.cart-summary-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-sm);
  background: var(--hg-bg-2);
}
.cart-summary-panel h3 { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hg-text-muted); margin-bottom: 1rem; }
.cart-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--hg-border);
  font-size: .95rem;
}
.cart-summary-list li:last-child { border-bottom: none; }
.cart-summary-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-weight: 800; }

@media (max-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr; }
  .plan-grid   { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan-tagline { min-height: 0; }
}

@media (max-width: 768px) {
  .cart-line { grid-template-columns: 36px 1fr auto; row-gap: .5rem; padding: 1.1rem 1.15rem; }
  .cart-line-icon { width: 36px; height: 36px; }
  .cart-line-remove { grid-column: 2 / -1; justify-self: start; }
  .cart-line-remove button { padding-left: 0; }
  .cart-head { flex-direction: column; align-items: flex-start; }
  .cart-checkout-card { padding: 1.5rem; }
  .cart-empty, .cart-success { padding: 2rem 1.25rem; }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; }
.faq-item { background: var(--hg-surface); border-bottom: 1px solid var(--hg-border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--hg-text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--hg-accent-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--hg-accent-light); outline-offset: -3px; }
.faq-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--hg-border-strong);
  border-radius: 50%;
  color: var(--hg-accent-light);
  font-size: 15px;
  transition: transform .25s var(--hg-ease), background .2s;
}
.faq-item[open] .faq-marker { transform: rotate(45deg); background: rgba(136,132,192,.18); }
.faq-item p { padding: 0 4.5rem 1.5rem 1.75rem; color: var(--hg-text-soft); font-size: .97rem; line-height: 1.8; }

@media (max-width: 768px) {
  .faq-item summary { padding: 1.1rem 1.15rem; font-size: .97rem; gap: 1rem; }
  .faq-item p { padding: 0 1.15rem 1.25rem; }
}
