/* Stalcut configurator — styled to match the "Dostosuj" mockups. */
.stalcut-configurator {
  --stalcut-accent: #8b0000;
  --stalcut-border: #e4e4e7;
  --stalcut-muted: #8a8f98;
  --stalcut-text: #1f2328;

  max-width: 30rem;
  margin: 1.25rem 0;
  padding: 1.5rem;
  border: 1px solid var(--stalcut-border);
  border-radius: 14px;
  background: #fff;
  color: var(--stalcut-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stalcut-configurator__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.stalcut-configurator__icon {
  color: var(--stalcut-accent);
}

/* --- Fields --- */
.stalcut-field {
  margin-bottom: 1.15rem;
}

.stalcut-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stalcut-field__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Stepper (− number +) --- */
.stalcut-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--stalcut-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.stalcut-stepper__btn {
  width: 2.5rem;
  border: none;
  background: #fff;
  color: var(--stalcut-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
}

.stalcut-stepper__btn:hover {
  background: #f4f4f5;
}

.stalcut-stepper__input {
  width: 3.5rem;
  border: none;
  border-left: 1px solid var(--stalcut-border);
  border-right: 1px solid var(--stalcut-border);
  text-align: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stalcut-stepper__input::-webkit-outer-spin-button,
.stalcut-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stalcut-stepper__input:focus {
  outline: none;
}

/* --- Range slider --- */
.stalcut-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0.6rem 0 0.15rem;
  border-radius: 999px;
  background: #ededed;
  cursor: pointer;
}

.stalcut-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--stalcut-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stalcut-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--stalcut-accent);
}

.stalcut-range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--stalcut-muted);
}

/* --- Selects --- */
.stalcut-select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--stalcut-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--stalcut-text);
}

/* --- Quantity --- */
.stalcut-field--qty {
  margin-top: 1.5rem;
}

.stalcut-field--qty .stalcut-field__label {
  display: block;
  width: 100%;
  float: none;
  text-align: left;
  margin-bottom: 0.5rem;
}

/* --- Price --- */
.stalcut-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.stalcut-price__label {
  font-size: 1.05rem;
  font-weight: 600;
}

.stalcut-price__value {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stalcut-error {
  color: var(--stalcut-accent);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

/* --- Add to cart --- */
.stalcut-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--stalcut-accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, opacity 0.12s ease;
}

.stalcut-add:hover {
  background: #6f0000;
}

.stalcut-add:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Configured specs shown inline on a cart/order line (moved out of the theme's
   customization modal by views/js/cart.js). */
.stalcut-customization--inline {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.stalcut-customization--inline .stalcut-customization__label {
  font-weight: 600;
}

/* Hide the theme's default add-to-cart / quantity block and the native product
   customization form: the configurator card owns those actions (the module's
   customization field is is_module=1, so it's already excluded from the form,
   but hide the container defensively). Scoped to configurable product pages
   (this CSS loads only there). Coupled to the classic theme's markup. */
.product-add-to-cart .product-quantity,
.product-add-to-cart .add,
.product-actions .add-to-cart,
.product-customization {
  display: none !important;
}
