/**
 * Bloom Second Row Navigation - Styles
 * Ascend-style header row with store status, delivery/pickup info, and user account
 */

/* ========================================
   Navigation Container
======================================== */
.bsrn-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   Left Side - Store Status & Services
======================================== */
.bsrn-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bsrn-info-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    background: transparent;
    border: 2px solid #6b7280;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.bsrn-info-trigger:hover {
    border-color: #374151 !important;
    color: #374151 !important;
    background: #f3f4f6 !important;
}

.bsrn-info-icon {
    width: 18px;
    height: 18px;
}

.bsrn-store-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsrn-status-badge {
    font-size: 12px;
}

.bsrn-status-open {
    background: #dcfce7;
    color: #166534;
}



.bsrn-closed-message {
    color: #6b7280;
    font-size: 13px;
}

.bsrn-service-type {
    color: #374151;
    font-weight: 500;
    padding-left: 16px;
    border-left: 1px solid #d1d5db;
}

/* ========================================
   Right Side - User Info & Loyalty
======================================== */
.bsrn-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menu Type Dropdown */
.bsrn-menu-dropdown {
    position: relative;
}

.bsrn-menu-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    padding: 6px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: none !important;
    outline: none !important;
       flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
}

.bsrn-menu-trigger:hover,
.bsrn-menu-trigger:focus {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.bsrn-menu-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;line-height:normal;width:100%;
}

.bsrn-menu-current {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;line-height:normal;
}

.bsrn-dropdown-arrow {
    width: 12px;
    height: 12px;
    color: #6b7280 !important;
    transition: transform 0.2s ease;
}

.bsrn-menu-trigger[aria-expanded="true"] .bsrn-dropdown-arrow {
    transform: rotate(180deg);
}

.bsrn-menu-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 9999;
    border: 1px solid #e5e7eb !important;
}

.bsrn-menu-options[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bsrn-menu-option {
    display: block !important;
    width: 100% !important;
    padding: 10px 16px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: none !important;
    outline: none !important;
}

.bsrn-menu-option:hover,
.bsrn-menu-option:focus {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.bsrn-menu-option.bsrn-menu-active {
    font-weight: 600 !important;
    color: #111827 !important;
    background: #f9fafb !important;
}

.bsrn-user-info,
.bsrn-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bsrn-user-info:hover,
.bsrn-login-btn:hover {
    color: #111827;
}

.bsrn-user-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.bsrn-loyalty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
}

.bsrn-points-icon {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.bsrn-points {
    font-weight: 500;
}

/* Loyalty prompt for non-logged in users */
.bsrn-loyalty-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bsrn-loyalty-cta {
    color: #374151;
    font-size: 13px;
}

.bsrn-loyalty-tiers {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bsrn-tier {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.bsrn-tier-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
}

.bsrn-tier-1 .bsrn-tier-icon {
    background: #fce7f3;
    color: #be185d;
}

.bsrn-tier-2 .bsrn-tier-icon {
    background: #fae8ff;
    color: #a21caf;
}

.bsrn-tier-3 .bsrn-tier-icon {
    background: #ddd6fe;
    color: #7c3aed;
}

.bsrn-tier-4 .bsrn-tier-icon {
    background: #581c87;
    color: #fff;
}

/* ========================================
   Modal Styles
======================================== */
.bsrn-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bsrn-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.bsrn-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bsrn-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 1000px !important;
    width: 100% !important;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.bsrn-modal[aria-hidden="false"] .bsrn-modal-container {
    transform: translateY(0);
}

.bsrn-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.bsrn-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.bsrn-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 24px;
}

.bsrn-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

/* Left Column - Today & Store Info */
.bsrn-modal-left {
    padding-right: 24px;
    border-right: 1px solid #e5e7eb;
}

.bsrn-today-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.bsrn-today-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bsrn-today-row:last-child {
    margin-bottom: 0;
}

.bsrn-label {
    font-weight: 500;
    color: #374151;
    min-width: 70px;
}

.bsrn-value {
    color: #6b7280;
}



.bsrn-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.bsrn-info-item:last-child {
    margin-bottom: 0;
}

.bsrn-info-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.bsrn-info-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bsrn-info-item-text strong {
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsrn-info-item-text span {
    font-size: 13px;
    color: #6b7280;
}

/* Middle Column - Ordering Hours */
.bsrn-modal-middle {
    padding-right: 24px;
    border-right: 1px solid #e5e7eb;
}

.bsrn-hours-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.bsrn-tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.bsrn-tab-btn:hover {
    color: #374151;
}

.bsrn-tab-btn.bsrn-tab-active {
    color: #111827;
}

.bsrn-tab-btn.bsrn-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111827;
}

.bsrn-hours-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 16px 0;
}

.bsrn-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bsrn-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.bsrn-hours-today {
    background: #f3f4f6;
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: 4px;
}

.bsrn-day-name {
    font-weight: 500;
    color: #374151;
}

.bsrn-day-hours {
    color: #6b7280;
}

/* Right Column - Location */
.bsrn-modal-right {}

.bsrn-location-map {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #e5e7eb;
}

.bsrn-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsrn-address {
    font-size: 14px;
    color: #374151;
    margin: 0 0 16px 0;
}

.bsrn-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #111827;
    border-radius: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bsrn-directions-btn:hover {
    background: #111827;
    color: #fff;
}
.bsrn-store-status {flex-direction:column;align-items:flex-start;gap:0;}
/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 768px) {
    .bsrn-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .bsrn-left,
    .bsrn-right {
        width: 100%;
        justify-content: center;
    }

    .bsrn-loyalty-prompt {
        /*flex-direction: column;*/
        gap: 8px;
    }

    .bsrn-modal-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bsrn-modal-left,
    .bsrn-modal-middle {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}