/* MBB Stepper Styles - With Loading Effect */

/* 1. Stepper Wrapper */
.mbb-stepper-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ff6600; 
    border-radius: 4px;
    overflow: hidden;
    height: 34px;
    margin: 10px auto 5px auto;
    width: 100%;
    max-width: 110px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 2. Buttons */
.mbb-stepper-btn {
    border: none;
    background: #ff6600;
    color: #ffffff;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mbb-stepper-btn:hover { background: #d95700; }
.mbb-stepper-btn:active { transform: scale(0.95); }

/* 3. Center Area (Holds Count & Spinner) */
.mbb-count-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    background: #fff;
}

/* Count Number */
.mbb-stepper-count {
    font-weight: 600;
    font-size: 15px;
    color: #000;
}

/* Loading Spinner (Hidden by default) */
.mbb-spinner {
    display: none; /* Adi lapavlele asel */
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #ff6600; /* Orange rotating part */
    border-radius: 50%;
    animation: mbb-spin 0.8s linear infinite;
}

/* Animation Keyframes */
@keyframes mbb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === LOADING STATE LOGIC === */
/* Jeva processing chalu asel teva number lapva ani spinner dakhav */
.mbb-processing .mbb-stepper-count {
    display: none;
}
.mbb-processing .mbb-spinner {
    display: block;
}

/* Hide Default Woo buttons */
.mbb-has-stepper a.add_to_cart_button,
.mbb-has-stepper a.added_to_cart { 
    display: none !important; 
}