/* Custom Quantity Input - High specificity to override Astra */
.single-product .cart .customwc-quantity-wrapper,
.woocommerce-page .customwc-quantity-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 48px !important;
    vertical-align: middle !important;
}

.single-product .cart .customwc-qty-btn,
.woocommerce-page .customwc-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    color: #000 !important;
    transition: background 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .cart .customwc-qty-btn:hover,
.woocommerce-page .customwc-qty-btn:hover {
    background: #333 !important;
    color: #fff !important;
}

.single-product .cart .customwc-qty-btn:active,
.woocommerce-page .customwc-qty-btn:active {
    background: #000 !important;
    color: #fff !important;
}

.single-product .cart .customwc-qty-btn:disabled,
.woocommerce-page .customwc-qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    color: #000 !important;
    background: transparent !important;
}

.single-product .cart .customwc-qty-btn svg,
.woocommerce-page .customwc-qty-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

.single-product .cart .customwc-qty-minus,
.woocommerce-page .customwc-qty-minus {
    border-right: 1px solid #e5e5e5 !important;
}

.single-product .cart .customwc-qty-plus,
.woocommerce-page .customwc-qty-plus {
    border-left: 1px solid #e5e5e5 !important;
}

.single-product .cart .customwc-qty-input,
.woocommerce-page .customwc-qty-input {
    width: 56px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #000 !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .cart .customwc-qty-input::-webkit-outer-spin-button,
.single-product .cart .customwc-qty-input::-webkit-inner-spin-button,
.woocommerce-page .customwc-qty-input::-webkit-outer-spin-button,
.woocommerce-page .customwc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.single-product .cart .customwc-qty-input:focus,
.woocommerce-page .customwc-qty-input:focus {
    outline: none !important;
}

/* Adjust for grouped products / variations if needed */
.woocommerce-grouped-product-list .customwc-quantity-wrapper {
    height: 40px !important;
}

.woocommerce-grouped-product-list .customwc-qty-btn {
    width: 40px !important;
}

.woocommerce-grouped-product-list .customwc-qty-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.woocommerce-grouped-product-list .customwc-qty-input {
    width: 48px !important;
    font-size: 14px !important;
}

/* Total price display below cart form */
.customwc-total-price {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.customwc-total-label {
    margin-right: 6px;
}

.customwc-total-amount {
    font-weight: 700;
}
