/* =========================================
   Uphaar Minimum Quantity Popup
   ========================================= */

.uphaar-cmq-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.uphaar-cmq-popup {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px 30px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: uphaarCmqPopupIn 0.2s ease-out;
}

.uphaar-cmq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f7f1e8;
    font-size: 30px;
}

.uphaar-cmq-popup h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
    color: #222222;
}

.uphaar-cmq-popup p {
    margin: 0 auto 24px;
    max-width: 340px;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

.uphaar-cmq-popup p strong {
    color: #222222;
}

.uphaar-cmq-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: #222222;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.uphaar-cmq-ok:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.uphaar-cmq-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
}

.uphaar-cmq-close:hover {
    color: #222222;
}


/* Animation */

@keyframes uphaarCmqPopupIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* Prevent page scrolling while popup is open */

body.uphaar-cmq-open {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 480px) {

    .uphaar-cmq-overlay {
        padding: 15px;
    }

    .uphaar-cmq-popup {
        max-width: 100%;
        padding: 32px 22px 24px;
        border-radius: 14px;
    }

    .uphaar-cmq-popup h3 {
        font-size: 21px;
    }

    .uphaar-cmq-popup p {
        font-size: 15px;
    }

}