.dqc-quantity-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid #ffcc00;
    /* Yellow/gold border */
    border-radius: 20px;
    /* More rounded corners */
    overflow: hidden;
    /* Ensures child elements respect border-radius */
}

.dqc-quantity-input-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.dqc-qty-btn {
    background-color: #ffcc00;
    /* Yellow/gold background */
    border: none;
    /* No border for buttons */
    cursor: pointer;
    padding: 0 15px;
    /* Adjust padding for a wider button */
    font-size: 1.5em;
    /* Slightly larger font for +/- */
    line-height: 38px;
    color: #333;
    /* Darker text for +/- */
    height: 38px;
    /* Ensure consistent height */
}

.dqc-qty-input {
    width: 60px;
    /* Wider input field */
    text-align: center;
    border: none;
    /* No borders for the input */
    background-color: #fff;
    /* White background for input */
    height: 38px;
    padding: 0;
    font-size: 1.2em;
    /* Adjust font size for the number */
    color: #333;
    /* Darker text for the number */
}

/* Loader styles (keeping them as is, just ensuring they work with new design) */
.dqc-quantity-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

.dqc-quantity-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: dqc-spinner 0.6s linear infinite;
    z-index: 2;
}

@keyframes dqc-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Loader on the original Add to Cart button */
a.add_to_cart_button.loading {
    opacity: 0.7;
    position: relative;
    color: transparent !important;
    /* Hide button text */
    pointer-events: none;
}

a.add_to_cart_button.loading::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: dqc-spinner 0.6s linear infinite;
    z-index: 2;
}


.dqc-quantity-wrapper.quantity {
    width: 95%;
    border-color: #e6ca2e;
    border-width: 2px;
    margin: 0 auto;
    overflow: visible;
}

.dqc-quantity-input-wrapper button.dqc-qty-btn {
    width: 40px;
    height: 40px;
    min-height: inherit;
    border-radius: 100%;
    background: #e6ca2e;
    font-size: 0px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 14px;
    position: relative;
}
.dqc-quantity-input-wrapper button.dqc-qty-btn.dqc-minus {
    background-image: url('https://stubtober.com/wp-content/themes/ddatheme-2025/assets/images/mins-icon-new.svg');
    left: -6px;
}
.dqc-quantity-input-wrapper button.dqc-qty-btn.dqc-plus {
    background-image: url('https://stubtober.com/wp-content/themes/ddatheme-2025/assets/images/pluse-icon-new.svg');
    right: -6px;
}
input.dqc-qty-input.input-text.qty.text {
    width: calc(100% - 80px) !important;
    height: 40px;
    border: none;
    font-size: 20px !important;
}
