﻿/* Wrapper for outside the panel */
.store-hours-wrapper {
    background: #e9eef3;
    padding: 40px 20px; /* reduced padding for smaller screens */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glow behind widget */
.store-hours-widget {
    position: relative;
    z-index: 1;
}

    .store-hours-widget::before {
        content: '';
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background: radial-gradient(circle at center, rgba(45,255,200,0.01), transparent 60%);
        border-radius: 20px;
        z-index: -1;
    }

.store-hours-container {
    background: linear-gradient(135deg, #e9eef3, #e9eef4);
    color: #fff;
    backdrop-filter: blur(6px) saturate(120%);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    max-width: 400px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

/* Title */
.widget-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    font-weight: 700;
    color: #004F6E;
    margin-bottom: 16px;
}

/* Current day & time */
#current-status {
    font-size: clamp(1.7rem, 6vw, 1.8rem) !important;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#current-day-time {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0099D6;
}

.status {
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
    font-size: 1rem;
    transition: box-shadow 0.5s ease;
}

    /* Open/Closed pulse */
    .status.open {
        background: #27ae60;
        color: #0b0c10;
        box-shadow: 0 0 10px rgba(39,174,96,0.6), 0 0 20px rgba(39,174,96,0.3) inset;
        animation: pulseOpen 1.5s infinite;
    }

    .status.closed {
        background: radial-gradient(circle at 20% 30%, #041D2E, #041D2E 90%);
        color: #ffffff;
        /*      box-shadow: 0 0 10px rgba(231,76,60,0.6), 0 0 20px rgba(231,76,60,0.3) inset;
            animation: pulseClosed 1.5s infinite;*/
    }

@keyframes pulseOpen {
    0%,100% {
        box-shadow: 0 0 10px rgba(39,174,96,0.6), 0 0 20px rgba(39,174,96,0.3) inset;
    }

    50% {
        box-shadow: 0 0 20px rgba(39,174,96,0.8), 0 0 30px rgba(39,174,96,0.4) inset;
    }
}

@keyframes pulseClosed {
    0%,100% {
        box-shadow: 0 0 10px rgba(231,76,60,0.6), 0 0 20px rgba(231,76,60,0.3) inset;
    }

    50% {
        box-shadow: 0 0 20px rgba(231,76,60,0.8), 0 0 30px rgba(231,76,60,0.4) inset;
    }
}



.full-hours {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease, padding .3s ease;
    text-align: left;
    margin-top: 10px;
    border-radius: 12px;
    background: #12171f;
    padding: 0 12px;
}

    .full-hours.expanded {
        opacity: 1;
        max-height: 420px;
        padding: 10px 12px;
    }

    .full-hours ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .full-hours li {
        padding: 8px 6px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
        color: #bfeeea;
    }

        .full-hours li:last-child {
            border-bottom: 0;
        }

        .full-hours li.today {
            background: linear-gradient(90deg,var(--accent-1),#0099D6);
            color: #0b0c10;
            font-weight: 700;
            border-left: 4px solid rgba(0,229,255,0.5);
            padding-left: 10px;
        }

/* ======================
   Responsive for Tablets
   ====================== */
@media (max-width: 768px) {
    .store-hours-wrapper {
        padding: 30px 15px;
    }

    .store-hours-container {
        max-width: 90%;
        padding: 16px 20px;
    }

    .widget-title {
        font-size: 1.3rem;
    }

    #current-day-time {
        font-size: 1.4rem;
    }

    #current-status {
        gap: 4px;
        margin-bottom: 8px;
    }

    .full-hours li {
        font-size: 0.9rem;
        padding: 6px 4px;
    }

    /* Reduce glow size for smaller tablets */
    .store-hours-widget::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-radius: 14px;
    }
}

/* ======================
   Responsive for Phones
   ====================== */
@media (max-width: 480px) {
    .store-hours-wrapper {
      
      
    }

    .store-hours-container {
        max-width: 100%;
        border-radius:0;
        padding: 12px 16px;
        box-sizing: border-box; /* important to prevent overflow */
        box-shadow:none;
    }

    .store-hours-widget::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 12px;
    }

    .widget-title {
        font-size: 1rem;
    }

    #current-day-time {
        font-size: 1.2rem;
    }

    .status {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .full-hours li {
        font-size: 0.8rem;
        padding: 4px 3px;
    }
}
@media (max-width: 480px) {
    .store-hours-widget {
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* THIS FIXES IT */
    }

        .store-hours-widget::before {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
}

@media (max-width: 390px) {
    .full-hours li {
      
       
        font-size: clamp(1rem, 2vw, 1.2rem) !important;
        
    }
}
@media (max-width: 340px) {
    .full-hours li {
        font-size: clamp(0.80rem, 2vw, 1rem) !important;
    }
}