/* Ensure our container looks correct as a pill */
.quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px !important; /* Rounded pill shape */
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

/* Hide duplicate buttons from themes */
.quantity button.minus:not(.angie-qty-btn-ba4e033a),
.quantity button.plus:not(.angie-qty-btn-ba4e033a),
.quantity input[type="button"].minus,
.quantity input[type="button"].plus,
.quantity .qodef-quantity-minus,
.quantity .qodef-quantity-plus {
    display: none !important;
}

/* Remove ::before/::after pseudo-elements on our buttons that themes might inject */
.quantity .angie-qty-btn-ba4e033a::before,
.quantity .angie-qty-btn-ba4e033a::after {
    display: none !important;
    content: none !important;
}

.quantity input.qty {
    border: none !important;
    box-shadow: none !important;
    width: 50px !important;
    text-align: center;
    padding: 0 !important;
    height: 36px !important;
    margin: 0 !important;
    background-color: transparent !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

/* Style our custom buttons */
.angie-qty-btn-ba4e033a {
    background-color: #f7f7f7 !important; /* Light grey background */
    border: none !important;
    cursor: pointer !important;
    padding: 0 16px !important;
    height: 36px !important;
    color: #12327a !important; /* Brand navy color for symbols */
    font-weight: bold !important;
    transition: background-color 0.2s, color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important; /* Larger, clear symbols */
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hover effects */
.angie-qty-btn-ba4e033a:hover {
    background-color: #e5e5e5 !important;
}

/* Hide default update cart button */
button[name="update_cart"] {
    display: none !important;
}
