/* ═══════════════════════════════════════════════════════════════════
   HG Cloud Configurator – CSS v4.0
   Themes: Dark (HostGraber neon green) · Light (Hostinger purple)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── Base Variables ──────────────────────────────────────────────── */
.hgcc-wrap {
  --hgcc-font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --hgcc-mono: 		  'Montserrat', sans-serif;
  --hgcc-radius:      12px;
  --hgcc-radius-sm:   8px;
  --hgcc-radius-lg:   16px;
  --summary-width:    320px;
  --transition:       0.18s ease;

  font-family: var(--hgcc-font);
  font-size: 14px;
  line-height: 1.5;
  /* NOTE: NO overflow:hidden here — it breaks position:sticky on summary panel */
}

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

/* ─────────────────────────────────────────────────────────────────
   DARK THEME  (HostGraber neon green)
───────────────────────────────────────────────────────────────── */
.hgcc-theme-dark {
  --hgcc-accent:        #22c55e;
  --hgcc-accent-2:      #16a34a;
  --hgcc-accent-dim:    rgba(34,197,94,0.10);
  --hgcc-accent-glow:   0 0 20px rgba(34,197,94,0.35);

  --hgcc-bg:            #050505;
  --hgcc-panel:         #0d0d0d;
  --hgcc-card:          #121212;
  --hgcc-card-active:   #0f1f14;

  --hgcc-border:        #1f1f1f;
  --hgcc-border-active: #22c55e;

  --hgcc-text:          #e5e7eb;
  --hgcc-text-2:        #9ca3af;
  --hgcc-muted:         #6b7280;

  --hgcc-cta-bg:        #22c55e;
  --hgcc-cta-hover:     #16a34a;
  --hgcc-cta-text:      #04110a;

  --hgcc-badge-bg:      rgba(34,197,94,0.15);
  --hgcc-badge-text:    #22c55e;

  --hgcc-total-color:   #22c55e;

  background: var(--hgcc-bg);
  color: var(--hgcc-text);
}

/* ─────────────────────────────────────────────────────────────────
   LIGHT THEME  (Hostinger purple – clean and modern)
───────────────────────────────────────────────────────────────── */
.hgcc-theme-light {
  --hgcc-accent:        #673de6;
  --hgcc-accent-2:      #5230c4;
  --hgcc-accent-dim:    rgba(103,61,230,0.08);
  --hgcc-accent-glow:   0 4px 20px rgba(103,61,230,0.22);
  --hgcc-bg:            #f9fafb;
  --hgcc-panel:         #ffffff;
  --hgcc-card:          #ffffff;
  --hgcc-card-active:   #f0ebff;
  --hgcc-border:        #e5e7eb;
  --hgcc-border-active: #673de6;
  --hgcc-text:          #111827;
  --hgcc-text-2:        #374151;
  --hgcc-muted:         #9ca3af;
  --hgcc-cta-bg:        #673de6;
  --hgcc-cta-hover:     #5230c4;
  --hgcc-cta-text:      #ffffff;
  --hgcc-badge-bg:      rgba(103,61,230,0.1);
  --hgcc-badge-text:    #673de6;
  --hgcc-total-color:   #673de6;
  background: var(--hgcc-bg);
  color: var(--hgcc-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* ── Marketplace Header ──────────────────────────────────────────── */
.hgcc-mp-header {
  padding: 28px 26px 20px;
  background: var(--hgcc-panel);
  border-bottom: 1px solid var(--hgcc-border);
}
.hgcc-widget-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--hgcc-text);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hgcc-theme-dark .hgcc-widget-title { color: var(--hgcc-accent); }
.hgcc-widget-sub {
  font-size: 14px;
  color: var(--hgcc-muted);
  margin: 0 0 18px;
}

/* ── Category Bar ────────────────────────────────────────────────── */
.hgcc-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hgcc-cat-pills .hgcc-cat-btn,
.hgcc-cat-tabs .hgcc-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--hgcc-border);
  background: transparent;
  color: var(--hgcc-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--hgcc-font);
  white-space: nowrap;
}
.hgcc-cat-pills .hgcc-cat-btn:hover,
.hgcc-cat-tabs  .hgcc-cat-btn:hover  { border-color: var(--hgcc-accent); color: var(--hgcc-accent); }
.hgcc-cat-pills .hgcc-cat-btn.active,
.hgcc-cat-tabs  .hgcc-cat-btn.active {
  background: var(--hgcc-accent);
  border-color: var(--hgcc-accent);
  color: var(--hgcc-cta-text);
}

/* ── Single Header ───────────────────────────────────────────────── */
.hgcc-single-header {
  padding: 24px 26px 16px;
  background: var(--hgcc-panel);
  border-bottom: 1px solid var(--hgcc-border);
  border-radius: 10px 10px 0 0;
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.hgcc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: var(--hgcc-panel);
  border-bottom: 1px solid var(--hgcc-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.hgcc-topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Product Tabs ────────────────────────────────────────────────── */
.hgcc-product-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.hgcc-product-tabs::-webkit-scrollbar { display: none; }
.hgcc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  background: transparent;
  color: var(--hgcc-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--hgcc-font);
  white-space: nowrap;
  position: relative;
}
.hgcc-tab:hover { border-color: var(--hgcc-accent); color: var(--hgcc-text); }
.hgcc-tab.active {
  background: var(--hgcc-accent-dim);
  border-color: var(--hgcc-accent);
  color: var(--hgcc-accent);
}
.hgcc-theme-light .hgcc-tab.active { color: var(--hgcc-accent); }
.hgcc-tab-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: .03em;
  color: #fff;
  line-height: 1.6;
}
.hgcc-tab-icon { font-size: 1em; line-height: 1; }
.hgcc-tab-hidden { display: none !important; }

/* ── Billing Pills ───────────────────────────────────────────────── */
.hgcc-billing-tabs {
  display: flex;
  gap: 3px;
  background: var(--hgcc-panel);
  border: 1px solid var(--hgcc-border);
  border-radius: 50px;
  padding: 3px;
}
.hgcc-billing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--hgcc-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--hgcc-font);
  white-space: nowrap;
}
.hgcc-billing-pill:hover { color: var(--hgcc-text); }
.hgcc-billing-pill.active {
  background: var(--hgcc-accent);
  color: var(--hgcc-cta-text);
}
.hgcc-sav-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 50px;
  background: rgba(0,200,100,.2);
  color: var(--hgcc-accent);
  border: 1px solid rgba(0,200,100,.3);
  display: none;
}
.hgcc-billing-pill.active .hgcc-sav-badge { background: rgba(0,0,0,.15); color: var(--hgcc-cta-text); border-color: transparent; }

/* ── Currency Toggle ─────────────────────────────────────────────── */
.hgcc-cur-toggle {
  display: flex;
  gap: 3px;
  background: var(--hgcc-panel);
  border: 1px solid var(--hgcc-border);
  border-radius: 50px;
  padding: 3px;
}
.hgcc-cur-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--hgcc-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--hgcc-font);
  transition: all var(--transition);
}
.hgcc-cur-btn.active { background: var(--hgcc-accent); color: var(--hgcc-cta-text); }
.hgcc-flag { font-size: 1.1em; line-height: 1; }

/* ── BODY LAYOUT ─────────────────────────────────────────────────── */
.hgcc-body { display: flex; align-items: stretch; }
.hgcc-layout-sidebar .hgcc-body { flex-direction: row; }
.hgcc-layout-stacked .hgcc-body { flex-direction: column; }
.hgcc-panels-wrap { flex: 1; min-width: 0; overflow-y: auto; max-height: inherit; }

/* ── Product Panel ───────────────────────────────────────────────── */
.hgcc-product-panel { display: none; padding: 24px; }
.hgcc-product-panel.active { display: block; }

.hgcc-panel-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--hgcc-panel);
  border: 1px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius);
  border-left: 3px solid var(--hgcc-accent);
}
.hgcc-panel-icon { font-size: 2em; line-height: 1; flex-shrink: 0; }
.hgcc-panel-name {
  font-size: 15px; font-weight: 700; margin: 0 0 2px; color: var(--hgcc-text);
}
.hgcc-panel-short { font-size: 12px; color: var(--hgcc-muted); margin: 0; }

/* ── Features List ───────────────────────────────────────────────── */
.hgcc-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.hgcc-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--hgcc-text-2);
  background: var(--hgcc-panel);
  border: 1px solid var(--hgcc-border);
  border-radius: 50px;
  padding: 4px 12px;
  font-weight: 500;
}
.hgcc-feat-check { color: var(--hgcc-accent); font-weight: 700; }

/* ── Specs Bar ───────────────────────────────────────────────────── */
.hgcc-specs-bar {
  background: var(--hgcc-panel);
  border: 1px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: none;
}
.hgcc-specs-inner { display: flex; flex-wrap: wrap; gap: 0; }
.hgcc-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px;
  border-right: 1px solid var(--hgcc-border);
}
.hgcc-spec-item:first-child { padding-left: 0; }
.hgcc-spec-item:last-child  { border-right: none; }
.hgcc-spec-icon { font-size: 1.2em; line-height: 1; }
.hgcc-spec-val {
  display: block;
  font-family: var(--hgcc-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--hgcc-accent);
  line-height: 1.2;
}
.hgcc-spec-lbl {
  display: block;
  font-size: 10px;
  color: var(--hgcc-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}

/* ── Configure Header ────────────────────────────────────────────── */
.hgcc-configure-header { margin-bottom: 16px; }
.hgcc-section-title {
  font-family: var(--hgcc-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hgcc-accent);
}

/* ── Loading / Error ─────────────────────────────────────────────── */
.hgcc-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 48px;
  color: var(--hgcc-muted);
  justify-content: center;
  font-size: 13px;
}
.hgcc-spinner {
  width: 26px; height: 26px;
  border: 2.5px solid var(--hgcc-border);
  border-top-color: var(--hgcc-accent);
  border-radius: 50%;
  animation: hgcc-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes hgcc-spin { to { transform: rotate(360deg); } }

.hgcc-error {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  background: rgba(255,60,60,.07);
  border: 1px solid rgba(255,80,80,.2);
  border-radius: var(--hgcc-radius);
  color: #ff7070; font-size: 13px;
  margin: 8px 0;
}

/* ── Option Row ──────────────────────────────────────────────────── */
.hgcc-option-row { margin-bottom: 28px; }
.hgcc-option-row:last-child { margin-bottom: 0; }
.hgcc-opt-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.hgcc-opt-name {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--hgcc-muted);
}
.hgcc-opt-sel-display {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
}
.hgcc-sel-val { color: var(--hgcc-text); font-weight: 600; }
.hgcc-sel-price {
  font-family: var(--hgcc-mono); font-size: 11px;
  color: var(--hgcc-accent); font-weight: 700;
  background: var(--hgcc-accent-dim);
  padding: 1px 7px; border-radius: 50px;
  border: 1px solid rgba(var(--hgcc-accent),0.15);
}

/* ── TYPE 1: Dropdown ────────────────────────────────────────────── */
.hgcc-dropdown-group { position: relative; }
.hgcc-select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  color: var(--hgcc-text);
  font-size: 13px; font-weight: 500;
  font-family: var(--hgcc-font);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 2l6 6 6-6' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hgcc-select:focus {
  outline: none;
  border-color: var(--hgcc-accent);
  box-shadow: 0 0 0 3px var(--hgcc-accent-dim);
}
.hgcc-select option { background: var(--hgcc-card); }

/* ── TYPE 2: Chips ───────────────────────────────────────────────── */
.hgcc-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* Card chips */
.hgcc-chips-card .hgcc-card-chip {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 14px 12px;
  min-width: 80px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius);
  color: var(--hgcc-text);
  font-family: var(--hgcc-font); cursor: pointer;
  transition: all var(--transition); position: relative;
}
.hgcc-chips-card .hgcc-card-icon { font-size: 1.5em; line-height: 1; }
.hgcc-chips-card .hgcc-card-name { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hgcc-chips-card .hgcc-chip-price {
  font-family: var(--hgcc-mono); font-size: 11px; color: var(--hgcc-muted); font-weight: 600;
}
.hgcc-chips-card .hgcc-card-chip:hover { border-color: var(--hgcc-accent); background: var(--hgcc-accent-dim); }
.hgcc-chips-card .hgcc-card-chip.active {
  border-color: var(--hgcc-border-active);
  background: var(--hgcc-card-active);
  color: var(--hgcc-accent);
  box-shadow: var(--hgcc-accent-glow);
}
.hgcc-chips-card .hgcc-card-chip.active .hgcc-chip-price { color: var(--hgcc-accent); opacity: .8; }
.hgcc-chips-card .hgcc-card-chip.active::after {
  content: '✓'; position: absolute; top: -8px; right: -8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--hgcc-accent); color: var(--hgcc-cta-text);
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Pill chips */
.hgcc-chips-pill .hgcc-pill-card {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: 50px;
  color: var(--hgcc-text);
  font-family: var(--hgcc-font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.hgcc-chips-pill .hgcc-chip-icon { font-size: 1em; }
.hgcc-chips-pill .hgcc-chip-price {
  font-family: var(--hgcc-mono); font-size: 11px; color: var(--hgcc-muted);
  border-left: 1px solid var(--hgcc-border); padding-left: 8px; margin-left: 1px;
}
.hgcc-chips-pill .hgcc-pill-card:hover { border-color: var(--hgcc-accent); background: var(--hgcc-accent-dim); }
.hgcc-chips-pill .hgcc-pill-card.active {
  border-color: var(--hgcc-border-active);
  background: var(--hgcc-card-active); color: var(--hgcc-accent);
}
.hgcc-chips-pill .hgcc-pill-card.active .hgcc-chip-price { color: var(--hgcc-accent); border-color: rgba(0,200,100,.2); }

/* List chips */
.hgcc-chips-list { flex-direction: column; gap: 6px; }
.hgcc-chips-list .hgcc-list-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  color: var(--hgcc-text);
  font-family: var(--hgcc-font); font-size: 13px; cursor: pointer;
  transition: all var(--transition); text-align: left;
}
.hgcc-chips-list .hgcc-chip-icon { font-size: 1.2em; width: 24px; text-align: center; flex-shrink: 0; }
.hgcc-chips-list .hgcc-chip-name { font-weight: 600; flex: 1; }
.hgcc-list-spacer { flex: 1; }
.hgcc-chips-list .hgcc-chip-price { font-family: var(--hgcc-mono); font-size: 12px; color: var(--hgcc-muted); font-weight: 700; }
.hgcc-check-icon { color: transparent; width: 20px; text-align: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.hgcc-chips-list .hgcc-list-card:hover { border-color: var(--hgcc-accent); background: var(--hgcc-accent-dim); }
.hgcc-chips-list .hgcc-list-card.active {
  border-color: var(--hgcc-border-active); background: var(--hgcc-card-active); color: var(--hgcc-accent);
}
.hgcc-chips-list .hgcc-list-card.active .hgcc-check-icon { color: var(--hgcc-accent); }
.hgcc-chips-list .hgcc-list-card.active .hgcc-chip-price { color: var(--hgcc-accent); }

/* Free price */
.price-free { color: var(--hgcc-accent) !important; }

/* ── TYPE 3: Toggle ──────────────────────────────────────────────── */
.hgcc-toggle-label {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 18px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  transition: border-color var(--transition);
}
.hgcc-toggle-label:hover { border-color: var(--hgcc-accent); }
.hgcc-toggle-track {
  position: relative; width: 46px; height: 26px;
  background: var(--hgcc-border); border-radius: 50px; flex-shrink: 0;
  transition: background .25s; border: 1px solid var(--hgcc-border);
}
.hgcc-toggle-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.hgcc-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--hgcc-muted);
  transition: transform .25s, background .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hgcc-toggle-cb:checked ~ .hgcc-toggle-knob { transform: translateX(20px); background: #000; }
.hgcc-toggle-track:has(.hgcc-toggle-cb:checked) {
  background: var(--hgcc-accent); border-color: var(--hgcc-accent);
  box-shadow: 0 0 12px rgba(0,200,100,.3);
}
.hgcc-toggle-status { font-size: 13px; font-weight: 600; color: var(--hgcc-text-2); flex: 1; }
.hgcc-toggle-price {
  font-family: var(--hgcc-mono); font-size: 12px; font-weight: 700; color: var(--hgcc-accent);
  padding: 3px 9px; background: var(--hgcc-accent-dim); border-radius: 6px;
  border: 1px solid rgba(0,200,100,.2);
}

/* ── TYPE 4: Quantity Stepper ────────────────────────────────────── */
.hgcc-qty-row {
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  padding: 16px 18px;
  transition: border-color var(--transition);
}
.hgcc-qty-row:focus-within { border-color: var(--hgcc-accent); }
.hgcc-qty-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 16px; }
.hgcc-qty-controls { display: flex; align-items: center; gap: 16px; }
.hgcc-qty-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--hgcc-panel); border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm); color: var(--hgcc-text);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: all var(--transition); font-family: var(--hgcc-font); font-weight: 300;
  display: flex; align-items: center; justify-content: center;
}
.hgcc-qty-btn:hover {
  border-color: var(--hgcc-accent); background: var(--hgcc-accent-dim); color: var(--hgcc-accent);
}
.hgcc-qty-val {
  font-family: var(--hgcc-mono); font-size: 22px; font-weight: 700;
  color: var(--hgcc-accent); min-width: 40px; text-align: center;
}
.hgcc-qty-right { text-align: right; }
.hgcc-qty-unit-label { display: block; font-size: 12px; color: var(--hgcc-muted); font-weight: 500; }
.hgcc-qty-unit-price { display: block; font-family: var(--hgcc-mono); font-size: 12px; color: var(--hgcc-text-2); font-weight: 600; }
.hgcc-qty-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hgcc-qty-subtotal-label { font-size: 11px; color: var(--hgcc-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.hgcc-qty-subtotal { font-family: var(--hgcc-mono); font-size: 13px; font-weight: 700; color: var(--hgcc-accent); }

.hgcc-qty-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 5px; background: var(--hgcc-border); border-radius: 50px;
  outline: none; cursor: pointer;
  background-image: linear-gradient(var(--hgcc-accent), var(--hgcc-accent));
  background-size: 0% 100%; background-repeat: no-repeat;
}
.hgcc-qty-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hgcc-accent); cursor: pointer;
  box-shadow: 0 0 0 3px var(--hgcc-accent-dim), 0 2px 6px rgba(0,0,0,.3);
  transition: box-shadow var(--transition);
}
.hgcc-qty-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: var(--hgcc-accent); cursor: pointer;
}

/* ── SUMMARY PANEL ───────────────────────────────────────────────── */
.hgcc-summary-panel {
  width: var(--summary-width);
  flex-shrink: 0;
  background: var(--hgcc-panel);
  border-left: 1px solid var(--hgcc-border);
}
.hgcc-layout-stacked .hgcc-summary-panel { width: 100%; border-left: none; border-top: 1px solid var(--hgcc-border); }
.hgcc-summary-sticky { position: sticky; top: var(--hgcc-sticky-top, 0px); max-height: 100vh; overflow-y: auto; align-self: flex-start; }
.hgcc-summary-sticky::-webkit-scrollbar { width: 4px; }
.hgcc-summary-sticky::-webkit-scrollbar-track { background: transparent; }
.hgcc-summary-sticky::-webkit-scrollbar-thumb { background: var(--hgcc-border); border-radius: 4px; }

.hgcc-sum-inner { padding: 22px; }

/* Total block */
.hgcc-total-block {
  padding: 16px 18px;
  background: var(--hgcc-card);
  border: 1px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius);
  margin-bottom: 16px;
}
.hgcc-total-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hgcc-total-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hgcc-muted); }
.hgcc-total-cycle-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  background: var(--hgcc-badge-bg); color: var(--hgcc-badge-text);
}
.hgcc-total-row { display: flex; align-items: baseline; gap: 5px; }
.hgcc-total-price {
  font-family: var(--hgcc-mono); font-size: 30px; font-weight: 800;
  color: var(--hgcc-total-color); line-height: 1;
  transition: all .22s;
}
@keyframes hgcc-flash { 0%,100%{opacity:1;transform:scale(1)}40%{opacity:.3;transform:scale(.93)} }
.hgcc-flash { animation: hgcc-flash .3s ease; }

.hgcc-total-suffix { font-size: 13px; color: var(--hgcc-muted); padding-bottom: 2px; }
.hgcc-total-billed { font-size: 11px; color: var(--hgcc-muted); margin-top: 5px; }
.hgcc-savings-pm {
  font-size: 12px; font-weight: 600; color: #16a34a;
  background: rgba(22,163,74,.09); border: 1px solid rgba(22,163,74,.2);
  border-radius: 6px; padding: 5px 10px; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.hgcc-sav-icon { font-size: 1em; }

/* Summary list */
.hgcc-summary-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--hgcc-border);
  border-bottom: 1px solid var(--hgcc-border);
  padding: 14px 0;
}
.hgcc-sum-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 13px; }
.hgcc-sum-key { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; }
.hgcc-si-icon { font-size: 1.1em; flex-shrink: 0; margin-top: 1px; }
.hgcc-sum-key-text strong { display: block; font-weight: 700; color: var(--hgcc-text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgcc-sum-key-text span  { display: block; font-size: 11px; color: var(--hgcc-muted); }
.hgcc-sum-val { font-family: var(--hgcc-mono); font-size: 12px; font-weight: 700; color: var(--hgcc-text); white-space: nowrap; flex-shrink: 0; }
.hgcc-sum-val.free { color: var(--hgcc-accent); }

/* ── CTA Button ──────────────────────────────────────────────────── */
.hgcc-cta-btn {
  display: block;
  padding: 15px 22px;
  background: var(--hgcc-cta-bg);
  color: var(--hgcc-cta-text) !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: var(--hgcc-radius-sm);
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  font-family: var(--hgcc-font);
  transition: all .2s; margin-bottom: 14px;
  border: none; cursor: pointer;
}
.hgcc-cta-btn:hover {
  background: var(--hgcc-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--hgcc-accent-glow);
}
.hgcc-btn-full { width: 100%; }

/* ── Trust badges ────────────────────────────────────────────────── */
.hgcc-trust-badges { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.hgcc-trust-badges span { font-size: 10px; color: var(--hgcc-muted); font-weight: 500; }

/* ── SEO Text ────────────────────────────────────────────────────── */
.hgcc-seo-text {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hgcc-border);
  font-size: 13px;
  line-height: 1.7;
  color: var(--hgcc-muted);
}
.hgcc-seo-text h2, .hgcc-seo-text h3 { font-size: 15px; font-weight: 700; color: var(--hgcc-text); margin: 16px 0 6px; }
.hgcc-seo-text p { margin: 0 0 10px; }

/* ── Empty state ─────────────────────────────────────────────────── */
.hgcc-empty-state {
  padding: 48px; text-align: center;
  background: var(--hgcc-panel, #f9f9f9);
  border: 2px dashed var(--hgcc-border, #ddd);
  border-radius: var(--hgcc-radius, 12px);
  color: var(--hgcc-muted, #888);
}
.hgcc-empty-state span { display: block; font-size: 2.5em; margin-bottom: 12px; }
.hgcc-empty-state p { font-size: 14px; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hgcc-layout-sidebar .hgcc-body { flex-direction: column; }
  .hgcc-summary-panel { width: 100% !important; border-left: none !important; border-top: 1px solid var(--hgcc-border); }
  .hgcc-summary-sticky { position: static !important; max-height: none !important; }
  .hgcc-topbar { position: static; }
}
@media (max-width: 768px) {
  .hgcc-topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .hgcc-topbar-controls { width: 100%; }
  .hgcc-product-panel { padding: 16px; }
  .hgcc-spec-item { min-width: 60px; padding: 3px 10px; }
  .hgcc-mp-header { padding: 20px 16px 14px; }
  .hgcc-chips-card .hgcc-card-chip { min-width: 65px; padding: 10px; }
  .hgcc-total-price { font-size: 26px; }
}
@media (max-width: 480px) {
  .hgcc-billing-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hgcc-billing-tabs::-webkit-scrollbar { display: none; }
  .hgcc-widget-title { font-size: 18px; }
  .hgcc-product-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hgcc-product-tabs::-webkit-scrollbar { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   v5 ADDITIONS — Hostinger-style chips, per-row grid, hidden values
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hostinger-style chip: icon LEFT, name+price RIGHT ──────────── */
.hgcc-chips-hostinger .hgcc-hostinger-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--hgcc-card);
  border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  color: var(--hgcc-text);
  font-family: var(--hgcc-font);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  min-width: 0;
}
.hgcc-chips-hostinger .hgcc-chip-icon-wrap {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35em;
  background: var(--hgcc-accent-dim);
  border-radius: 8px;
  line-height: 1;
}
.hgcc-chips-hostinger .hgcc-chip-img {
  width: 24px; height: 24px; object-fit: contain; border-radius: 4px;
}
.hgcc-chips-hostinger .hgcc-chip-body {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.hgcc-chips-hostinger .hgcc-chip-name {
  font-size: 13px; font-weight: 700; color: var(--hgcc-text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hgcc-chips-hostinger .hgcc-chip-price {
  font-family: var(--hgcc-mono); font-size: 11px; color: var(--hgcc-muted); font-weight: 600;
}
.hgcc-chips-hostinger .hgcc-hostinger-chip:hover {
  border-color: var(--hgcc-accent);
  background: var(--hgcc-accent-dim);
}
.hgcc-chips-hostinger .hgcc-hostinger-chip.active {
  border-color: var(--hgcc-border-active);
  background: var(--hgcc-card-active);
}
.hgcc-chips-hostinger .hgcc-hostinger-chip.active .hgcc-chip-icon-wrap {
  /*background: var(--hgcc-accent);
  box-shadow: var(--hgcc-accent-glow);*/
}
.hgcc-theme-dark  .hgcc-chips-hostinger .hgcc-hostinger-chip.active .hgcc-chip-icon-wrap { color: #000; }
.hgcc-chips-hostinger .hgcc-hostinger-chip.active .hgcc-chip-name  { color: var(--hgcc-accent); }
.hgcc-chips-hostinger .hgcc-hostinger-chip.active .hgcc-chip-price { color: var(--hgcc-accent); opacity: .8; }
.hgcc-chips-hostinger .hgcc-hostinger-chip.active::after {
  /* no ::after badge on hostinger style — cleaner */
  display: none;
}

/* ── Pill chip ───────────────────────────────────────────────────── */
.hgcc-chips-pill .hgcc-pill-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--hgcc-card); border: 1.5px solid var(--hgcc-border);
  border-radius: 50px; color: var(--hgcc-text);
  font-family: var(--hgcc-font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.hgcc-chips-pill .hgcc-chip-price {
  font-family: var(--hgcc-mono); font-size: 11px; color: var(--hgcc-muted);
  border-left: 1px solid var(--hgcc-border); padding-left: 8px;
}
.hgcc-chips-pill .hgcc-pill-chip:hover  { border-color: var(--hgcc-accent); }
.hgcc-chips-pill .hgcc-pill-chip.active {
  border-color: var(--hgcc-border-active); background: var(--hgcc-card-active); color: var(--hgcc-accent);
}
.hgcc-chips-pill .hgcc-pill-chip.active .hgcc-chip-price { color: var(--hgcc-accent); border-color: rgba(0,200,100,.2); }

/* ── List chip ───────────────────────────────────────────────────── */
.hgcc-chips-list .hgcc-list-chip {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px;
  background: var(--hgcc-card); border: 1.5px solid var(--hgcc-border);
  border-radius: var(--hgcc-radius-sm);
  color: var(--hgcc-text); font-family: var(--hgcc-font); font-size: 13px;
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.hgcc-chips-list .hgcc-chip-icon-wrap { flex-shrink:0;font-size:1.2em;width:24px;text-align:center; }
.hgcc-chips-list .hgcc-chip-name { font-weight:600; flex:1; }
.hgcc-list-spacer { flex:1; }
.hgcc-chips-list .hgcc-chip-price { font-family:var(--hgcc-mono);font-size:12px;color:var(--hgcc-muted);font-weight:700; }
.hgcc-check-mark { color:transparent;width:20px;text-align:center;font-size:13px;font-weight:700;flex-shrink:0; }
.hgcc-chips-list .hgcc-list-chip:hover { border-color:var(--hgcc-accent); }
.hgcc-chips-list .hgcc-list-chip.active { border-color:var(--hgcc-border-active);background:var(--hgcc-card-active);color:var(--hgcc-accent); }
.hgcc-chips-list .hgcc-list-chip.active .hgcc-check-mark { color:var(--hgcc-accent); }
.hgcc-chips-list .hgcc-list-chip.active .hgcc-chip-price { color:var(--hgcc-accent); }

/* ── Card chip (stacked) ─────────────────────────────────────────── */
.hgcc-chips-card .hgcc-card-chip {
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:14px 12px; min-width:75px;
  background:var(--hgcc-card);border:1.5px solid var(--hgcc-border);
  border-radius:var(--hgcc-radius);color:var(--hgcc-text);
  font-family:var(--hgcc-font);cursor:pointer;transition:all var(--transition);position:relative;
}
.hgcc-chip-icon-lg  { font-size:1.6em;line-height:1; }
.hgcc-chip-img-lg   { width:28px;height:28px;object-fit:contain; }
.hgcc-chips-card .hgcc-chip-name  { font-size:12px;font-weight:700;white-space:nowrap; }
.hgcc-chips-card .hgcc-chip-price { font-family:var(--hgcc-mono);font-size:11px;color:var(--hgcc-muted); }
.hgcc-chips-card .hgcc-card-chip:hover { border-color:var(--hgcc-accent);background:var(--hgcc-accent-dim); }
.hgcc-chips-card .hgcc-card-chip.active {
  border-color:var(--hgcc-border-active);background:var(--hgcc-card-active);color:var(--hgcc-accent);
  box-shadow:var(--hgcc-accent-glow);
}
.hgcc-chips-card .hgcc-card-chip.active::after {
  content:'✓';position:absolute;top:-8px;right:-8px;
  width:18px;height:18px;border-radius:50%;
  background:var(--hgcc-accent);color:var(--hgcc-cta-text);
  font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;
}

/* ── Chips per row (grid) ────────────────────────────────────────── */
.hgcc-chips-2 .hgcc-radio-group  { display:grid!important;grid-template-columns:repeat(2,1fr); }
.hgcc-chips-3 .hgcc-radio-group  { display:grid!important;grid-template-columns:repeat(3,1fr); }
.hgcc-chips-4 .hgcc-radio-group  { display:grid!important;grid-template-columns:repeat(4,1fr); }
.hgcc-chips-5 .hgcc-radio-group  { display:grid!important;grid-template-columns:repeat(5,1fr); }
.hgcc-chips-6 .hgcc-radio-group  { display:grid!important;grid-template-columns:repeat(6,1fr); }

/* Collapse per-row on mobile */
@media (max-width: 600px) {
  .hgcc-chips-4 .hgcc-radio-group,
  .hgcc-chips-5 .hgcc-radio-group,
  .hgcc-chips-6 .hgcc-radio-group { grid-template-columns:repeat(3,1fr); }
  .hgcc-chips-3 .hgcc-radio-group { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 400px) {
  .hgcc-chips-3 .hgcc-radio-group,
  .hgcc-chips-4 .hgcc-radio-group,
  .hgcc-chips-5 .hgcc-radio-group,
  .hgcc-chips-6 .hgcc-radio-group { grid-template-columns:repeat(2,1fr); }
}

/* ── Price-free ──────────────────────────────────────────────────── */
.price-free { color:var(--hgcc-accent)!important; }

/* ── Summary title fix ───────────────────────────────────────────── */
.hgcc-summary-title {
  font-family:var(--hgcc-mono);font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;color:var(--hgcc-accent);
  margin:0 0 14px;
}

/* ── Configure label ─────────────────────────────────────────────── */
.hgcc-configure-header { margin-bottom:14px; }
.hgcc-section-label {
  font-family:var(--hgcc-mono);font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;color:var(--hgcc-accent);
}
/* keep .hgcc-section-title for backward compat */
.hgcc-section-title { font-family:var(--hgcc-mono);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--hgcc-accent); }

/* ═══════════════════════════════════════════════════════════════════
   v5.1 — Sticky Summary Fix
   ═══════════════════════════════════════════════════════════════════

   WHY STICKY BROKE:
   1. overflow:hidden on .hgcc-wrap clips stacking context → sticky fails
      → FIXED: removed overflow:hidden from .hgcc-wrap
   2. align-items:flex-start on .hgcc-body means summary column has
      no height → sticky has nowhere to travel
      → FIXED: changed to align-items:stretch
   3. .hgcc-panels-wrap needs its own scroll context
      → FIXED: added overflow-y:auto

   STICKY WORKS WHEN:
   - No ancestor has overflow:hidden or overflow:auto (except panels-wrap itself)
   - .hgcc-body has align-items:stretch
   - .hgcc-summary-sticky has align-self:flex-start (re-applied in flex child)
   ═══════════════════════════════════════════════════════════════════ */

/*
 * Sticky summary — the definitive rules.
 * Overrides everything above.
 */
.hgcc-layout-sidebar .hgcc-summary-sticky {
  position: sticky !important;
  top: var(--hgcc-sticky-top, 0px) !important;
  align-self: flex-start !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
}

/*
 * Set --hgcc-sticky-top on the wrap to account for sticky WP admin bar.
 * Override this in your theme's CSS if you have a sticky nav:
 *   .hgcc-wrap { --hgcc-sticky-top: 80px; }
 */
.admin-bar .hgcc-wrap { --hgcc-sticky-top: 32px; }

/* On mobile override keeps static */
@media (max-width: 1024px) {
  .hgcc-layout-sidebar .hgcc-summary-sticky {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}
