/* Business Hours Manager - Frontend Styles */

@keyframes bhm-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bhm-header {
    text-align: center;
    margin-bottom: 20px;
}

.bhm-business-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.2;
}


.bhm-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
    border-style: solid;
}

.bhm-status-indicator .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
    width: 16px;
    height: auto;
    transition: all 0.3s ease;
}

.bhm-status-indicator .elementor-icon i,
.bhm-status-indicator .elementor-icon svg {
    width: 1em;
    height: auto;
    font-size: inherit;
    display: inline-block;
    vertical-align: middle;
}

/* Icon base styles with maximum specificity */
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator .elementor-icon {
    height: auto;
    position: relative;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Ensure SVG icons scale properly */
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator .elementor-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}

/* Open status icon styles */
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator.bhm-status-open .elementor-icon {
    color: #27ae60;
}
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator.bhm-status-open .elementor-icon.icon-color-open {
    color: inherit;
}

/* Closed status icon styles */
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator.bhm-status-closed .elementor-icon {
    color: #e74c3c;
}
.elementor .elementor-element .elementor-widget-container .bhm-status-indicator.bhm-status-closed .elementor-icon.icon-color-closed {
    color: inherit;
}
    border-style: solid;
}

/* Basic icon styles that won't interfere with Elementor controls */
.bhm-status-indicator i.elementor-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure Elementor icon controls work for size and color */


.bhm-status-align-left {
    justify-content: flex-start;
    text-align: left;
}
.bhm-status-align-center {
    justify-content: center;
    text-align: center;
}
.bhm-status-align-right {
    justify-content: flex-end;
    text-align: right;
}








.bhm-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: bhm-pulse 2s infinite;
    /* No default background, allow Elementor controls to apply */
}







@keyframes bhm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.bhm-current-time {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.bhm-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.bhm-schedule-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bhm-schedule-row:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(2px);
}

.bhm-schedule-row:last-child {
    border-bottom: none;
}

.bhm-schedule-row.today {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
    border-radius: 0 4px 4px 0;
}

.bhm-schedule-row.today:hover {
    background: rgba(102, 126, 234, 0.12);
}

.bhm-day-cell, .bhm-hours-cell {
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
}

.bhm-day-cell {
    font-weight: 600;
    color: #2c3e50;
    width: 100px;
    font-size: 14px;
    position: relative;
}

.bhm-schedule-row.today .bhm-day-cell {
    color: #667eea;
}

.bhm-hours-cell {
    color: #555;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

.bhm-time-slot {
    display: block;
    margin: 2px 0;
    padding: 2px 0;
}

.bhm-closed-day {
    color: #e74c3c !important;
    font-style: italic;
    font-weight: 500;
}

.bhm-next-opening {
    margin-top: 16px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Elementor specific styles */
.elementor-widget-business_hours .bhm-schedule-container {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bhm-schedule-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .bhm-business-name {
        font-size: 20px;
    }
    
    .bhm-day-cell, .bhm-hours-cell {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .bhm-schedule-row.today .bhm-day-cell::after {
        display: none;
    }
    
    .bhm-status-indicator {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .bhm-current-time {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .bhm-next-opening {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .bhm-schedule-container {
        padding: 16px;
    }
    
    .bhm-business-name {
        font-size: 18px;
    }
    
    .bhm-day-cell {
        width: 80px;
        font-size: 12px;
    }
    
    .bhm-hours-cell {
        font-size: 12px;
    }
    
    .bhm-time-slot {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .bhm-schedule-container {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white !important;
        backdrop-filter: none;
    }
    
    .bhm-schedule-container::before {
        display: none;
    }
    
    .bhm-status-dot {
        animation: none;
    }
    
    .bhm-current-time {
        display: none;
    }
}