/* ── Grafline Stamp Product Configurator ── */

.gsc-wrap {
  margin-top: 1.5rem;
}

/* ── Product page CTA ── */
.gsc-product-cta {
  margin-top: 0.65rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e8ed;
}

.gsc-price-teaser {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1rem;
}

.gsc-price-teaser__from {
  font-size: .8rem;
  color: #6b7280;
}

.gsc-price-teaser__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ff2a13;
  line-height: 1;
}

.gsc-price-teaser__qty {
  font-size: .78rem;
  color: #9ca3af;
}

.gsc-configure-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: #ff2a13;
  color: #fff !important;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(255,42,19,.3);
  margin-bottom: .75rem;
}

.gsc-configure-btn:hover {
  background: #e02410;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,42,19,.35);
}

.gsc-cta-hint {
  font-size: .75rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.5;
}

/* Preview */
.gsc-preview {
  text-align: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1rem 1rem;
  margin-bottom: 1.5rem;
}

.gsc-preview canvas {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.gsc-preview-hint {
  font-size: .75rem;
  color: #9ca3af;
  margin: .5rem 0 .75rem;
}

/* Sections */
.gsc-section {
  margin-bottom: 1.5rem;
}

.gsc-section--inline {
  margin-bottom: 1rem;
}

.gsc-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: .6rem;
}

/* Info pills (shape/size/lines) */
.gsc-info-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.gsc-info-pills--product {
  margin-bottom: 1rem;
}

.gsc-info-pill {
  display: inline-flex;
  flex-direction: column;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .4rem .7rem;
  min-width: 80px;
}

.gsc-info-pill__label {
  font-size: .65rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
  margin-bottom: .2rem;
}

.gsc-info-pill__val {
  font-size: .85rem;
  font-weight: 700;
  color: #1d1d1f;
}

/* Font selector */
.gsc-font-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.gsc-font-btn {
  padding: .4rem .75rem;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}

.gsc-font-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.gsc-font-btn.is-selected {
  border-color: #ff2a13;
  background: #fff5f4;
  color: #ff2a13;
}

/* Text lines */
.gsc-line-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.gsc-line-label {
  min-width: 70px;
  font-size: .8rem;
  color: #6b7280;
  font-weight: 600;
}

.gsc-line-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.gsc-line-input {
  flex: 1;
  padding: .45rem .65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .875rem;
  transition: border-color .15s;
}

.gsc-line-input:focus {
  outline: none;
  border-color: #ff2a13;
  box-shadow: 0 0 0 2px rgba(255,42,19,.15);
}

.gsc-line-counter {
  font-size: .7rem;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

/* Ink colors */
.gsc-ink-colors {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.gsc-color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.gsc-color-btn:hover {
  transform: scale(1.1);
}

.gsc-color-btn.is-selected {
  border-color: #ff2a13;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff2a13;
}

/* Quantity */
.gsc-qty-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.gsc-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
}

.gsc-qty-btn:hover {
  background: #f3f4f6;
}

.gsc-qty-input {
  width: 64px;
  text-align: center;
  padding: .4rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
}

/* Price table */
.gsc-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.gsc-price-table th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  padding: .3rem .5rem;
  border-bottom: 1px solid #e5e7eb;
}

.gsc-price-table td {
  padding: .3rem .5rem;
  color: #374151;
}

.gsc-price-table tr.is-active td {
  background: #fff5f4;
  color: #ff2a13;
  font-weight: 700;
}

.gsc-price-table tr.is-active td:first-child {
  border-left: 3px solid #ff2a13;
}

/* Delivery */
.gsc-delivery-opts {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.gsc-delivery-btn {
  text-align: left;
  padding: .55rem .85rem;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 .5rem;
}

.gsc-delivery-name {
  font-weight: 600;
  grid-column: 1;
  grid-row: 1;
}

.gsc-delivery-days {
  font-size: .75rem;
  color: #6b7280;
  grid-column: 1;
  grid-row: 2;
}

.gsc-delivery-btn.is-selected .gsc-delivery-days {
  color: #c0251a;
}

.gsc-delivery-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.gsc-delivery-btn.is-selected {
  border-color: #ff2a13;
  background: #fff5f4;
  font-weight: 600;
}

.gsc-delivery-surch {
  font-size: .75rem;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  padding: .1rem .35rem;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

/* Total */
.gsc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1rem 0 .75rem;
  border-top: 1px solid #e5e7eb;
  margin-top: .5rem;
}

.gsc-total-label {
  font-size: .85rem;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.gsc-total-sub {
  font-size: .75rem;
  color: #9ca3af;
  font-weight: 400;
}

.gsc-total-price {
  font-size: 2rem;
  font-weight: 800;
  color: #ff2a13;
  line-height: 1;
}

/* Add to cart */
.gsc-atc-btn {
  width: 100%;
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  background: #ff2a13;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.gsc-atc-btn:hover:not(:disabled) {
  background: #e02410;
}

.gsc-atc-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* PDF button */
#gsc-pdf-btn {
  margin-top: .5rem;
  font-size: .8rem;
}
