/* giftsell-dlugopis.css — v2.0.0 */

.gs-root {
  --gs-red:    #c8102e;
  --gs-dark:   #1a1a1a;
  --gs-gray:   #f5f5f5;
  --gs-border: #e0e0e0;
  --gs-font:   'Barlow', sans-serif;
  font-family: var(--gs-font);
  color: var(--gs-dark);
}

/* ── Layout ──────────────────────────────────────────── */
.gs-wrap { display: flex; gap: 32px; align-items: flex-start; }
.gs-left { flex: 1; min-width: 0; }
.gs-right { width: 260px; flex-shrink: 0; position: sticky; top: 24px; }

/* ── Sekcje ──────────────────────────────────────────── */
.gs-section { margin-bottom: 22px; }

.gs-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 8px;
  display: block;
}
.gs-req { color: var(--gs-red); margin-right: 2px; }

/* ── Farbe dropdown ──────────────────────────────────── */
.gs-select {
  width: 100%;
  max-width: 320px;
  padding: 9px 12px;
  font-family: var(--gs-font);
  font-size: 0.95rem;
  border: 1.5px solid var(--gs-border);
  border-radius: 4px;
  background: #fff;
  color: var(--gs-dark);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.gs-select:focus { border-color: var(--gs-red); }

/* ── Karty pozycji graweru ───────────────────────────── */
.gs-pozycje {
  display: grid;
  grid-template-columns: repeat(var(--gs-cols, 3), 1fr);
  gap: 10px;
}

.gs-pozycja { display: block; }
.gs-pozycja input[type=checkbox] { display: none; }

.gs-pozycja-card {
  cursor: pointer;
  border: 2px solid var(--gs-border);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.gs-pozycja-card:hover { border-color: var(--gs-red); }
.gs-pozycja-checked { border-color: var(--gs-red); }

.gs-pozycja-card img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.gs-pozycja-noimg {
  width: 100%;
  height: 60px;
  background: var(--gs-gray);
  border-radius: 3px;
}
.gs-pozycja-name {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: var(--gs-red);
  font-weight: 600;
}

/* Haczyk zaznaczenia w rogu */
.gs-check-mark {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--gs-red);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.gs-pozycja-checked .gs-check-mark { display: flex; }

/* ── Menge — qty row ─────────────────────────────────── */
.gs-qty-row { display: flex; align-items: center; gap: 0; }

.gs-qty-btn {
  width: 36px;
  height: 40px;
  background: var(--gs-gray);
  border: 1.5px solid var(--gs-border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gs-dark);
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
.gs-qty-btn:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.gs-qty-btn:last-of-type { border-radius: 0 4px 4px 0; border-left: none; }
.gs-qty-btn:hover { background: #d8d8d8; }

.gs-qty-val {
  width: 80px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--gs-font);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--gs-border);
  outline: none;
}
.gs-qty-val::-webkit-inner-spin-button,
.gs-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; }

.gs-qty-hint {
  font-size: 0.82rem;
  color: #888;
  margin-left: 10px;
}

/* ── Tabela progów ───────────────────────────────────── */
.gs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gs-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 2px solid var(--gs-border);
}
.gs-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; color: #444; }
.gs-table tr.gs-tier-active { border-left: 3px solid var(--gs-red); }
.gs-table tr.gs-tier-active td { background: rgba(200,16,46,0.06); }
.gs-table tr.gs-tier-active td:last-child { color: var(--gs-red); font-weight: 700; }

.gs-mwst { font-size: 11px; color: #aaa; margin-top: 8px; }

/* ── Panel ceny — CIEMNY ─────────────────────────────── */
.gs-price-panel {
  background: var(--gs-dark);
  color: #fff;
  padding: 24px 20px;
  border-radius: 6px;
}
.gs-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gs-price-main {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  transition: opacity 0.15s;
}
.gs-price-unit {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.gs-price-empty {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 12px 0 16px;
  line-height: 1.5;
}
.gs-price-breakdown { margin-bottom: 4px; }
.gs-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  padding: 3px 0;
}
.gs-breakdown-rabatt { color: #6ee87a; }
.gs-price-mwst {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 12px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
}

/* ── Przycisk koszyk ─────────────────────────────────── */
.gs-btn-cart {
  width: 100%;
  background: var(--gs-red);
  color: #fff;
  border: none;
  padding: 16px 12px;
  font-family: var(--gs-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.gs-btn-cart:hover:not(:disabled) { background: #a50d25; }
.gs-btn-cart:disabled { opacity: 0.5; cursor: not-allowed; }
.gs-btn-loading { opacity: 0.6; cursor: wait; }

/* ── Lieferzeit ──────────────────────────────────────── */
.gs-lieferzeit {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.gs-lieferzeit strong { color: #fff; }

/* ── Komunikaty ──────────────────────────────────────── */
.gs-msg { font-size: 12px; margin-top: 10px; min-height: 16px; text-align: center; }
.gs-msg-err { color: #ff8a8a; }
.gs-msg-ok  { color: #6ee87a; }
.gs-error-box { color: var(--gs-red); padding: 12px 0; font-size: 0.9rem; }
.gs-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  padding: 32px 0;
  font-size: 0.95rem;
}
.gs-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--gs-red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: gs-spin 0.8s linear infinite;
}
@keyframes gs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gs-spinner { animation: none; } }

/* ── Responsywność ───────────────────────────────────── */
@media (max-width: 768px) {
  .gs-wrap { flex-direction: column; }
  .gs-right { width: 100%; position: static; }

}
