@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700;800;900&display=swap');

#beige-promo-widget {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f0eb, #e8dfd5);
    border: 2px solid #d4c5b3;
    color: #4a3b32;
    padding: 12px 20px;
    box-shadow: 0 10px 25px rgba(74, 59, 50, 0.15);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-sizing: border-box;
    z-index: 999999;
}

/* حالة الظهور الكامل في البداية (أعلى الصفحة) */
#beige-promo-widget.promo-full-banner {
    position: relative;
    width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

/* حالة التصغير والتقلص لجانب الصفحة بعد 5 ثوانٍ */
#beige-promo-widget.promo-floating-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    border-radius: 20px;
    padding: 14px 18px;
    border: 2px solid #c5b29d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    animation: bounceIn 0.6s ease-out;
}

.beige-promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#beige-promo-widget.promo-floating-widget .beige-promo-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.beige-promo-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #3d2f26;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* زر الخصم */
.beige-code-btn {
    background: #d9c3b0;
    border: 1px dashed #8c7361;
    color: #3d2f26;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.3s ease;
}

.beige-code-btn:hover {
    background: #c2a893;
}

/* العداد التنازلي */
.beige-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.beige-timer-box {
    background: #ffffff;
    border: 1px solid #d4c5b3;
    color: #8c5a2b;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.1rem;
    min-width: 36px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.number-tick {
    display: inline-block;
    animation: pulseTick 0.3s ease-out;
}

@keyframes pulseTick {
    0% { transform: scale(1.2); color: #e07a5f; }
    100% { transform: scale(1); color: #8c5a2b; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3) translateY(100px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.beige-timer-dots {
    font-weight: 900;
    color: #8c7361;
}

.beige-close-btn {
    display: none;
    position: absolute;
    top: -8px;
    left: -8px;
    background: #8c7361;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

#beige-promo-widget.promo-floating-widget .beige-close-btn {
    display: block;
}