/* === CSS Variables Defaults (Overridden by inline styles) === */
:root {
    --sn-z-index: 999999;
}

/* === Strip Styles === */
#sn-header-strip-wrapper {
    left: 0;
    width: 100%;
    background-color: var(--sn-strip-bg, #0b6b3a); 
    color: var(--sn-strip-text, #ffffff);
    z-index: var(--sn-z-index);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
    padding: var(--sn-strip-padding-y, 10px) var(--sn-strip-padding-x, 40px); 
    box-sizing: border-box;
    font-family: inherit;
}

/* Strip Positions */
#sn-header-strip-wrapper.sn-strip-top-fixed {
    position: fixed;
    top: 0;
}
#sn-header-strip-wrapper.sn-strip-top-absolute {
    position: absolute;
    top: 0;
}
#sn-header-strip-wrapper.sn-strip-bottom-fixed {
    position: fixed;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

/* Close Button */
.sn-strip-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    z-index: 100;
}

.sn-strip-slider {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    min-height: 34px;
    display: flex;
    align-items: center;
}

.sn-strip-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}
.sn-strip-slide.sn-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.sn-strip-text {
    margin: 0;
    padding: 0;
    font-size: var(--sn-strip-font-size, 15px) !important;
    line-height: 1.3;
    font-weight: var(--sn-strip-font-weight, 500) !important;
}
.sn-strip-text p {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: var(--sn-strip-font-size, 15px) !important;
    font-weight: var(--sn-strip-font-weight, 500) !important;
}
.sn-strip-text a {
    color: var(--sn-strip-text, #ffffff);
    text-decoration: underline;
    font-weight: bold;
}
.sn-strip-text a:hover {
    opacity: 0.8;
}
.sn-strip-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    line-height: 1;
}
.sn-strip-close:hover {
    color: #fff;
}


/* === Popup Overlay Styles === */
#sn-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--sn-overlay-bg, rgba(0,0,0,0.7));
    z-index: var(--sn-z-index);
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

#sn-popup-overlay.sn-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Popup Positions */
#sn-popup-overlay.sn-pos-center {
    justify-content: center;
    align-items: center;
}
#sn-popup-overlay.sn-pos-bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
    background: transparent; /* No overlay for corners */
    pointer-events: none; /* Let user click behind it */
    padding: 20px;
}
#sn-popup-overlay.sn-pos-bottom-right #sn-popup-modal { pointer-events: auto; }

#sn-popup-overlay.sn-pos-bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
    background: transparent;
    pointer-events: none;
    padding: 20px;
}
#sn-popup-overlay.sn-pos-bottom-left #sn-popup-modal { pointer-events: auto; }

/* === Popup Modal Styles === */
#sn-popup-modal {
    background: var(--sn-popup-bg, #ffffff);
    max-width: var(--sn-popup-max-width, 500px);
    width: 90%;
    border-radius: var(--sn-popup-radius, 12px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    /* Default hidden state for animations */
    opacity: 0;
}

/* When overlay is visible, trigger animations */
#sn-popup-overlay:not(.sn-hidden) #sn-popup-modal.sn-anim-fade { animation: snFadeIn 0.4s ease forwards; }
#sn-popup-overlay:not(.sn-hidden) #sn-popup-modal.sn-anim-slide { animation: snSlideDown 0.5s ease forwards; }
#sn-popup-overlay:not(.sn-hidden) #sn-popup-modal.sn-anim-zoom { animation: snZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
#sn-popup-overlay:not(.sn-hidden) #sn-popup-modal.sn-anim-bounce { animation: snBounce 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }

/* Animations */
@keyframes snFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes snSlideDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes snZoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes snBounce {
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* Popup Slider */
.sn-popup-slider {
    position: relative;
    width: 100%;
}
.sn-popup-slide {
    display: none;
    width: 100%;
    animation: snSlideFade 0.5s ease-in-out forwards;
}
.sn-popup-slide.sn-active {
    display: block;
}
@keyframes snSlideFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Popup Navigation Arrows */
.sn-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    user-select: none;
    z-index: 100;
    transition: background 0.3s;
}
.sn-popup-nav:hover {
    background: rgba(0,0,0,0.8);
}
.sn-popup-prev { left: 10px; }
.sn-popup-next { right: 10px; }

/* Close Button */
.sn-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--sn-popup-close-color, #333333);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    width: 32px; height: 32px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    line-height: 1;
}
.sn-popup-close:hover { opacity: 0.7; }

/* Image */
.sn-popup-image-wrap {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
}
.sn-popup-image-wrap a { display: block; width: 100%; height: 100%; }
.sn-popup-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content */
.sn-popup-content-wrap {
    padding: var(--sn-popup-padding, 40px);
    text-align: center;
    box-sizing: border-box;
}
.sn-popup-content-wrap h2 {
    margin-top: 0;
    margin-bottom: var(--sn-popup-title-mb, 12px) !important;
    font-size: var(--sn-popup-title-size, 20px) !important;
    color: var(--sn-popup-title-color, #111111);
    font-weight: var(--sn-popup-title-weight, 700) !important;
    line-height: 1.3;
}
.sn-popup-desc {
    color: var(--sn-popup-text-color, #444444);
    font-size: var(--sn-popup-text-size, 16px) !important;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: var(--sn-popup-text-weight, normal) !important;
}
.sn-popup-desc p {
    color: var(--sn-popup-text-color, #444444);
    font-size: var(--sn-popup-text-size, 16px) !important;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: var(--sn-popup-text-weight, normal) !important;
}

/* Button */
.sn-popup-btn {
    display: inline-block;
    margin-top: var(--sn-popup-btn-mt, 25px) !important;
    padding: 12px 30px;
    background: var(--sn-popup-btn-bg, #fce83a);
    color: var(--sn-popup-btn-text, #111111) !important;
    text-decoration: none !important;
    border-radius: var(--sn-popup-btn-radius, 6px);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.sn-popup-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .sn-strip-slider {
        min-height: 20px;
    }
}
