/* Custom styles for modern quantity selector */

.quantity-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  width: fit-content;
  background-color: #fff;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.input-group-btn-vertical {
  display: none !important;
}

.qty-btn:hover {
  background-color: #e0e0e0;
}

.qty-btn:active {
  background-color: #d0d0d0;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-btn .material-icons {
  font-size: 20px;
  color: #333;
}

.qty-decrease {
  border-right: 1px solid #ddd;
}

.qty-increase {
  border-left: 1px solid #ddd;
}

.qty-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.qty-input:focus {
  outline: none;
  background-color: #f9f9f9;
}

/* Product quantity container */
.product-quantity .qty {
  margin-bottom: 15px;
}

/* Make sure the quantity group and add to cart button are aligned */
.product-quantity {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .product-quantity {
    flex-direction: row;
    align-items: center;
  }

  .product-quantity .qty {
    margin-bottom: 0;
    margin-right: 15px;
  }
}
