/* ── Force form.cart to stack vertically ── */
form.cart:has(.staffelkorting-widget) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ── Add to cart button ── */
form.cart:has(.staffelkorting-widget) .single_add_to_cart_button {
  width: 100%;
  max-width: 420px;
  background-color: #16a34a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

form.cart:has(.staffelkorting-widget) .single_add_to_cart_button:hover {
  background-color: #15803d !important;
}

/* ── Widget container ── */
.staffelkorting-widget {
  margin-bottom: 24px;
  width: 100%;
  max-width: 420px;
}

/* ── Tier breakdown ── */
.staffelkorting-tiers {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.staffelkorting-tiers__title {
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #e0e0e0;
}

.staffelkorting-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  transition: background-color 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.staffelkorting-tier + .staffelkorting-tier {
  border-top: 1px solid #f0f0f0;
}

.staffelkorting-tier--active {
  background-color: #f0f7ff;
  border-left-color: #0073aa;
}

.staffelkorting-tier__range {
  font-size: 0.95em;
  color: #333;
}

.staffelkorting-tier--active .staffelkorting-tier__range {
  font-weight: 600;
}

.staffelkorting-tier__price {
  font-size: 0.95em;
  color: #555;
  font-weight: 500;
}

.staffelkorting-tier--active .staffelkorting-tier__price {
  color: #0073aa;
  font-weight: 700;
}

/* ── Quantity stepper ── */
.staffelkorting-input {
  margin-bottom: 16px;
}

.staffelkorting-input__label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 6px;
  color: #333;
}

.staffelkorting-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.staffelkorting-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f8f8;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
  transition: background-color 0.15s;
  user-select: none;
  line-height: 1;
  padding: 0;
}

.staffelkorting-stepper__btn:hover {
  background: #eee;
}

.staffelkorting-stepper__btn:active {
  background: #ddd;
}

.staffelkorting-stepper__input {
  width: 64px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 1em;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
  margin: 0;
  padding: 0;
}

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

/* ── Summary ── */
.staffelkorting-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
}

.staffelkorting-summary__unit,
.staffelkorting-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.staffelkorting-summary__label {
  font-size: 0.9em;
  color: #666;
}

.staffelkorting-summary__total .staffelkorting-summary__label {
  font-weight: 600;
  color: #333;
}

.staffelkorting-summary__value {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

.staffelkorting-summary__total .staffelkorting-summary__value {
  font-size: 1.1em;
  font-weight: 700;
}

/* ── Quote loop: hide quantity next to quote link ── */
form:has(.staffelkorting-quote-loop) .quantity {
  display: none !important;
}

/* ── Quote button ── */
.staffelkorting-quote-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  background-color: #0073aa;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  text-decoration: none !important;
  margin-top: 16px;
  box-sizing: border-box;
}

.staffelkorting-quote-btn:hover {
  background-color: #005a87;
}

/* ── Restricted notice ── */
.staffelkorting-restricted {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95em;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 16px;
}

.staffelkorting-restricted a {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
}
