/* Smart Restaurant Hours - Public Styles */

/* Status Text */
.srh-status-text {
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Status Image */
.srh-status-image {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Store Hours */
.srh-store-hours {
    margin: 20px 0;
}

/* Schedule Table */
.srh-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.srh-schedule-table th,
.srh-schedule-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.srh-schedule-table th {
    font-weight: bold;
    background: #f9f9f9;
}

.srh-schedule-table tr:last-child td {
    border-bottom: none;
}

/* Schedule List */
.srh-schedule-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.srh-schedule-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.srh-schedule-list li:last-child {
    border-bottom: none;
}

/* Schedule Inline */
.srh-schedule-inline {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

/* Footer Banner */
.srh-footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.srh-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.srh-banner-message {
    font-weight: 500;
}

.srh-countdown {
    font-weight: bold;
}

.srh-countdown-time {
    display: inline-block;
    min-width: 100px;
}

.srh-banner-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.srh-banner-dismiss:hover {
    opacity: 1;
}

/* Hidden state for dismissed banner */
.srh-footer-banner.srh-hidden {
    display: none;
}

/* WooCommerce Integration */
.srh-woo-notice {
    margin-bottom: 20px;
}

.woocommerce-checkout .srh-woo-notice {
    margin-top: 20px;
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
    .srh-footer-banner {
        padding: 10px;
    }
    
    .srh-banner-content {
        font-size: 14px;
    }
    
    .srh-schedule-table {
        font-size: 14px;
    }
    
    .srh-schedule-table th,
    .srh-schedule-table td {
        padding: 8px 5px;
    }
    
    .srh-schedule-inline {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .srh-footer-banner,
    .srh-banner-dismiss {
        display: none !important;
    }
}