/* Banner Atas */
.wssm-top-banner {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    z-index: 99998; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    /* Warna teks default (untuk banner closed) */
    color: #333; 
}

/* (BARU) Style untuk banner Bypass */
.wssm-banner-bypassed {
    /* Warna teks diatur inline oleh PHP */
    color: #ffffff; 
}

.admin-bar .wssm-top-banner {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .wssm-top-banner {
        top: 46px;
    }
}

.wssm-top-banner .wssm-banner-content {
    margin: 0;
    padding: 0;
    font-size: 14px; 
    line-height: 1.4;
}
.wssm-top-banner .wssm-banner-content p {
    margin: 0;
    padding: 0;
}
.wssm-banner-bypassed .wssm-banner-content a {
    color: #79c7e7; /* Warna link khusus jika teksnya gelap */
}


/* * CSS POP-UP CHECKOUT */

/* Lapisan Overlay Penuh */
.wssm-popup-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 999999; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    
    background-color: rgba(240, 173, 78, 0.95);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    animation: wssm-fade-in 0.3s ease-out;
}

@keyframes wssm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Kotak Konten di Tengah */
.wssm-popup-content {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center; 
    max-height: 90vh; 
    overflow-y: auto; 
}

/* Style untuk Jam & Keterangan Libur */
.wssm-popup-datetime {
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0.7;
    margin-bottom: 8px;
}
.wssm-popup-holiday-desc {
    font-size: 1.1em;
    font-weight: bold;
    color: #d9534f; 
    margin-bottom: 10px;
    border: 1px dashed #d9534f;
    padding: 8px;
    border-radius: 4px;
}
.wssm-popup-dark-bg .wssm-popup-holiday-desc {
    color: #f0ad4e; 
    border-color: #f0ad4e;
}


/* Tombol Kustom */
.wssm-popup-button {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 5px;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wssm-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Style untuk konten di dalam pop-up */
.wssm-popup-content,
.wssm-popup-content p,
.wssm-popup-content h1,
.wssm-popup-content h2,
.wssm-popup-content h3 {
    color: #333;
    text-align: center; 
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Style untuk latar gelap pop-up */
.wssm-popup-dark-bg .wssm-popup-content,
.wssm-popup-dark-bg .wssm-popup-content p,
.wssm-popup-dark-bg .wssm-popup-content h1,
.wssm-popup-dark-bg .wssm-popup-content h2,
.wssm-popup-dark-bg .wssm-popup-content h3 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.wssm-popup-dark-bg .wssm-popup-datetime {
    color: #f0f0f1;
    opacity: 0.8;
}

/* Countdown Wrapper */
.wssm-countdown-wrapper {
    margin-top: 15px;
    font-weight: bold;
    padding: 10px 15px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    color: #333; 
}

#wssm-countdown-timer {
    font-size: 1.3em;
    margin-top: 5px;
}

/* Shortcode Jam Operasional */
.wssm-store-hours-list {
    list-style: none;
    margin: 15px auto; 
    padding: 0;
    max-width: 350px; 
    text-align: left; 
}

.wssm-store-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.wssm-store-hours-list li:last-child {
    border-bottom: none;
}

.wssm-store-hours-list .day-name {
    font-weight: bold;
    margin-right: 15px;
}

.wssm-store-hours-list .day-time {
    font-weight: normal;
    white-space: nowrap; 
}

.wssm-store-hours-list .day-closed {
    font-weight: bold;
    opacity: 0.8;
}


/*
 * Style untuk Countdown & Store Hours pada Latar Gelap Pop-up
 */

.wssm-popup-dark-bg .wssm-countdown-wrapper {
    color: #f0f0f1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.wssm-popup-dark-bg .wssm-store-hours-list,
.wssm-popup-dark-bg .wssm-store-hours-list .day-name,
.wssm-popup-dark-bg .wssm-store-hours-list .day-time,
.wssm-popup-dark-bg .wssm-store-hours-list .day-closed {
    color: #f0f0f1 !important;
}

.wssm-popup-dark-bg .wssm-store-hours-list li {
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}