/* ═══ GOLDINKEN KALKULATORS v3 ═══ */
/* FIX 1: Remove spinner arrows from all number inputs */
.ghc input[type=number] { -moz-appearance: textfield; }
.ghc input[type=number]::-webkit-inner-spin-button,
.ghc input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:root {
  --g: #F0B429;
  --g2: #c9870a;
  --gbg: #FEFCE8;
  --gbr: #FDE68A;
  --tx: #111827;
  --mu: #6b7280;
  --lt: #f9fafb;
  --br: #e5e7eb;
  --r: 8px;
}

.ghc {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  color: var(--tx);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ghc-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ═══ SOĻU BLOKI (publiskais kalkulators) ═══ */
.ghc .step-block {
  position: relative;
  background: white;
  border: 1px solid var(--br);
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.ghc .step-number {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 45px;
  height: 45px;
  background: var(--g);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(240,180,41,0.4);
}

.ghc .ghc-step-title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* Forma + Izmērs vienā rindā */
.ghc .ghc-form-and-size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.ghc .ghc-shape-cell {
  flex: 0 0 auto;
}

.ghc .ghc-shape-cell .ghc-label {
  margin-bottom: 8px;
}

/* Formas režģis – kompakts, 3 opcijas (taisnstūris, aplis, specforma) */
.ghc .ghc-shape-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.ghc .ghc-shape-grid .shape-option {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
}

.ghc .ghc-shape-grid .shape-option:hover {
  border-color: var(--g);
  background: var(--gbg);
}

.ghc .ghc-shape-grid .shape-option.active {
  border-color: var(--g);
  background: var(--gbg);
  box-shadow: 0 0 0 1px var(--g);
}

.ghc .ghc-shape-grid .shape-icon {
  width: 20px;
  height: 20px;
  fill: #aaa;
  transition: 0.2s;
}

.ghc .ghc-shape-grid .shape-option.active .shape-icon {
  fill: var(--g2);
}

.ghc .ghc-shape-grid .shape-option span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

/* Uztinuma poga un panelis */
.ghc .winding-toggle-btn {
  background: none;
  border: 1px dashed var(--g);
  color: var(--g2);
  padding: 12px 16px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: 0.2s;
}

.ghc .winding-toggle-btn:hover {
  background: var(--gbg);
}

.ghc .winding-panel {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.ghc .winding-panel .ghc-wind-col {
  min-width: 0;
}

.ghc .winding-panel .ghc-sublabel {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mu);
  margin-bottom: 6px;
}

.ghc .winding-panel .ghc-radio-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Lauki step blokos */
.ghc .ghc-step-block .ghc-field {
  margin-bottom: 18px;
}

.ghc .ghc-step-block .ghc-field:last-child {
  margin-bottom: 0;
}

.ghc .ghc-step-block .ghc-die-bar,
.ghc .ghc-step-block .ghc-custom-bar {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Die-bar izvēles: poga + info (i) */
.ghc .ghc-die-opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-right: 10px;
  margin-top: 6px;
}

.ghc .ghc-die-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--br);
  background: #fff;
  color: var(--mu);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ghc .ghc-die-info-btn:hover {
  border-color: var(--g);
  color: var(--g2);
  background: var(--gbg);
}

.ghc .ghc-cut-info {
  flex: 1 1 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  color: var(--tx);
}

.ghc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--mu);
  margin-bottom: 6px;
}

.ghc-label em {
  font-style: normal;
  font-weight: 400;
  color: #9ca3af;
}

.ghc-select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  color: var(--tx);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.ghc-select:focus { outline: none; border-color: var(--g); }

.ghc-dims-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ghc-dim-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ghc-dim-label {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.ghc-input {
  padding: 8px 10px;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  transition: border-color .15s;
  box-sizing: border-box;
}

.ghc-input:focus { outline: none; border-color: var(--g); }
.ghc-input-dim { width: 72px; text-align: center; }
.ghc-input-qty { width: 80px; text-align: center; border-left: none; border-right: none; border-radius: 0; }
.ghc-input-sm  { width: 80px; }

.ghc-x { font-size: 14px; color: #9ca3af; flex-shrink: 0; margin-top: 10px; }

.ghc-presets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ghc-presets button {
  padding: 2px 8px;
  border: 1px solid var(--br);
  border-radius: 20px;
  background: var(--lt);
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  cursor: pointer;
  transition: all .12s;
}

.ghc-presets button:hover { border-color: var(--g); color: var(--tx); }

/* STEPPER */
.ghc-stepper {
  display: flex;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  overflow: hidden;
  width: fit-content;
}

.ghc-stepper button {
  width: 34px;
  border: none;
  background: var(--lt);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  color: var(--tx);
  transition: background .12s;
  flex-shrink: 0;
}

.ghc-stepper button:hover { background: var(--gbg); }

/* CHIPS */
.ghc-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ghc-chip {
  padding: 2px 8px;
  border: 1px solid var(--br);
  border-radius: 20px;
  background: var(--lt);
  font-size: 11px;
  font-weight: 700;
  color: var(--mu);
  cursor: pointer;
  transition: all .12s;
}

.ghc-chip:hover { border-color: var(--g); color: var(--tx); }
.ghc-chip.active { border-color: var(--g); background: var(--gbg); color: var(--tx); }

.ghc-chip-custom {
  padding: 2px 8px;
  border: 1px solid var(--br);
  border-radius: 20px;
  background: var(--lt);
  font-size: 11px;
  font-weight: 600;
  color: var(--tx);
  width: 110px;
  outline: none;
  transition: border-color .12s;
}
.ghc-chip-custom:focus { border-color: var(--g); }
.ghc-chip-custom::placeholder { color: #9ca3af; font-weight: 400; }

.ghc-hint {
  font-size: 11px;
  color: #9ca3af;
  display: block;
  margin-top: 4px;
}

/* ═══ DIE-CUT SELECTION CARD ═══ */
.ghc-die-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #f0b429;
  padding: 16px;
  margin-bottom: 12px;
}
.ghc-die-bar > .ghc-info-icon {
  margin-left: auto;
}
.ghc-die-bar.ok {
  border-left-color: #10b981;
  background: #f0fdf4;
}
.ghc-die-bar.near,
.ghc-die-bar.none {
  border-left-color: #f0b429;
  background: #fff;
}
.ghc-die-bar.error {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.ghc-die-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ghc-die-icon {
  font-size: 18px;
  line-height: 1;
}
.ghc-die-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
}
.ghc-die-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}
.ghc-die-bar.ok .ghc-die-subtitle {
  color: #15803d;
}
.ghc-die-bar.error .ghc-die-subtitle {
  color: #dc2626;
}

.ghc-die-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ghc-die-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ghc-die-card:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}
.ghc-die-card.active {
  border-color: #f0b429;
  background: #fffbeb;
}
.ghc-die-card.active .ghc-die-card-radio {
  border-color: #f0b429;
  background: #f0b429;
}
.ghc-die-card.active .ghc-die-card-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.ghc-die-card-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ghc-die-card-content {
  flex: 1;
  min-width: 0;
}
.ghc-die-card-title {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 2px;
}
.ghc-die-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.ghc-die-opts-sep {
  flex: 1 1 100%;
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* Die-cut info button */
.gh-die-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.gh-die-info-btn:hover {
  opacity: 1;
}
.gh-die-info-tooltip .gh-die-info-text {
  margin-bottom: 8px;
  color: #374151;
}
.gh-die-info-tooltip .gh-die-info-link {
  display: inline-block;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.gh-die-info-tooltip .gh-die-info-link:hover {
  text-decoration: underline;
}
.gh-die-info-tooltip .gh-die-info-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}
.gh-die-info-tooltip .gh-die-info-close:hover {
  color: #374151;
}

/* Legacy button style for "ok" state */
.ghc-die-opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid #10b981;
  border-radius: 8px;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  cursor: default;
}
.ghc-die-opt-btn .ghc-cut-check {
  color: #10b981;
  font-weight: 700;
}

.ghc-custom-bar {
  background: #fffbeb;
  border: 1.5px solid var(--gbr);
  border-radius: var(--r);
  padding: 10px 16px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 10px;
}

/* ═══ SEKCIJA ═══ */
.ghc-section {
  background: white;
  border: 1.5px solid var(--br);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.ghc-section-hd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--mu);
  margin-bottom: 10px;
}

/* ═══ MATERIĀLS (dropdown) ═══ */
.ghc-mat-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghc-mat-field .ghc-label {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.ghc-mat-field .ghc-select-mat {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}

.ghc-mat-info-link {
  font-size: 12px;
  color: var(--mu);
  text-decoration: none;
  border: 1px solid var(--br);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  transition: all .12s;
}

.ghc-mat-info-link:hover {
  border-color: var(--g);
  color: var(--tx);
}

/* ═══ APDARE (dropdown) ═══ */
.ghc-fin-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ghc-fin-field .ghc-label {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.ghc-fin-field .ghc-select-fin {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}

/* BALTĀ KRĀSA COMPACT ROW */
.ghc-white-ink-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 0;
}
.ghc-white-ink-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.ghc-white-ink-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--g);
  cursor: pointer;
}

/* ═══ PAPILDUS APDARE ═══ */
.ghc-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.ghc-check-row .ghc-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ghc-foil-box {
  margin-top: 12px;
  margin-left: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--g);
}

.ghc-foil-box .ghc-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mu);
  margin-bottom: 6px;
}

.ghc-foil-box .ghc-select-sm {
  max-width: 80px;
  margin-bottom: 12px;
}

.ghc-foil-layer {
  margin-bottom: 12px;
}

.ghc-foil-layer .ghc-sublabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--mu);
  margin-bottom: 4px;
}

.ghc-foil-layer .ghc-foil-select {
  min-width: 200px;
  max-width: 100%;
}

/* ═══ AKORDEONS ═══ */
.ghc-accordion {
  background: white;
  border: 1.5px solid var(--br);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ghc-acc-hd {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  text-align: left;
  transition: background .12s;
}

.ghc-acc-hd:hover { background: var(--lt); }

.ghc-acc-arrow {
  font-size: 11px;
  color: var(--mu);
  transition: transform .2s;
  flex-shrink: 0;
}

.ghc-acc-arrow.open { transform: rotate(90deg); }

.ghc-acc-val {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--mu);
}

.ghc-acc-hint {
  font-size: 11px;
  color: #9ca3af;
}

.ghc-acc-body {
  padding: 0 20px 16px;
  border-top: 1px solid var(--br);
}

/* APDARE */
.ghc-fin-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.ghc-fin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .12s;
  background: white;
}

.ghc-fin input { display: none; }

.ghc-fin.active,
.ghc-fin:has(input:checked) { border-color: var(--g); background: var(--gbg); }

.ghc-fin-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--br);
  flex-shrink: 0;
  transition: all .12s;
  background: white;
}

.ghc-fin.active .ghc-fin-radio,
.ghc-fin:has(input:checked) .ghc-fin-radio {
  border-color: var(--g2);
  border-width: 3px;
}

.ghc-fin-name { font-size: 13px; font-weight: 600; }
.ghc-fin-sub  { font-size: 11px; color: var(--mu); margin-left: 4px; }

/* UZTINUMS */
.ghc-wind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 14px;
}

.ghc-sublabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--mu);
  margin-bottom: 6px;
}

.ghc-radio-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ghc-rl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.ghc-select-sm {
  width: auto;
  font-size: 13px;
  padding: 6px 28px 6px 8px;
}

/* FAILI */
.ghc-file-zone {
  border: 2px dashed var(--br);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--mu);
  margin-top: 12px;
  transition: all .2s;
}

.ghc-file-zone:hover,
.ghc-file-zone.over { border-color: var(--g); background: var(--gbg); }

.ghc-file-zone button {
  background: none;
  border: none;
  color: var(--g2);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

#ghc-file-list { margin-top: 8px; }

.ghc-file-item {
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--lt);
}

.ghc-file-links {
  font-size: 12px;
  color: var(--mu);
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghc-file-links a { color: var(--mu); }

/* ═══ CENAS JOSLA ═══ */
.ghc-price-bar {
  background: white;
  border: 2px solid var(--g);
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  align-items: start;
  position: sticky;
  bottom: 20px;
  box-shadow: 0 4px 24px rgba(240,180,41,.15);
}

@media (max-width: 720px) {
  .ghc-price-bar { grid-template-columns: 1fr; position: static; }
}

.ghc-price-spin {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mu);
}

.ghc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--br);
  border-top-color: var(--g);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ghc-price-big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.ghc-price-sub {
  font-size: 12px;
  color: var(--mu);
  margin-top: 4px;
  display: flex;
  gap: 10px;
}

.ghc-price-meta {
  font-size: 12px;
  color: var(--mu);
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Cenu tabula */
.ghc-price-table-wrap { min-width: 220px; }

.ghc-price-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ghc-price-tbl th {
  font-size: 10px;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: left;
  padding: 2px 6px;
  letter-spacing: .5px;
}

.ghc-price-tbl td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--lt);
  cursor: pointer;
  transition: background .1s;
}

.ghc-price-tbl tr:hover td { background: var(--gbg); }
.ghc-price-tbl tr.sel td   { background: #fef3c7; font-weight: 700; }
.ghc-price-tbl tr.sel td:first-child::before { content: '→ '; color: var(--g); }
.ghc-tbl-ph { text-align: center; color: #9ca3af; padding: 10px !important; }

/* Pogas */
.ghc-price-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.ghc-winding-tip {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--r);
  padding: 8px 10px;
  font-size: 12px;
  color: #15803d;
}

.ghc-btn-order {
  width: 100%;
  padding: 13px;
  background: var(--g);
  border: none;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .15s;
}

.ghc-btn-order:hover { background: var(--g2); color: white; }

.ghc-btn-quote {
  width: 100%;
  padding: 9px;
  background: white;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
}

.ghc-btn-quote:hover { border-color: var(--g); }

.ghc-btn-cart {
  width: 100%;
  padding: 9px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ghc-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

.ghc-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ghc-cart-row select { min-width: 200px; }
.ghc-btn-proposal { margin-left: 0; }

/* ===== MAKETI / Artwork upload section ===== */
.ghc-artworks-section {
  padding: 20px 0 4px;
}
.ghc-artworks-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.ghc-artworks-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.ghc-artworks-hint {
  font-size: 12px;
  color: #6b7280;
}
.ghc-artworks-qty-warning {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.ghc-artworks-qty-warning.show {
  background: #fff7ed;
  border: 1px solid #fb923c;
  color: #c2410c;
}
.ghc-artworks-qty-warning.ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.ghc-artwork-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
  transition: border-color 0.15s;
}
.ghc-artwork-item.has-file {
  border-color: #f0b429;
  background: #fffbeb;
}
.ghc-artwork-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0b429;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* PDF thumbnail preview in artwork row */
.ghc-artwork-thumb-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.ghc-artwork-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.ghc-thumb-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ghc-thumb-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Lightbox for thumbnail preview */
.ghc-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: ghcFadeIn 0.2s ease;
}
@keyframes ghcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ghc-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ghc-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ghc-lightbox-hint {
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.ghc-artwork-body {
  flex: 1;
  min-width: 0;
}
.ghc-artwork-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghc-artwork-placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.ghc-artwork-file {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghc-artwork-qty {
  font-size: 12px;
  color: #6b7280;
}
.ghc-artwork-edit-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid #f0b429;
  border-radius: 6px;
  background: #fff;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ghc-artwork-edit-btn:hover {
  background: #fef3c7;
}
/* FIX 7: per-row buttons container */
.ghc-artwork-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ghc-btn-lib {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px dashed #f0b429;
  border-radius: 6px;
  background: #fefce8;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ghc-btn-lib:hover { background: #fef3c7; }
.ghc-btn-upload {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #f0b429;
  border-radius: 6px;
  background: #fff;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ghc-btn-upload:hover { background: #fef3c7; }

/* ===== Qty split button ===== */
.ghc-split-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ghc-split-btn:hover { border-color: #f0b429; background: #fffbeb; }

/* ===== Artwork row qty input ===== */
.ghc-artwork-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ghc-artwork-qty-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  background: #fff;
}
.ghc-artwork-qty-input:focus { outline: none; border-color: #f0b429; }
.ghc-artwork-qty-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

/* ===== Artwork qty status line ===== */
.ghc-artworks-qty-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.ghc-artworks-qty-status.pending {
  background: #fffbeb;
  border-left: 4px solid #f0b429;
  color: #92400e;
}
.ghc-artworks-qty-status.ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.ghc-artworks-qty-status.over {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ===== Maket modal ===== */
.ghc-maket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ghc-maket-modal {
  background: #fff;
  border-radius: 12px;
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  box-sizing: border-box;
}
.ghc-maket-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.ghc-maket-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.ghc-maket-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  padding: 4px;
  line-height: 1;
}
.ghc-maket-modal-body {
  padding: 16px 20px;
}
.ghc-maket-field {
  margin-bottom: 14px;
}
.ghc-maket-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.ghc-maket-field input[type="text"],
.ghc-maket-field input[type="number"],
.ghc-maket-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
}
.ghc-maket-field input:focus,
.ghc-maket-field textarea:focus {
  outline: none;
  border-color: #f0b429;
  box-shadow: 0 0 0 2px rgba(240,180,41,0.2);
}
.ghc-maket-qty-hint {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
}
.ghc-modal-file-zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ghc-modal-file-zone.over,
.ghc-modal-file-zone:hover {
  border-color: #f0b429;
  background: #fffbeb;
}
.ghc-modal-file-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ghc-modal-file-icon {
  font-size: 24px;
}
.ghc-modal-file-text {
  font-size: 13px;
  color: #6b7280;
}
.ghc-modal-file-btn {
  background: none;
  border: none;
  color: #f0b429;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 13px;
}
.ghc-modal-upload-progress {
  margin-top: 8px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}
.ghc-modal-progress-bar {
  height: 100%;
  background: #f0b429;
  width: 0%;
  transition: width 0.1s;
}
.ghc-modal-file-result {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
}
.ghc-modal-file-result a {
  color: #0369a1;
  text-decoration: none;
}
.ghc-maket-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e5e7eb;
}
.ghc-btn-secondary {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ghc-btn-primary {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: #f0b429;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ghc-btn-primary:hover {
  background: #d97706;
}
body.ghc-modal-open {
  overflow: hidden;
}

/* Artwork prompt banner — prominent yellow */
.ghc-artwork-prompt-banner {
  background: #f0b429;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
.ghc-artwork-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ghc-artwork-prompt-text {
  font-size: 13px;
  font-weight: 400;
  color: #52525b;
  line-height: 1.4;
}

/* Winding direction selector */
.ghc .winding-panel .ghc-wind-col-direction {
  grid-column: 1 / -1;
}
.ghc-direction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ghc-direction-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  user-select: none;
}
.ghc-direction-img {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.ghc-direction-card input[type="radio"]:checked + .ghc-direction-img {
  border-color: #f0b429;
  background: #fffbeb;
  color: #713f12;
}

/* ═══ INFO TOOLTIP COMPONENT ═══ */
.ghc-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0; /* Hide emoji text */
  background: #f0b429;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.15s, background 0.15s;
}
.ghc-info-icon::before {
  content: 'i';
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1;
}
.ghc-info-icon:hover {
  transform: scale(1.1);
  background: #d99e24;
}
/* Hidden source tooltip (content only, never shown) */
.ghc-info-tooltip {
  display: none !important;
}

/* Popup tooltip (appended to body by JS) */
.ghc-info-tooltip-popup {
  position: fixed;
  z-index: 10000;
  max-width: 300px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f0b429;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ghc-info-tooltip-popup .ghc-info-tooltip-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #92400e;
  margin: 0 0 8px 0;
  text-transform: none;
  letter-spacing: normal;
}
.ghc-info-tooltip-popup .ghc-info-tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #f0b429;
  text-decoration: none;
}
.ghc-info-tooltip-popup .ghc-info-tooltip-link:hover {
  color: #d99e24;
  text-decoration: underline;
}
/* Tooltip positioning handled by JavaScript */

/* ═══ INFO TRIGGER TOOLTIP (data-tooltip attribute) ═══ */
.ghc-info-trigger {
  position: relative;
  display: inline-block;
}
.ghc-info-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 100;
  width: max-content;
  max-width: 280px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #92400e;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.ghc-info-trigger:hover::after,
.ghc-info-trigger.active::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
@media (max-width: 480px) {
  .ghc-info-trigger::after {
    left: auto;
    right: -10px;
    transform: translateX(0) translateY(-4px);
  }
  .ghc-info-trigger:hover::after,
  .ghc-info-trigger.active::after {
    transform: translateX(0) translateY(0);
  }
}

/* Winding direction icons */
.winding-grid { display: flex; gap: 10px; margin-bottom: 15px; }
.wind-opt { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 5px; cursor: pointer; text-align: center; min-height: 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.wind-opt.active { border-color: #f0b429; background: #fffdf0; box-shadow: 0 0 0 2px rgba(240,180,41,0.2); }
.wind-label { font-size: 0.7rem; font-weight: 700; margin-top: 5px; color: #666; }
.wind-icon-box { display: flex; align-items: center; justify-content: center; }
.wind-icon-box img { display: block; width: 40px; height: 40px; object-fit: contain; }
