/* =============================================================================
   CLOUDCAREHOST ULTRA-FAST CHECKOUT DESIGN SYSTEM
   Inspired by UltaHost & MilesWeb · Built on CloudCareHost Sky-Blue Tokens
   ============================================================================= */

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-ring: rgba(14, 165, 233, 0.22);
  --sky-shadow: rgba(14, 165, 233, 0.32);

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-900: #0f172a;
  --text-800: #1e293b;
  --text-700: #334155;
  --text-600: #475569;
  --text-500: #64748b;
  --text-400: #94a3b8;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --amber-50: #fffbeb;
  --amber-600: #d97706;

  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.03);
  --shadow-sticky: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-800);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sky-600);
  text-decoration: none;
}
a:hover {
  color: var(--sky-700);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Top Header --- */
.cch-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.cch-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cch-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cch-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.cch-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cch-steps-nav {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-500);
}

@media (min-width: 960px) {
  .cch-steps-nav {
    display: flex;
  }
}

.cch-step-crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-700);
}

.cch-step-crumb .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky-500);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cch-step-sep {
  width: 22px;
  height: 1px;
  background: var(--border-hover);
}

.cch-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cch-currency-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cch-currency-select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 32px 7px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-900);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cch-currency-select:hover, .cch-currency-select:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px var(--sky-ring);
}

.cch-currency-select:disabled {
  background: var(--bg-subtle);
  cursor: not-allowed;
  opacity: 0.85;
}

.cch-currency-caret {
  position: absolute;
  right: 11px;
  pointer-events: none;
  color: var(--text-500);
}

.cch-support-link {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-700);
  border: 1px solid var(--border-light);
  background: #fff;
  transition: all 0.15s;
}
.cch-support-link:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
  background: var(--sky-50);
}

@media (min-width: 640px) {
  .cch-support-link {
    display: inline-flex;
  }
}

/* --- Main Layout --- */
.cch-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 20px 110px;
}

.cch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

@media (min-width: 1024px) {
  .cch-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.95fr);
    gap: 28px;
  }
  .cch-container {
    padding-bottom: 64px;
  }
}

.cch-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Section Cards --- */
.cch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 639px) {
  .cch-card {
    padding: 18px 16px;
  }
}

.cch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cch-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cch-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  color: var(--sky-600);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cch-card-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.01em;
}

.cch-card-sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-500);
}

/* --- Plan Hero Banner & Switcher --- */
.cch-plan-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 68%);
  border: 1px solid var(--sky-200);
}

.cch-plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cch-group-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sky-500);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cch-plan-name {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.015em;
}

.cch-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sky-200);
  background: #fff;
  color: var(--sky-600);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-btn-outline-sm:hover {
  background: var(--sky-50);
  border-color: var(--sky-500);
}

.cch-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--sky-200);
}

.cch-feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-700);
}
.cch-feat-chip svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* Plan Switcher Drawer */
.cch-plan-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.cch-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.cch-cat-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-700);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-cat-pill:hover {
  border-color: var(--sky-400);
  color: var(--sky-600);
}
.cch-cat-pill.active {
  background: var(--sky-500);
  border-color: var(--sky-500);
  color: #fff;
}

.cch-plan-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.cch-plan-mini {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-plan-mini:hover {
  border-color: var(--sky-400);
}
.cch-plan-mini.active {
  border-color: var(--sky-500);
  background: var(--sky-50);
  box-shadow: 0 0 0 3px var(--sky-ring);
}
.cch-plan-mini-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-900);
}
.cch-plan-mini-price {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky-600);
}

/* --- Step 1: Billing Cycle Grid (UltaHost / MilesWeb Style) --- */
.cch-cycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}

.cch-cycle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 15px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cch-cycle-card:hover {
  border-color: var(--sky-400);
  transform: translateY(-1px);
}

.cch-cycle-card.active {
  border-color: var(--sky-500);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px var(--sky-ring);
}

.cch-cycle-ribbon {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--emerald-600);
  color: #fff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.cch-cycle-ribbon.best {
  background: var(--sky-500);
  box-shadow: 0 2px 8px var(--sky-shadow);
}

.cch-cycle-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cch-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.active .cch-radio-dot {
  border-color: var(--sky-500);
  background: var(--sky-500);
}
.active .cch-radio-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.cch-cycle-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-900);
}

.cch-cycle-price-main {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-900);
  line-height: 1.15;
}
.cch-cycle-price-main span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-500);
}

.cch-cycle-strike {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-400);
  text-decoration: line-through;
  min-height: 1.1em;
}

.cch-cycle-billed {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 0.73rem;
  color: var(--text-600);
  font-weight: 500;
}

/* --- Step 2: Configurable Options (Locations, OS, Panels) --- */
.cch-opt-block + .cch-opt-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-subtle);
}

.cch-opt-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-800);
  margin-bottom: 10px;
}

.cch-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}

.cch-choice-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.cch-choice-card:hover {
  border-color: var(--sky-400);
}
.cch-choice-card.active {
  border-color: var(--sky-500);
  background: var(--sky-50);
  box-shadow: 0 0 0 3px var(--sky-ring);
}

.cch-flag-box {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.cch-flag-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cch-choice-meta {
  flex: 1;
  min-width: 0;
}
.cch-choice-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cch-choice-sub {
  font-size: 0.73rem;
  color: var(--text-500);
}
.cch-choice-price {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald-600);
  white-space: nowrap;
}
.cch-choice-price.paid {
  color: var(--sky-600);
}

/* OS Family Cards */
.cch-os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.cch-os-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-os-card:hover {
  border-color: var(--sky-400);
}
.cch-os-card.active {
  border-color: var(--sky-500);
  background: var(--sky-50);
  box-shadow: 0 0 0 3px var(--sky-ring);
}

.cch-os-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cch-os-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
.cch-os-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-900);
}
.cch-os-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-800);
}
.cch-os-select:focus {
  outline: none;
  border-color: var(--sky-500);
}

/* --- Step 3: Domain Tabs & Search --- */
.cch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.cch-tab-btn {
  flex: 1 1 auto;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-600);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-tab-btn:hover {
  color: var(--text-900);
}
.cch-tab-btn.active {
  background: #fff;
  color: var(--sky-600);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.cch-domain-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cch-domain-input-wrap {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cch-domain-input-wrap:focus-within {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px var(--sky-ring);
}

.cch-domain-prefix {
  padding-left: 14px;
  color: var(--text-400);
  font-size: 0.88rem;
  font-weight: 500;
  user-select: none;
}

.cch-domain-input {
  flex: 1;
  border: none;
  padding: 12px 12px 12px 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-900);
  min-width: 0;
}
.cch-domain-input:focus {
  outline: none;
}

.cch-tld-select {
  border: none;
  border-left: 1px solid var(--border-light);
  background: var(--bg-subtle);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-800);
  cursor: pointer;
}
.cch-tld-select:focus {
  outline: none;
}

.cch-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--sky-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--sky-shadow);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.cch-btn-primary:hover:not(:disabled) {
  background: var(--sky-600);
  transform: translateY(-1px);
}
.cch-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Selected Domain Banner */
.cch-selected-domain {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cch-selected-domain-title {
  font-weight: 700;
  color: var(--emerald-700);
  font-size: 0.92rem;
}
.cch-selected-domain-sub {
  font-size: 0.76rem;
  color: var(--text-600);
}

/* Domain Search Results */
.cch-domain-result-primary {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cch-domain-result-primary.available {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.cch-domain-result-primary.unavailable {
  background: var(--red-50);
  border-color: #fecaca;
}

.cch-alt-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.cch-alt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
}
.cch-alt-dom {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-900);
}
.cch-alt-price {
  font-size: 0.78rem;
  color: var(--text-600);
  font-weight: 600;
}
.cch-btn-add-dom {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--sky-500);
  background: var(--sky-50);
  color: var(--sky-600);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-btn-add-dom:hover, .cch-btn-add-dom.selected {
  background: var(--sky-500);
  color: #fff;
}

/* --- Step 4: Form Inputs --- */
.cch-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .cch-form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .cch-form-grid .span-2 {
    grid-column: span 2;
  }
}

.cch-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 5px;
}

.cch-input, .cch-select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #fff;
  color: var(--text-900);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cch-input:focus, .cch-select:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px var(--sky-ring);
}
.cch-input.invalid {
  border-color: var(--red-500);
}

.cch-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cch-pw-wrap .cch-input {
  padding-right: 110px;
}
.cch-pw-actions {
  position: absolute;
  right: 6px;
  display: flex;
  gap: 4px;
}
.cch-mini-action {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-700);
  cursor: pointer;
}
.cch-mini-action:hover {
  border-color: var(--sky-400);
  color: var(--sky-600);
}

.cch-account-verified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
}
.cch-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sky-500);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cch-inline-hint {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--amber-50);
  border: 1px solid #fde68a;
  font-size: 0.78rem;
  color: var(--text-800);
}

/* --- Step 5: Payment Gateway Card --- */
.cch-gw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cch-gw-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-gw-card.active {
  border-color: var(--sky-500);
  background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px var(--sky-ring);
}
.cch-pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cch-pay-pill {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-700);
}

/* --- Right Column: Sticky Order Summary --- */
.cch-summary-col {
  position: sticky;
  top: 90px;
}

.cch-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sticky);
}

.cch-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.cch-summary-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-900);
}

.cch-line-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cch-line-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}
.cch-line-name {
  font-weight: 600;
  color: var(--text-800);
}
.cch-line-sub {
  font-size: 0.75rem;
  color: var(--text-500);
}
.cch-line-val {
  font-weight: 700;
  color: var(--text-900);
  text-align: right;
  white-space: nowrap;
}
.cch-line-val .strike {
  display: block;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-400);
  text-decoration: line-through;
}
.cch-line-free {
  color: var(--emerald-600);
  font-weight: 700;
}

/* Promo Box */
.cch-promo-box {
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
}
.cch-promo-form {
  display: flex;
  gap: 8px;
}
.cch-promo-btn {
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sky-500);
  background: var(--sky-50);
  color: var(--sky-600);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s;
}
.cch-promo-btn:hover {
  background: var(--sky-500);
  color: #fff;
}
.cch-promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Savings Callout */
.cch-savings-banner {
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cch-total-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0 6px;
}
.cch-total-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-900);
}
.cch-total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.02em;
}

.cch-cta-pay {
  width: 100%;
  margin-top: 14px;
  padding: 15px 20px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.cch-alert-error {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-50);
  border: 1px solid #fecaca;
  color: var(--red-600);
  font-size: 0.82rem;
  font-weight: 600;
}

.cch-trust-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-600);
  font-weight: 600;
}
.cch-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cch-trust-item svg {
  color: var(--sky-500);
  flex-shrink: 0;
}

/* --- Mobile Sticky Bar --- */
.cch-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: #fff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 1024px) {
  .cch-mobile-bar {
    display: none;
  }
}

/* --- Confirmation Screen --- */
.cch-success-wrap {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 28px;
}
.cch-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--emerald-50);
  border: 2px solid var(--emerald-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cch-meta-box {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  text-align: left;
}
.cch-meta-box small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-500);
  text-transform: uppercase;
  font-weight: 600;
}
.cch-meta-box strong {
  font-size: 0.95rem;
  color: var(--text-900);
}

/* Spinner */
.cch-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cchSpin 0.65s linear infinite;
}
@keyframes cchSpin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}
