/* OVERLAY */
.qc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    pointer-events: none;
}

/* MAIN POPUP */
.qc-popup {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    left: auto !important;

    z-index: 2147483647 !important;

    width: 380px;
    max-width: calc(100vw - 20px);

    background: #ffffff;
    border-radius: 16px;

    padding: 16px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.18);

    font-family: Arial, sans-serif;

    animation: fadeIn 0.25s ease-in-out;

    direction: rtl;
    text-align: right;

    overflow: hidden;

    box-sizing: border-box;
}

/* HOT BADGE */
.qc-badge {
    position: absolute;

    top: 10px;
    left: 10px;

    background: #ff3b30;
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    padding: 5px 10px;

    border-radius: 30px;

    line-height: 1;
}

/* CLOSE BUTTON */
.qc-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    border: none;

    background: #222 !important;
    color: #fff;

    border-radius: 50%;

    font-size: 18px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;

    transition: all .2s ease;

    padding: 0;
}

.qc-close:hover {
    transform: scale(1.05);
}

/* CONTENT */
.qc-content {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 12px;
}

/* IMAGE */
.qc-img {
    width: 75px;
    height: 75px;

    min-width: 75px;

    border-radius: 12px;

    object-fit: cover;

    background: #f2f2f2;
}

/* TEXT WRAPPER */
.qc-text {
    flex: 1;
    min-width: 0;
}

/* TITLE */
.qc-title {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
}

/* PRODUCT NAME */
.qc-product {
    font-size: 15px;
    font-weight: 700;

    margin-top: 4px;

    color: #111;

    line-height: 1.35;

    word-break: break-word;
}

/* CONDITION */
.qc-condition {
    font-size: 12px;
    color: #777;

    margin-top: 5px;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .qc-popup {

        right: 10px !important;
        left: 10px !important;

        width: auto;

        bottom: 15px !important;

        padding: 14px;

        border-radius: 14px;
    }

    .qc-content {
        gap: 10px;
    }

    .qc-img {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .qc-product {
        font-size: 14px;
    }

    .qc-title,
    .qc-condition {
        font-size: 11px;
    }

    .qc-close {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .qc-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* EXTRA SMALL DEVICES */

@media (max-width: 480px) {

    .qc-popup {
        bottom: 10px !important;

        right: 8px !important;
        left: 8px !important;

        padding: 12px;
    }

    .qc-content {
        align-items: flex-start;
    }

    .qc-img {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .qc-product {
        font-size: 13px;
    }
}