/**
 * Multi-Select Add to Cart Styles
 * For bull product variation selection
 */

.multi-select-variations {
  margin: 10px 0;
  padding: 0px;
  border-radius: 8px;
}

.variation-select-row {
  display: flex;
  align-items: center;
  padding: 0px;
  margin-bottom: 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.variation-select-row:hover {
  border-color: #007cba;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.variation-select-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.variation-select-row input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.variation-label {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  margin: 0;
  color: #fff;
}

.variation-name {
  font-weight: 600;
  margin-right: 8px;
  color: #fff;
}

.variation-label .inc-gst {
  font-size: 0.85em;
  color: #fff;
  margin-left: 4px;
}

.variation-quantity {
  width: 55px;
  padding: 6px 10px;
  margin-left: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
}

.variation-quantity:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Multi-Select Cart Section */
.multi-select-cart-section {
  margin-top: 0px;
  padding: 0px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}

.multi-add-to-cart-button {
  color:#005a87;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  background: #fff;
}

.multi-add-to-cart-button:hover:not(:disabled) {
}

.multi-add-to-cart-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-feedback {
  font-size: 15px;
}

.cart-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cart-feedback .success {
  color:#005a87;
  font-weight: 600;
  font-size: 16px;
}

.cart-feedback .error {
  color: #c41e3a;
  font-weight: 600;
}

.go-to-cart-button {
  display: inline-block;
  background: #005a87;
  color: white;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.cart-errors {
  color:#005a87;
}

.go-to-cart-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Stock icon wrapper stays the same */
.stock-icon-wrapper {
  margin-left: auto;
  padding-left: 10px;
  flex-shrink: 0;
}

/* Responsive
 * Stack the variation row below 1250px. Above this width the product summary
 * column is wide enough for a single line; below it the single line is too
 * narrow, so when the stock status ("(395 in stock)") is revealed it overflows
 * off the right of the container. Stacking puts the quantity + box icon + stock
 * status on their own line where there is always room. */
@media (max-width: 1250px) {
  .variation-select-row {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
  }

  /* Line 1: checkbox + price label span the full row width, which pushes the
     quantity selector and box icon down onto a second line. */
  .variation-label {
    flex: 1 1 calc(100% - 36px);
    margin-bottom: 0;
  }

  /* Line 2: quantity selector, box icon, then the revealed stock status —
     left-aligned and vertically centred, with room to show in full. */
  .variation-quantity {
    margin-left: 0;
    margin-top: 0;
  }

  .stock-icon-wrapper {
    margin-left: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Let the revealed stock status sit beside the icon and wrap within the
     container rather than being pushed off to the right. */
  .stock-status {
    margin-left: 6px !important;
    white-space: normal;
  }

  .multi-add-to-cart-button {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .variation-select-row {
    padding: 10px;
  }

  .variation-label {
    font-size: 14px;
  }

  .variation-quantity {
    width: 70px;
  }
}
