/* بوب أب مستك - نسخة محسّنة لسلة */
#mistqsa-discount-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999 !important;
    backdrop-filter: blur(5px);
}

#mistqsa-discount-popup.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: popupFadeIn 0.3s ease-in-out;
}

#mistqsa-popup-content {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 35px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popupSlideUp 0.4s ease-out;
    direction: rtl;
    text-align: center;
}

.mistqsa-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.mistqsa-close-btn:hover {
    color: #666666;
    transform: rotate(90deg);
}

.mistqsa-popup-header {
    margin-bottom: 25px;
}

.mistqsa-popup-title {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 12px 0;
}

.mistqsa-popup-subtitle {
    font-size: 16px;
    color: #333333;
    margin: 0;
    line-height: 1.7;
}

.mistqsa-discount-box {
    background: #000000;
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.mistqsa-discount-label {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mistqsa-discount-code {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 5px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
}

.mistqsa-copy-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.mistqsa-copy-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.mistqsa-copy-btn.copied {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border-color: #4CAF50 !important;
}

.mistqsa-cta-btn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.mistqsa-cta-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* استجابة للجوال */
@media (max-width: 768px) {
    #mistqsa-popup-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    .mistqsa-popup-title { font-size: 24px; }
    .mistqsa-popup-subtitle { font-size: 15px; }
    .mistqsa-discount-code { font-size: 28px; letter-spacing: 3px; }
    .mistqsa-discount-box { padding: 25px 20px; }
}

@media (max-width: 480px) {
    #mistqsa-popup-content {
        padding: 25px 18px;
    }
    .mistqsa-popup-title { font-size: 22px; }
    .mistqsa-discount-code { font-size: 26px; }
    .mistqsa-copy-btn { padding: 10px 25px; font-size: 14px; }
}






/* تعديل خلفية عنصر Tamara للون الأبيض */
.tamara-summary-widget__container {
    background-color: #ffffff !important;
}

/* تأكد من وضوح النص الأسود على الخلفية البيضاء */
.tamara-summary-widget__container .tamara-summary-widget__inline__text,
.tamara-summary-widget__container .tamara-summary-widget__amount {
    color: #000000 !important;
}

/* تحسين الحواف والمظهر العام */
.tamara-summary-widget__container {
    border: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

/* التأكد من رؤية الأيقونات */
.tamara-summary-widget__container svg path {
    fill: #000000 !important;
}

/* تحسين رابط "تعرّف على خياراتك" */
.tamara-inline-learn-more-link {
    color: #000000 !important;
    text-decoration: underline !important;
}

.tamara-inline-learn-more-link:hover {
    opacity: 0.7;
}