.content-wrapper:has(.cf-page) .content-header,
.content-wrapper:has(.cf-thanks) .content-header {
  display: none;
}
.cf-page, .cf-thanks {
  --g: var(--brand-primary);
  --gd: #6ea02c;
  --s: #386870;
  --ink: #1a2b32;
  --muted: #5a7278;
  --line: #d7e2e5;
  max-width: 1040px;
  margin: 0 auto 28px;
  color: var(--ink);
}
.cf-hero {
  background: linear-gradient(135deg, #386870 0%, #2c545c 70%, var(--brand-primary) 160%);
  color: #fff;
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.cf-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.cf-hero h1, .cf-thanks h1 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.cf-hero p { margin: 0; opacity: .92; max-width: 640px; }
.cf-ref { margin-top: 10px !important; }
.cf-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.cf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(26,43,50,.04);
}
.cf-card h2 { margin: 0 0 14px; font-size: 16px; color: var(--s); font-weight: 800; }
.cf-table { width: 100%; }
.cf-table td, .cf-table th { padding: 10px 0; border-bottom: 1px solid #eef3f4; vertical-align: top; }
.cf-table small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.cf-amt { text-align: end; white-space: nowrap; font-weight: 600; }
.cf-due { text-align: end; color: #c0392b; font-size: 20px; }
.cf-note { margin: 12px 0 0; color: var(--muted); }
.cf-gw {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
  text-decoration: none !important; color: var(--ink) !important;
  background: #f7fafa;
}
.cf-gw:hover { border-color: #b7dc7a; background: #f2f8e6; }
.cf-gw i {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 18px; color: #fff;
  background: var(--s);
}
.cf-gw-credit i { background: var(--gd); }
.cf-gw span { flex: 1; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.cf-gw span small { font-weight: 600; font-size: 12px; color: var(--muted); }
.cf-gw em { font-style: normal; color: var(--gd); font-weight: 700; font-size: 12px; }
.cf-gw-credit { background: #eef6d8; }
.cf-gw-disabled { opacity: .92; background: #f4f6f2; }
.cf-gw-disabled em { color: var(--s); }
.cf-thanks {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 48px 24px; text-align: center; box-shadow: 0 8px 24px rgba(26,43,50,.06);
}
.cf-thanks h1 { color: var(--ink); }
.cf-thanks-icon { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.cf-thanks-icon.is-paid { color: var(--g); }
.cf-thanks-icon.is-pending { color: #f39c12; }
.cf-thanks-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cf-btn-primary, .cf-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 12px 18px; font-weight: 700; text-decoration: none !important;
}
.cf-btn-primary { background: var(--g); color: #fff !important; }
.cf-btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--s) !important; }
@media (max-width: 900px) { .cf-grid { grid-template-columns: 1fr; } }

/* Thank-you / pending activation */
.content-wrapper:has(.cf-ty) .content-header { display: none; }
.cf-ty {
  --g: var(--brand-primary, #8fbc3a);
  --gd: #6ea02c;
  --s: #386870;
  --ink: #1a2b32;
  --muted: #5a7278;
  --line: #d7e2e5;
  --amber: #c47a12;
  max-width: 920px;
  margin: 0 auto 36px;
  color: var(--ink);
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
  animation: cfTyIn .55s ease both;
}
@keyframes cfTyIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cf-ty-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  align-items: end;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(143,188,58,.22), transparent 55%),
    linear-gradient(135deg, #2c545c 0%, #386870 55%, #2a4a52 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 28px 0;
  overflow: hidden;
  min-height: 210px;
}
.cf-ty-hero-copy { padding-bottom: 28px; }
.cf-ty-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .78;
}
.cf-ty-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.cf-ty-chip.is-pending { background: rgba(255, 186, 72, .2); border-color: rgba(255, 210, 120, .45); color: #ffe8b8; }
.cf-ty-chip.is-paid { background: rgba(143,188,58,.28); border-color: rgba(190,220,120,.45); color: #e8f6c8; }
.cf-ty-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.cf-ty-lead { margin: 0; max-width: 34rem; opacity: .94; line-height: 1.7; font-size: 15px; }
.cf-ty-ref { margin: 12px 0 0; font-size: 14px; opacity: .9; }
.cf-ty-ref strong { font-weight: 800; }
.cf-ty-hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: cfTyFloat 4.5s ease-in-out infinite;
}
.cf-ty-hero-visual img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
@keyframes cfTyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cf-ty-panel {
  margin-top: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 28px rgba(26,43,50,.07);
  position: relative;
  z-index: 1;
}
.cf-ty-timer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 8px 8px 22px;
  border-bottom: 1px solid #eef3f4;
  margin-bottom: 22px;
}
.cf-ty-ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
}
.cf-ty-ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.cf-ty-ring-track {
  fill: none;
  stroke: #e8eef0;
  stroke-width: 8;
}
.cf-ty-ring-prog {
  fill: none;
  stroke: var(--amber);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear;
  filter: drop-shadow(0 0 0 transparent);
}
.cf-ty[data-status="paid"] .cf-ty-ring-prog { stroke: var(--g); }
.cf-ty-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cf-ty-colon {
  animation: cfTyBlink 1s steps(1) infinite;
  padding: 0 1px;
  opacity: .85;
}
@keyframes cfTyBlink {
  0%, 49% { opacity: .85; }
  50%, 100% { opacity: .25; }
}
.cf-ty-timer-label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--s);
}
.cf-ty-timer-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 36rem;
}
.cf-ty-redirect {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.cf-ty-timer.is-complete .cf-ty-ring-prog { stroke: var(--s); }
.cf-ty-timer.is-complete .cf-ty-time { color: var(--s); }
.cf-ty-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cf-ty-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7fafa;
  min-height: 86px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.cf-ty-steps li.is-done {
  background: #f3f8e8;
  border-color: #d5e6b0;
}
.cf-ty-steps li.is-active {
  background: #fff8ee;
  border-color: #f0d2a0;
  transform: translateY(-2px);
  animation: cfTyPulse 2.2s ease-in-out infinite;
}
.cf-ty[data-status="paid"] .cf-ty-steps li.is-active {
  background: #f3f8e8;
  border-color: #d5e6b0;
}
@keyframes cfTyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,122,18,.0); }
  50% { box-shadow: 0 0 0 6px rgba(196,122,18,.08); }
}
.cf-ty-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--s);
  flex: 0 0 28px;
  font-size: 12px;
}
.cf-ty-steps li.is-done .cf-ty-step-dot {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.cf-ty-steps li.is-active .cf-ty-step-dot {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.cf-ty-steps strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.cf-ty-steps small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cf-ty-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f7f8 0%, #eef5ea 100%);
  border: 1px solid #d5e2e6;
}
.cf-ty-help-copy { flex: 1 1 240px; }
.cf-ty-help-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--s);
  margin-bottom: 4px;
}
.cf-ty-help-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36rem;
}
.cf-ty-help-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cf-ty-sec { margin-bottom: 8px; }
.cf-ty-sec .hb-sec-banner {
  margin-bottom: 0;
  background: #f7fafa;
  border-color: #d7e2e5;
  color: #3a5056;
  box-shadow: none;
}
.cf-ty-sec .hb-sec-icon {
  background: #fff;
  border-color: #d7e2e5;
  color: var(--s);
}
.cf-ty-sec .hb-sec-intro { color: #3a5056; }
.cf-ty-sec .hb-sec-meta span { color: var(--muted); }
.cf-ty-sec .hb-sec-meta strong { color: var(--ink); }
.cf-ty-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 4px;
}
.cf-ty-actions .cf-btn-primary,
.cf-ty-help-actions .cf-btn-primary {
  background: var(--s);
}
.cf-ty-actions .cf-btn-primary:hover,
.cf-ty-help-actions .cf-btn-primary:hover {
  background: #2c545c;
}
@media (max-width: 820px) {
  .cf-ty-hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 0; }
  .cf-ty-hero-visual { order: -1; justify-content: flex-start; }
  .cf-ty-hero-visual img { width: 120px; }
  .cf-ty-timer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cf-ty-timer-hint { margin-inline: auto; }
  .cf-ty-steps { grid-template-columns: 1fr; }
  .cf-ty-help { flex-direction: column; align-items: stretch; }
  .cf-ty-help-actions { width: 100%; }
  .cf-ty-help-actions a { flex: 1 1 auto; justify-content: center; }
}

.hb-sec-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff8e1;
  border: 1px solid #f0e0a8;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
  color: #5c4a12;
  box-shadow: 0 4px 14px rgba(180, 140, 20, .08);
}
.hb-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ead9a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b5420;
  flex: 0 0 36px;
  font-size: 16px;
}
.hb-sec-intro { margin: 0 0 8px; font-size: 13.5px; line-height: 1.7; font-weight: 600; }
.hb-sec-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.hb-sec-meta li { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.hb-sec-meta span { color: #8a7430; min-width: 88px; }
.hb-sec-meta strong { color: #3d3416; }
@media (max-width: 700px) {
  .hb-sec-meta { grid-template-columns: 1fr; }
}

/* Shopping cart */
.sc-page { --g:var(--brand-primary); --gd:#6ea02c; --s:#386870; --ink:#1a2b32; --muted:#5a7278; --line:#d7e2e5; max-width: 980px; margin: 24px auto 48px; padding: 0 16px; color: var(--ink); }
.sc-hero { background: linear-gradient(135deg, #386870 0%, #2c545c 70%, var(--brand-primary) 160%); color:#fff; border-radius:16px; padding:26px 28px; margin-bottom:18px; }
.sc-hero h1 { margin:0 0 6px; font-size:26px; font-weight:800; color:#fff; }
.sc-hero p { margin:0; opacity:.92; }
.sc-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px 0 18px; box-shadow:0 6px 18px rgba(26,43,50,.04); }
.sc-item { display:grid; grid-template-columns: 1fr auto auto; gap:12px; align-items:center; padding:16px 22px; border-bottom:1px solid #eef3f4; }
.sc-item h3 { margin:0 0 4px; font-size:16px; }
.sc-item p { margin:0; color:var(--muted); font-size:13px; }
.sc-price { font-weight:800; font-size:16px; white-space:nowrap; }
.sc-remove { color:#c0392b !important; font-weight:700; font-size:13px; }
.sc-empty { padding:48px 24px; text-align:center; }
.sc-empty a { color:var(--gd); font-weight:700; }
.sc-foot { display:grid; grid-template-columns: 1fr 280px; gap:18px; padding:18px 22px 4px; }
.sc-disc label { display:block; font-size:12px; font-weight:700; color:var(--muted); margin-bottom:6px; }
.sc-disc-row { display:flex; gap:8px; }
.sc-disc input { flex:1; height:44px; border:1px solid var(--line); border-radius:10px; padding:0 12px; }
.sc-disc button { height:44px; border:0; border-radius:10px; background:var(--s); color:#fff; font-weight:700; padding:0 14px; }
.sc-msg { margin:8px 0 0; font-size:13px; font-weight:700; }
.sc-msg.is-ok { color:#1e8e5a; }
.sc-msg.is-error { color:#c0392b; }
.sc-card.is-busy { opacity:.55; pointer-events:none; transition:opacity .15s ease; }
.sc-item-promo h3 { color:#1e8e5a; }
.sc-total { background:#f7fafa; border-radius:12px; padding:16px; }
.sc-total-row { display:flex; justify-content:space-between; margin-bottom:8px; }
.sc-total-row.grand { font-size:20px; font-weight:800; color:var(--s); margin:12px 0; }
.sc-cta { display:block; text-align:center; background:var(--g); color:#fff !important; border-radius:10px; padding:13px; font-weight:800; text-decoration:none !important; }
.sc-cta:hover { background:var(--gd); }
.sc-links { margin-top:10px; display:flex; justify-content:space-between; gap:8px; font-size:13px; }
.sc-links a { color:var(--s); font-weight:700; }
.sc-clear { color:#c0392b !important; }
@media (max-width: 760px) {
  .sc-item, .sc-foot { grid-template-columns: 1fr; }
}

/* Client pending orders */
.content-wrapper:has(.cf-pending) .content-header { display: none; }
.cf-pending {
  --g: var(--brand-primary, #8fbc3a);
  --s: #386870;
  --ink: #1a2b32;
  --muted: #5a7278;
  --line: #d7e2e5;
  --amber: #c47a12;
  max-width: 1040px;
  margin: 0 auto 36px;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
}
.cf-pending-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #2c545c 0%, #386870 60%, #2a4a52 100%);
  color: #fff;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 16px;
}
.cf-pending-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .78;
}
.cf-pending-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
}
.cf-pending-hero p { margin: 0; opacity: .92; max-width: 36rem; line-height: 1.65; }
.cf-pending-count {
  min-width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.cf-pending-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 4px 12px;
  box-shadow: 0 8px 24px rgba(26,43,50,.06);
}
.cf-pending-empty {
  text-align: center;
  padding: 48px 20px;
}
.cf-pending-empty i { font-size: 42px; color: var(--g); margin-bottom: 10px; }
.cf-pending-empty strong { display: block; font-size: 18px; margin-bottom: 6px; }
.cf-pending-empty p { color: var(--muted); margin: 0 0 16px; }
.cf-pending-table { margin: 0; }
.cf-pending-table > thead > tr > th {
  border-bottom: 1px solid #eef3f4 !important;
  color: var(--s);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 14px 16px !important;
  background: transparent;
}
.cf-pending-table > tbody > tr > td {
  vertical-align: middle !important;
  padding: 16px !important;
  border-top: 1px solid #eef3f4 !important;
}
.cf-pending-status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
}
.cf-pending-timer-col { min-width: 120px; }
.cf-pending-timer { display: inline-flex; align-items: center; }
.cf-pending-ring {
  position: relative;
  width: 64px;
  height: 64px;
}
.cf-pending-ring svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}
.cf-pending-ring .track {
  fill: none;
  stroke: #e8eef0;
  stroke-width: 4;
}
.cf-pending-ring .prog {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset .8s linear;
}
.cf-pending-timer.is-done .prog { stroke: var(--s); }
.cf-pending-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
@media (max-width: 760px) {
  .cf-pending-hero { flex-direction: column; align-items: flex-start; }
  .cf-pending-table > thead { display: none; }
  .cf-pending-table > tbody > tr {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid #eef3f4;
  }
  .cf-pending-table > tbody > tr > td {
    display: block;
    border: 0 !important;
    padding: 4px 0 !important;
  }
}
