/**
 * Business Hours Shortcode Styles
 * 
 * Styles for the business hours toggle and individual schedule shortcodes
 * 
 * @package FreyjaMedical
 * @since 1.0.0
 */

/* Collapsible Business Hours Widget */
.business-hours-toggle-widget {
    /* font-family: inherit; */
    /* background: white !important; */
    /* border-radius: 8px !important; */
    overflow: hidden !important;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; */
    max-width: 400px;
}

.hours-toggle-header {
    padding: 0px;
    background: transparent;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    border-bottom: none;
    transition: background-color 0.2s ease !important;
}

.hours-toggle-header:hover {
    /* background: #e9ecef !important; */
}

.hours-toggle-header.expanded {
    /* background: #007cba !important; */
    /* color: white !important; */
}

.today-hours {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333 !important;
}

.hours-toggle-header.expanded .today-hours {
    /* color: white !important; */
}

.toggle-arrow {
    font-size: 14px !important;
    color: #666 !important;
    transition: transform 0.3s ease !important;
}

.hours-toggle-header.expanded .toggle-arrow {
    /* color: white !important; */
}

.hours-toggle-content {
    padding: 0 !important;
    /* background: white !important; */
}

.hours-toggle-content .business-hours-title {
    padding: 15px 20px 0 20px !important;
    margin: 0 !important;
    font-size: 16px !important;
}

.hours-toggle-content .business-hours-table {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 15px 0 0 0 !important;
}

/* Business Hours Styles - Updated for better compatibility */

.business-hours-title {
    text-align: center !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
}

.business-hours-table {
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    border: none !important;
}

.business-hours-table .day-row {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background-color 0.2s ease !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.business-hours-table .day-row:last-child {
    border-bottom: none !important;
}

.business-hours-table .day-row:hover {
    /* background-color: #f9f9f9 !important; */
}

.business-hours-table .day-row.current-day {
    /* background-color: #e3f2fd !important; */
    /* font-weight: 600 !important; */
    position: relative !important;
}

.business-hours-table .day-name {
    padding: 10px !important;
    font-weight: 600 !important;
    color: #333 !important;
    width: 30% !important;
    font-size: 14px !important;
    border: none !important;
    text-align: left !important;
}

.business-hours-table .day-hours {
    padding: 10px !important;
    color: #666 !important;
    font-size: 14px !important;
    border: none !important;
    text-align: left !important;
}

.business-hours-table .day-row.current-day .day-name,
.business-hours-table .day-row.current-day .day-hours {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Legacy Toggle Styles (kept for backward compatibility) */
.business-hours-toggle-container {
    max-width: 400px !important;
    margin: 20px auto !important;
    font-family: inherit;
}

.hours-toggle-buttons {
    display: flex !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.hours-toggle-btn {
    flex: 1 !important;
    padding: 12px 20px !important;
    border: none !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.hours-toggle-btn:hover {
    background-color: #e0e0e0 !important;
}

.hours-toggle-btn.active {
    background-color: #007cba !important;
    color: white !important;
}

.hours-toggle-btn:first-child {
    border-right: 1px solid #ddd !important;
}

.hours-schedule {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out !important;
}

.hours-schedule.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 480px) {
    .business-hours-container,
    .business-hours-toggle-container,
    .business-hours-toggle-widget {
        max-width: 100% !important;
        margin: 15px 0 !important;
    }
    
    .hours-toggle-btn {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .business-hours-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .business-hours-table .day-name,
    .business-hours-table .day-hours {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
    
    .business-hours-table .day-row.current-day::before {
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
    
    .hours-toggle-header {
        padding: 12px 15px !important;
    }
    
    .today-hours {
        font-size: 14px !important;
    }
    
    .toggle-arrow {
        font-size: 12px !important;
    }
}