/* ===========================
   Quantity Discount Styling
   =========================== */

.single-product form.cart .quantity:not(.hidden),
.single-product form.cart .quantity {
  display: none !important;
}

.single-product form.cart .wd-quantity,
.single-product form.cart .quantity-wrapper,
.single-product form.cart .qty-wrapper,
.single-product form.cart .input-text.qty,
.single-product form.cart input.qty {
  display: none !important;
}

.wqd-offer {
  margin: 18px 0 22px;
}

.wqd-offer__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.wqd-offer__header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.wqd-offer__title {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wqd-offer__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wqd-card:last-child {
  grid-column: 1 / -1;
}

.wqd-card {
  position: relative;
  min-height: 92px;
  padding: 16px 12px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wqd-card:hover {
  border-color: #a7c7ff;
}

.wqd-card.is-active {
  border-color: #57a3ff;
  background: #cfe4ff;
}

.wqd-card__radio {
  display: none;
}

.wqd-card__indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 1px solid #a9a9a9;
  border-radius: 50%;
  background: #fff;
}

.wqd-card.is-active .wqd-card__indicator {
  border-color: #3f3f3f;
}

.wqd-card.is-active .wqd-card__indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f2f2f;
}

.wqd-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
}

.wqd-card__label {
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wqd-card__subtitle {
  min-height: 15px;
  color: #757575;
  font-size: 10px;
  line-height: 1.2;
}

.wqd-card__prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wqd-card__discounted {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.wqd-card__each {
  font-size: 10px;
  font-weight: 400;
}

.wqd-card__original {
  color: #999;
  font-size: 10px;
  text-decoration: line-through;
  line-height: 1.15;
}

.wqd-card__stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.wqd-card__stepper[hidden] {
  display: none;
}

.wqd-card__stepper-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #9fa56c;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wqd-card__stepper-value {
  min-width: 18px;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.wqd-card.is-active .wqd-card__stepper {
  display: inline-flex;
}

.wqd-card[data-badge]::before {
  content: attr(data-badge);
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #d91c1c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 2;
}

.wqd-card[data-badge="Popular"]::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #a51515;
}

form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 42px;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: #3fa9f5;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  transition: opacity 0.2s ease;
}

form.cart .single_add_to_cart_button:hover,
form.cart .single_add_to_cart_button:focus {
  background: #3fa9f5;
  color: #111;
}

.wqd-cart-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wqd-cart-price__original {
  color: #8b8b8b;
  font-size: 12px;
  text-decoration: line-through;
}

.wqd-cart-price__discounted {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.woocommerce-cart-form .cart_item {
  transition: opacity 0.2s ease;
}

.wqd-is-updating {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 767px) {
  .wqd-offer__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wqd-card:last-child {
    grid-column: 1 / -1;
  }

  .wqd-card {
    min-height: 88px;
    padding: 15px 10px 12px;
  }
}
