/* ==========================================================================
   DPL Volume Deals — base layout of the quantity breaks widget.

   Replaces the Upsell Koala app stylesheet. The look on top of it (black selected card, orange
   badge, 20px radius, colours) comes from the theme's existing Koala overrides in
   component-dpl-product.css; the values here were measured from the live widget (1280 / 375px).
   ========================================================================== */

/* The widget replaces Dawn's quantity picker, like Koala did. */
.product__info-container:has(koala-quantity-selector) .product-form__quantity {
  display: none !important;
}

koala-quantity-selector {
  display: block;
  margin: 16px 0;
}

.koala-deal__tier__quantity-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.koala-deal__quantity-label {
  color: #adadad;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.koala-deal__quantity-container {
  display: flex;
  align-items: center;
}

.koala-deal__quantity-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #f7f7f7;
  color: #0d0d0d;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.koala-deal__quantity-input {
  width: 48px;
  height: 32px;
  margin: 0 5px;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: #0d0d0d;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  -moz-appearance: textfield;
}

.koala-deal__quantity-input::-webkit-outer-spin-button,
.koala-deal__quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.koala-deal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.koala-deal__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #adadad;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.koala-deal__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.koala-deal__tiers__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.koala-deal__tiers__list-item {
  position: relative;
}

.koala-deal__tier__input {
  display: none;
}

.koala-deal__tier {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #e5e5e5;
  cursor: pointer;
}

.koala-deal__tier__input:checked + .koala-deal__tier {
  background: #0d0d0d;
  box-shadow: 0 0 0 1px #0d0d0d;
}

.koala-deal__tier__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}

.koala-deal__tier__content-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.koala-deal__tier__radio--hidden {
  display: none;
}

.koala-deal__tier__title-container {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.koala-deal__tier__title,
.koala-deal__tier__price {
  color: #0d0d0d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.koala-deal__tier__badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 154, 1, 0.12);
  color: #b36c00;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.koala-deal__tier__pricing-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.koala-deal__tier__regular-price {
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: line-through;
}

/* Live keeps the hidden regular price's line, so the tier-1 price sits at the top like the others. */
.koala-deal__tier__regular-price--hidden {
  visibility: hidden;
}

.koala-deal__tier__input:checked + .koala-deal__tier .koala-deal__tier__title,
.koala-deal__tier__input:checked + .koala-deal__tier .koala-deal__tier__price {
  color: #ffffff;
}

.koala-deal__tier__input:checked + .koala-deal__tier .koala-deal__tier__regular-price {
  color: #9a9a9a;
}

.koala-deal__tier__input:checked + .koala-deal__tier .koala-deal__tier__badge {
  background: #ff9a01;
  color: #ffffff;
}
