
.bebanstore-quantity-section .quantity,
.bebanstore-quantity-section .bebanstore-quantity-input-wrapper {
    display: flex;
    border: 1px solid #EEEEEE;
    height: 44px;
    align-items: center;
    border-radius: 8px;
    padding: 0 5px;
    justify-content: space-between;
    max-width: 83px;
}

.bebanstore-quantity-section .qty,
.bebanstore-quantity-section .bebanstore-quantity-input-wrapper .qty {
    width: 30px !important;
    padding: 0 !important;
    text-align: center !important;
    border: none !important;
    -moz-appearance: textfield !important;
    color: #333 !important;
    pointer-events: none !important;
}

.bebanstore-quantity-section .bebanstore-qty-button {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border: none !important;
    color: #333 !important;
}

.bebanstore-quantity-section .bebanstore-qty-button svg {
    width: 20px;
    height: 20px;
}

.bebanstore-quantity-section .bebanstore-qty-button svg path {
    stroke: currentColor;
}

.bebanstore-quantity-section .bebanstore-qty-button:hover:not(:disabled) {
    color: #000 !important;
}

.bebanstore-quantity-section .bebanstore-qty-button:disabled {
    opacity: 0.5;
    color: #bbb !important;
    background: transparent !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.bebanstore-quantity-section .bebanstore-qty-button:disabled:hover {
    color: #bbb !important;
    background: transparent !important;
    cursor: not-allowed !important;
}

.bebanstore-quantity-section .bebanstore-qty-button.trash {
    color: #EE4055 !important;
}

.bebanstore-quantity-section .bebanstore-qty-button.trash:hover:not(:disabled) {
    color: #d63384 !important;
}

.bebanstore-quantity-section .bebanstore-qty-button.minus {
    border-right: 1px solid #ddd;
}

.bebanstore-quantity-section .bebanstore-qty-button.plus {
    border-left: 1px solid #ddd;
}


.bebanstore-quantity-section .bebanstore-qty-button.minus {
    border-right: none;
    border-left: 1px solid #ddd;
    padding: 0 !important;
}

.bebanstore-quantity-section .bebanstore-qty-button.trash{
    transform: scale(0.85);
}

.bebanstore-quantity-section .bebanstore-qty-button.plus,
.bebanstore-quantity-section .bebanstore-qty-button.trash {
    margin: 0 !important;
    border-left: none;
    border-right: none;
    padding: 0 !important;
}

/* Hide spinners for number input */
.bebanstore-quantity-section .qty::-webkit-outer-spin-button,
.bebanstore-quantity-section .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Page Specific Styles */
.woocommerce-cart-form .bebanstore-quantity-input-wrapper {
    margin: 0 auto;
}

/* Confirmation Modal Styles */
.bebanstore-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-out;
}

.bebanstore-modal.show {
    visibility: visible;
    opacity: 1;
}

.bebanstore-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    border-radius: 16px;
}

.bebanstore-modal.show .bebanstore-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.bebanstore-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bebanstore-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.bebanstore-modal-body {
    padding: 20px;
}

.bebanstore-confirm-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #999;
    transition: opacity 0.3s ease-out;
    text-align: center;
}

.bebanstore-confirm-message.error {
    color: #dc3545;
}

.bebanstore-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bebanstore-modal-footer .bebanstore-modal-confirm,
.bebanstore-modal-footer .bebanstore-modal-cancel {
    padding: 10.5px 24px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 100px;
    position: relative;
    border-radius: 8px !important;
}

.bebanstore-modal-cancel {
    border: none !important;
    background: transparent !important;
    color: #3373FC !important;
}

.bebanstore-modal-cancel:hover {
    background-color: #e9ecef !important;
    border-color: #ddd !important;
    color: #333 !important;
}

.bebanstore-modal-confirm,
.bebanstore-modal-confirm:hover{
    background-color: #EF4055 !important;
    color: #fff !important;
    border: none !important;
}

.bebanstore-modal-confirm.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.bebanstore-modal-confirm.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-right-color: transparent;
    border-radius: 50%;
    animation: bebanstore-spin 0.75s linear infinite;
    box-sizing: border-box;
}

@keyframes bebanstore-spin {
    to {
        transform: rotate(360deg);
    }
}

/* RTL Support */
.rtl .bebanstore-modal-footer {
    flex-direction: row-reverse;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .bebanstore-modal-content {
        width: 95%;
    }

    .bebanstore-modal-header h3 {
        font-size: 16px;
    }

    .bebanstore-confirm-message {
        font-size: 14px;
    }

    .bebanstore-modal-footer .bebanstore-modal-confirm,
    .bebanstore-modal-footer .bebanstore-modal-cancel {
        padding: 6px 15px;
        font-size: 13px;
        min-width: 80px;
    }
}

/* Quantity Control Mobile Responsiveness */
@media (max-width: 768px) {
    .bebanstore-quantity-input-wrapper {
        max-width: 120px;
    }

    .bebanstore-qty-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .bebanstore-quantity-input-wrapper .qty {
        width: 40px !important;
        height: 35px !important;
        font-size: 13px !important;
    }
} 