/* Import Google Fonts - Poppins for general text, Pacifico for greetings/titles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Pacifico&display=swap');

/* --- General Bar Styles --- */
#summer-sale-bar-container {
    opacity: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradient: Dark Teal to slightly lighter Teal, reflecting the site's primary green */
    background: linear-gradient(to right, #00564D, #00695C); /* Darker Teal to your site's primary green */
    color: #FFFFFF; /* White for contrast, matching site's text */
    padding: 10px 15px; /* Reduced padding for a smaller bar */
    box-sizing: border-box;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px; /* Smaller base font size */
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2); /* Softer shadow */
    overflow: hidden;
    border-top-left-radius: 10px; /* Slightly less rounded */
    border-top-right-radius: 10px;
    animation: ssb-bar-enter 0.6s ease-out forwards; /* Faster animation */
}

/* --- Entry Animation --- */
@keyframes ssb-bar-enter {
    0% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Decorative Elements --- */
.ssb-deco-icon {
    font-size: 1.8em; /* Smaller icons */
    color: #FFD700; /* Gold/Yellow for a 'sunshine' accent within the green theme */
    margin: 0 8px; /* Reduced spacing around icons */
    flex-shrink: 0;
    animation: ssb-icon-pulse 2s infinite alternate ease-in-out;
}
.ssb-deco-icon-left { color: #FFD700; } /* Gold/Yellow for sun */
.ssb-deco-icon-right { color: #ADD8E6; } /* Light Blue for subtle water/sky, blends better */

@keyframes ssb-icon-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); } /* Less pronounced pulse */
}

.ssb-static-greeting {
    font-family: 'Pacifico', cursive;
    font-size: 1.4em; /* Smaller greeting */
    font-weight: 600;
    color: #92F262; /* Your site's bright lime green for high visibility */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15); /* Softer shadow */
    margin: 0 10px; /* Reduced spacing */
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Main Content Layout --- */
.ssb-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    margin: 0 10px; /* Reduced spacing */
    flex-wrap: nowrap; /* Prevent wrapping on desktop for compactness */
    gap: 10px; /* Reduced spacing between sections */
}

.ssb-greeting-section {
    text-align: center;
    margin-bottom: 0;
}

.ssb-scrolling-text-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-height: 1.8em; /* Shorter height */
    background-color: rgba(255,255,255,0.1); /* Light translucent background */
    border-radius: 6px; /* Smaller rounded corners */
    padding: 3px 8px; /* Reduced padding */
    display: flex;
    align-items: center;
    max-width: 35%; /* Limit width to keep it compact */
}

.ssb-text {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    margin: 0;
    line-height: 1.5;
    font-size: 1em; /* Base font size */
    visibility: hidden;
    color: #FFFFFF; /* White text on translucent green */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

/* Marquee Animations */
.ssb-animate-ltr-arabic {
    visibility: visible !important;
    animation: ssb-marquee-ltr 17s linear forwards; /* Increased from 15s to 17s */
}
@keyframes ssb-marquee-ltr {
    0%  { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ssb-animate-rtl-english {
    visibility: visible !important;
    animation: ssb-marquee-rtl 17s linear forwards; /* Increased from 15s to 17s */
}
@keyframes ssb-marquee-rtl {
    0%  { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ssb-right-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* --- Countdown Timer --- */
#ssb-countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    background-color: rgba(255,255,255,0.2); /* Lighter translucent background */
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.08);
    min-width: 100px;
}
.ssb-countdown-label {
    margin-bottom: 3px;
    opacity: 0.8;
    font-size: 0.85em;
    font-weight: 600;
}
.ssb-countdown-value {
    font-weight: 700;
    color: #92F262; /* Your site's bright lime green for clear numbers */
    min-width: 80px;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.ssb-time-unit {
    display: inline-block;
    padding: 0 1px;
    min-width: 20px;
}

/* --- Coupon Area --- */
.ssb-coupon-area {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.08);
}
.ssb-coupon-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.ssb-discount-badge {
    font-size: 1em;
    font-weight: bold;
    color: #FFD700; /* Gold/Yellow for discount badge, like a highlight */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.08);
}
.ssb-coupon-text-label {
    font-size: 0.8em;
    opacity: 0.8; /* Slightly less opaque to differentiate from discount */
    font-weight: 600;
}

.ssb-coupon-input-group {
    display: flex;
    align-items: center;
    background-color: #FFFFFF; /* White background for the code itself */
    border-radius: 6px;
    padding-left: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#ssb-coupon-code {
    color: #00695C; /* Darker teal/green, matching primary site color */
    font-weight: 700;
    font-size: 1em;
    padding-right: 6px;
    background: transparent;
    letter-spacing: 0.03em;
}
#ssb-copy-button {
    background-color: #92F262; /* Your site's bright lime green */
    color: #00564D; /* Darker teal for text on button */
    border: none;
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-left: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 4px;
}
#ssb-copy-button:hover { background-color: #7FE050; } /* Slightly darker lime green on hover */
#ssb-copy-button.ssb-button-copied-animation {
    background-color: #FFD700; /* Gold/Yellow for successful copy feedback */
    color: #00564D; /* Darker teal text */
    transform: scale(1.02);
}
#ssb-copy-feedback {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    background-color: #333;
    color: #92F262; /* Lime green feedback */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: ssb-fade-in-up 0.3s ease-out forwards;
}
@keyframes ssb-fade-in-up {
    0% { opacity: 0; transform: translateX(-50%) translateY(0px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(-3px); }
}

/* --- Close Button --- */
#ssb-close-button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #FFFFFF;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 8px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: 10px;
    flex-shrink: 0;
}
#ssb-close-button:hover {
    background-color: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* --- Expired State --- */
#summer-sale-bar-container.ssb-expired {
    background: linear-gradient(to right, #616161, #424242); /* Muted gray gradient for "ended" */
    color: #E0E0E0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
#summer-sale-bar-container.ssb-expired .ssb-countdown-value { color: #FFCDD2; }


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    #summer-sale-bar-container { flex-direction: column; padding: 8px 10px; border-top-left-radius: 8px; border-top-right-radius: 8px; }
    .ssb-main-content { flex-direction: column; width: 100%; margin: 0; gap: 8px; flex-wrap: wrap; }
    .ssb-deco-icon.ssb-deco-icon-left, .ssb-deco-icon.ssb-deco-icon-right { display: none; }
    .ssb-static-greeting { margin: 3px 0 6px 0; order: -1; font-size: 1.2em; }
    .ssb-scrolling-text-wrapper { width: 100%; max-width: 100%; margin-right: 0; margin-bottom: 5px; font-size: 0.9em; min-height: 1.6em; }
    .ssb-animate-ltr-arabic, .ssb-animate-rtl-english { animation-duration: 13s; } /* Increased from 12s to 13s for tablets/larger mobiles */
    .ssb-right-section { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px; }
    #ssb-countdown-timer, .ssb-coupon-area { flex-basis: auto; width: auto; }
    #ssb-copy-feedback { bottom: auto; top: 100%; transform: translateX(-50%) translateY(8px); }
    #ssb-close-button {
        position: absolute;
        top: 5px;
        right: 8px;
        font-size: 1.4em;
        padding: 4px 7px;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    #summer-sale-bar-container { font-size: 12px; padding: 6px 8px; border-top-left-radius: 6px; border-top-right-radius: 6px; }
    .ssb-static-greeting { font-size: 1.1em; margin-bottom: 3px; }
    .ssb-scrolling-text-wrapper { font-size: 0.85em; min-height: 1.5em; }
    .ssb-animate-ltr-arabic, .ssb-animate-rtl-english { animation-duration: 12s; } /* Increased from 10s to 12s for smaller mobiles */
    .ssb-right-section { flex-direction: column; gap: 8px; }
    #ssb-countdown-timer, .ssb-coupon-area { width: 95%; max-width: 250px; }
    .ssb-coupon-input-group { width: 100%; }
    #ssb-copy-button { flex-grow: 1; }
    #ssb-close-button { top: 3px; right: 3px; font-size: 1.2em; padding: 3px 5px;}
}