/* Style de base */
.store-hours-table-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
}

/* =============================================
   POPUP FERMETURES EXCEPTIONNELLES
   ============================================= */

/* Overlay */
#store-hours-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    animation: shPopupFadeIn 0.25s ease;
}

@keyframes shPopupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Boîte du popup */
#store-hours-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    padding: 32px 36px 28px;
    max-width: 480px;
    width: calc(100% - 32px);
    box-sizing: border-box;
    animation: shPopupSlideIn 0.28s cubic-bezier(.22, .68, 0, 1.2);
}

@keyframes shPopupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -54%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Icône / bandeau couleur */
#store-hours-popup::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #ff7675);
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Titre */
#store-hours-popup .sh-popup-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 12px;
    padding-right: 24px;
    /* espace pour le bouton × */
}

/* Corps du texte */
#store-hours-popup .sh-popup-body {
    font-size: 0.97em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Détail des horaires dans le popup */
#store-hours-popup .sh-popup-details {
    background: #fff5f5;
    border-left: 3px solid #e74c3c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

#store-hours-popup .sh-popup-details strong {
    display: block;
    color: #c0392b;
    margin-bottom: 4px;
}

/* Bouton "J'ai compris" */
#store-hours-popup .sh-popup-close-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#store-hours-popup .sh-popup-close-btn:hover {
    background: #c0392b;
}

/* Bouton × en haut à droite */
#store-hours-popup .sh-popup-dismiss {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4em;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#store-hours-popup .sh-popup-dismiss:hover {
    color: #333;
}

/* Responsive popup */
@media (max-width: 520px) {
    #store-hours-popup {
        padding: 24px 18px 20px;
    }
}

/* Style par défaut du tableau */
.store-hours-table-wrapper.default .store-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.store-hours-table-wrapper.default .store-hours-table th,
.store-hours-table-wrapper.default .store-hours-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.store-hours-table-wrapper.default .store-hours-table th {
    background-color: #f6f7f7;
    text-align: left;
}

.store-hours-table-wrapper.default .store-hours-table tr.today {
    background-color: #f0f6fc;
    font-weight: bold;
}

/* Style minimal du tableau */
.store-hours-table-wrapper.minimal .store-hours-table {
    width: 100%;
    border: none;
    margin: 15px 0;
    font-size: 14px;
}

.store-hours-table-wrapper.minimal .store-hours-table th,
.store-hours-table-wrapper.minimal .store-hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.store-hours-table-wrapper.minimal .store-hours-table th {
    font-weight: 600;
}

.store-hours-table-wrapper.minimal .store-hours-table tr.today {
    color: #2271b1;
}

/* Style moderne du tableau */
.store-hours-table-wrapper.modern .store-hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 15px 0;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.store-hours-table-wrapper.modern .store-hours-table th {
    background: #2271b1;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.store-hours-table-wrapper.modern .store-hours-table td {
    background: white;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.store-hours-table-wrapper.modern .store-hours-table tr:last-child td {
    border-bottom: none;
}

.store-hours-table-wrapper.modern .store-hours-table tr.today td {
    background-color: #f0f6fc;
    font-weight: bold;
}

/* Styles des messages */
.store-status-message {
    font-size: 16px;
    line-height: 1.5;
}

/* Style par défaut des messages */
.store-status-message.default {
    padding: 12px;
    border-left: 4px solid;
    background: #f6f7f7;
}

.store-status-message.default .store-open {
    color: #4CAF50;
}

.store-status-message.default .store-closed {
    color: #F44336;
}

/* Style bulle des messages */
.store-status-message.bubble {
    display: flex;
    font-weight: 500;
    color: white;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.store-status-message.bubble .store-open {
    background: #4CAF50;
    padding: 10px;
    border-radius: 20px;
    width: 100%;
    text-transform: uppercase;
}

.store-status-message.bubble .store-closed {
    background: #F44336;
    padding: 10px;
    border-radius: 20px;
    width: 100%;
    text-transform: uppercase;
}

.store-hours-table-wrapper .vacation-notice {
    margin: 0;
    /* Supprime la marge externe */
    border-left: none;
    /* Optionnel: supprime la bordure gauche */
    border: 1px solid #ffd700;
    /* Ajoute une bordure visible */
}

/* Style pour le mode vacances */
.vacation-notice {
    padding: 15px;
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    margin: 20px 0;
    color: #5c3b00;
    word-wrap: break-word;
    /* Force le retour à la ligne pour les mots longs */
    overflow-wrap: break-word;
    /* Alternative moderne à word-wrap */
    white-space: normal;
    /* S'assure que le texte peut s'enrouler */
    max-width: 100%;
    /* Empêche le dépassement de la largeur */
    box-sizing: border-box;
    /* Inclut padding dans la largeur calculée */
}

.vacation-notice.large {
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
    background: #fff4d4;
    border-radius: 4px;
    display: inline-block;
    /* Permet au conteneur de s'adapter au texte */
    width: 100%;
    /* Occupe toute la largeur disponible */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Optionnel: ajoute une ombre */
}

/* Styles admin */
.vacation-mode-section {
    background: #f6f7f7;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

.vacation-dates {
    margin-top: 15px;
}

.vacation-dates .date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vacation-message input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .store-hours-table-wrapper .store-hours-table {
        display: block;
        overflow-x: auto;
    }

    .store-status-message {
        font-size: 14px;
    }
}