/**
 * Riedmair Branch Hours - Frontend Styles
 */

/* General */
.rbh-error {
    color: #dc3232;
    padding: 10px;
    background: #ffeaea;
    border-left: 4px solid #dc3232;
    margin: 10px 0;
}

.rbh-notice {
    color: #666;
    padding: 10px;
    background: #f5f5f5;
    border-left: 4px solid #999;
    margin: 10px 0;
}

/* Opening Hours Table */
.rbh-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.rbh-hours-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.rbh-hours-table tr:last-child td {
    border-bottom: none;
}

.rbh-hours-table .rbh-day-name {
    width: 40%;
}

.rbh-hours-table .rbh-time {
    text-align: right;
}

.rbh-hours-table tr.rbh-today {
    background: #f8f4ed;
}

.rbh-hours-table tr.rbh-today .rbh-day-name {
    color: #5C462B;
}

/* Compact Hours */
.rbh-hours-compact {
    font-size: 14px;
    line-height: 1.8;
}

.rbh-hours-compact .rbh-day {
    padding: 4px 0;
}

.rbh-hours-compact .rbh-day.rbh-today {
    font-weight: bold;
    color: #5C462B;
}

.rbh-hours-compact .rbh-day-name {
    font-weight: 600;
}

/* Status Badge */
.rbh-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 5px 0;
}

.rbh-status.rbh-open {
    background: #d4edda;
    color: #155724;
}

.rbh-status.rbh-closed {
    background: #f8d7da;
    color: #721c24;
}

/* Closed text in table */
.rbh-time.rbh-closed,
span.rbh-closed {
    color: #dc3232;
}

/* Branch Cards */
.rbh-branches {
    display: grid;
    gap: 20px;
}

.rbh-branches-card {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.rbh-branch-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rbh-branch-card h3.rbh-branch-name {
    margin-top: 0;
    margin-bottom: 10px;
    color: #5C462B;
    font-size: 1.3em;
}

.rbh-branch-card .rbh-address,
.rbh-branch-card .rbh-phone,
.rbh-branch-card .rbh-email {
    margin: 8px 0;
    color: #666;
}

.rbh-branch-card .rbh-icon {
    margin-right: 5px;
}

.rbh-branch-card a {
    color: #5C462B;
    text-decoration: none;
}

.rbh-branch-card a:hover {
    text-decoration: underline;
}

/* Hours Wrapper */
.rbh-hours-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rbh-hours-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

/* Branch Info */
.rbh-branch-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.rbh-branch-info.rbh-style-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rbh-branch-info h3.rbh-branch-name {
    margin-top: 0;
    color: #5C462B;
}

.rbh-info-content {
    margin: 15px 0;
}

.rbh-info-content > div {
    margin: 8px 0;
}

/* Today Hours */
.rbh-today-hours {
    display: inline-block;
    padding: 5px 10px;
    background: #f8f4ed;
    border-radius: 4px;
    font-size: 14px;
}

/* ================================
   ELEMENTOR WIDGET STYLES
   ================================ */

/* Widget Container */
.rbh-widget-container {
    font-family: inherit;
}

.rbh-widget-placeholder {
    padding: 30px;
    text-align: center;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
}

/* Widget Title */
.rbh-widget-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: #5C462B;
}

.rbh-widget-title.rbh-underlined {
    border-bottom: 1px solid currentColor;
    display: inline-block;
}

/* Hours List Container */
.rbh-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hours Row - Flexbox Layout */
.rbh-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 30px;
    line-height: 1.6;
}

.rbh-hours-row:last-child {
    margin-bottom: 0;
}

/* Day Name Styling */
.rbh-hours-row .rbh-day-name {
    font-weight: 400;
    flex-shrink: 0;
    min-width: 60px;
    color: #5C462B;
}

/* Time Styling */
.rbh-hours-row .rbh-time {
    text-align: right;
    white-space: nowrap;
    color: #5C462B;
}

/* Holiday Notice */
.rbh-holiday-notice {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    font-style: italic;
    line-height: 1.5;
    color: #5C462B;
}

/* Shortcode Hours List */
.rbh-shortcode-hours {
    color: #5C462B;
}

.rbh-shortcode-hours .rbh-day-name,
.rbh-shortcode-hours .rbh-time {
    color: inherit;
}

/* Branch Info Widget */
.rbh-branch-info-widget .rbh-branch-name {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rbh-branch-info-widget .rbh-info-content {
    margin-bottom: 20px;
}

.rbh-branch-info-widget .rbh-info-row {
    margin-bottom: 5px;
    line-height: 1.6;
}

.rbh-branch-info-widget .rbh-info-label {
    font-weight: 600;
}

.rbh-branch-info-widget .rbh-hours-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.rbh-branch-info-widget a {
    text-decoration: none;
}

.rbh-branch-info-widget a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .rbh-branches-card {
        grid-template-columns: 1fr;
    }
    
    .rbh-hours-table .rbh-day-name {
        width: 45%;
    }
    
    .rbh-hours-row {
        gap: 15px;
    }
    
    .rbh-day-name {
        min-width: 60px;
    }
}

