/**
 * Entellra Public Stylesheet
 */

:root {
    --entellra-primary: #111827;
    --entellra-primary-hover: #000000;
    --entellra-bg: #f8fafc;
    --entellra-card-bg: #ffffff;
    --entellra-text: #1e293b;
    --entellra-text-muted: #64748b;
    --entellra-border: #e2e8f0;
    --entellra-radius: 12px;
    --entellra-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --entellra-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.entellra-menu-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--entellra-text);
    position: relative;
    margin: 20px 0;
}

/* Restaurant Header Banner */
.entellra-restaurant-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--entellra-card-bg);
    border: 1px solid var(--entellra-border);
    border-radius: var(--entellra-radius);
    padding: 20px;
    box-shadow: var(--entellra-shadow);
    margin-bottom: 24px;
}

.entellra-restaurant-logo {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--entellra-border);
}

.entellra-restaurant-title {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--entellra-text);
}

.entellra-restaurant-meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--entellra-text-muted);
}

.meta-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.meta-badge.status-open {
    background: #ecfdf5;
    color: #059669;
}

.meta-badge.status-closed {
    background: #fef2f2;
    color: #dc2626;
}

/* Category Navigation & Search */
.entellra-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.entellra-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
    scrollbar-width: none;
}

.entellra-category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: var(--entellra-card-bg);
    border: 1px solid var(--entellra-border);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--entellra-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-tab:hover {
    border-color: var(--entellra-primary);
    color: var(--entellra-primary);
}

.category-tab.active {
    background: var(--entellra-primary);
    color: #ffffff;
    border-color: var(--entellra-primary);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.entellra-search-wrapper input {
    border: 1px solid var(--entellra-border);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    background: var(--entellra-card-bg);
    min-width: 220px;
}

.entellra-search-wrapper input:focus {
    border-color: var(--entellra-primary);
}

/* Products Grid */
.entellra-items-grid {
    display: grid;
    gap: 20px;
}

.entellra-items-grid.cols-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.entellra-items-grid.cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.entellra-items-grid.cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.entellra-item-card {
    background: var(--entellra-card-bg);
    border: 1px solid var(--entellra-border);
    border-radius: var(--entellra-radius);
    overflow: hidden;
    box-shadow: var(--entellra-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entellra-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--entellra-shadow-hover);
}

.item-image-wrapper {
    width: 100%;
    height: 170px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-image-wrapper img.is-svg-icon {
    object-fit: contain;
    width: 55px;
    height: 55px;
    opacity: 0.55;
}

.entellra-item-card:hover .item-image-wrapper img:not(.is-svg-icon) {
    transform: scale(1.04);
}

.item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #94a3b8;
    background: #f8fafc;
}

.item-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--entellra-text);
}

.item-description {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: var(--entellra-text-muted);
    line-height: 1.4;
    flex: 1;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--entellra-primary);
}

.entellra-btn {
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add {
    background: #f1f5f9;
    color: var(--entellra-text);
}

.btn-add:hover {
    background: var(--entellra-primary);
    color: #ffffff;
}

.btn-customize {
    background: var(--entellra-primary);
    color: #ffffff;
}

.btn-customize:hover {
    background: var(--entellra-primary-hover);
}

/* Floating Cart Button */
.entellra-floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--entellra-primary);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 999990 !important;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.entellra-floating-cart-btn:hover {
    transform: scale(1.05);
}

.cart-badge {
    background: #ffffff;
    color: var(--entellra-primary);
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 800;
}

/* Cart Drawer */
.entellra-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998 !important;
}

.entellra-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.entellra-cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--entellra-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--entellra-text-muted);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty-message {
    text-align: center;
    color: var(--entellra-text-muted);
    margin-top: 60px;
}

.cart-empty-message span {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--entellra-border);
}

.cart-item-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.cart-item-modifiers {
    font-size: 11px;
    color: var(--entellra-text-muted);
    margin: 0 0 6px 0;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--entellra-border);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--entellra-border);
    background: #f8fafc;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-summary-line.total-line {
    font-size: 18px;
    font-weight: 700;
    color: var(--entellra-text);
    margin-bottom: 14px;
}

.btn-checkout {
    width: 100%;
    background: var(--entellra-primary);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--entellra-radius);
    font-size: 16px;
}

/* Modal Windows (Item Options, Checkout, Success) */
.entellra-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.entellra-modal-content {
    background: #ffffff;
    border-radius: var(--entellra-radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.entellra-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--entellra-text-muted);
}

/* Checkout Form */
.checkout-header h3 {
    margin: 0 0 4px 0;
}

.order-type-pills {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.order-type-pill {
    flex: 1;
    text-align: center;
    border: 1px solid var(--entellra-border);
    border-radius: 8px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.order-type-pill input {
    display: none;
}

.order-type-pill.active {
    border-color: var(--entellra-primary);
    background: #fff1f2;
    color: var(--entellra-primary);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--entellra-border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.col-half {
    flex: 1;
}

.payment-method-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.payment-method-icon {
    font-size: 24px;
}

.payment-method-text p {
    margin: 0;
    font-size: 12px;
    color: #166534;
}

.btn-submit-order {
    width: 100%;
    background: var(--entellra-primary);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--entellra-radius);
    font-size: 16px;
}

.entellra-error-msg {
    color: #dc2626;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 36px 24px;
}

.success-icon {
    font-size: 54px;
    margin-bottom: 12px;
}

.order-number-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 16px 0 24px 0;
}

/* ==========================================================================
   Categories Showcase Widget
   ========================================================================== */
.entellra-categories-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.entellra-cat-card {
    background: #ffffff;
    border: 1px solid var(--entellra-border);
    border-radius: var(--entellra-radius);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--entellra-text);
    box-shadow: var(--entellra-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entellra-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--entellra-shadow-hover);
    color: var(--entellra-primary);
}

.cat-image-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.cat-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-icon-fallback {
    font-size: 32px;
}

.cat-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   Featured Dish / Special Offer Widget
   ========================================================================== */
.entellra-featured-dish-wrap {
    margin: 20px 0;
}

.entellra-featured-card {
    background: #ffffff;
    border: 1px solid var(--entellra-border);
    border-radius: var(--entellra-radius);
    overflow: hidden;
    box-shadow: var(--entellra-shadow);
    display: flex;
}

.entellra-featured-card.layout-horizontal {
    flex-direction: row;
}

.entellra-featured-card.layout-vertical {
    flex-direction: column;
}

.entellra-featured-card.layout-horizontal .featured-image-wrapper {
    width: 45%;
    min-height: 240px;
}

.entellra-featured-card.layout-vertical .featured-image-wrapper {
    width: 100%;
    height: 220px;
}

.featured-image-wrapper {
    position: relative;
    background: #f1f5f9;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-promo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--entellra-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.featured-content-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.featured-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.featured-desc {
    font-size: 14px;
    color: var(--entellra-text-muted);
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.featured-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.featured-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--entellra-primary);
}

/* ==========================================================================
   Header Mini Cart Widget
   ========================================================================== */
.entellra-header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--entellra-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.entellra-header-cart-btn:hover {
    transform: scale(1.04);
}

.header-cart-icon {
    font-size: 16px;
}

.header-cart-badge {
    background: #ffffff;
    color: var(--entellra-primary);
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 800;
}

.header-cart-subtotal {
    margin-left: 4px;
    font-weight: 700;
}


/* ==========================================================================
   Multi-Branch Switcher Bar & Standalone Selector
   ========================================================================== */
.entellra-branch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #f8fafc;
    padding: 12px 20px;
    border-radius: var(--entellra-radius, 12px);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.branch-bar-label {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.entellra-branch-select {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.entellra-branch-select:hover,
.entellra-branch-select:focus {
    border-color: var(--entellra-primary, #e11d48);
}

.entellra-branch-standalone-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 10px;
}

.branch-selector-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* ==========================================================================
   Operating Hours & Timing Closed Banner
   ========================================================================== */
.entellra-timing-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--entellra-radius, 12px);
    margin-bottom: 20px;
}

.entellra-timing-banner.closed-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.timing-icon {
    font-size: 22px;
    line-height: 1;
}

.timing-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: #7c2d12;
}

.timing-text p {
    margin: 0;
    font-size: 13px;
    color: #9a3412;
}

/* ==========================================================================
   Dietary Icons & Badges (Veg, Non-Veg, Egg)
   ========================================================================== */
.item-dietary-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.dietary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border-width: 1.5px;
    border-style: solid;
}

.dietary-icon.type-veg {
    border-color: #16a34a;
}
.dietary-icon.type-veg .dietary-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.dietary-icon.type-non-veg {
    border-color: #dc2626;
}
.dietary-icon.type-non-veg .dietary-triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid #dc2626;
}

.dietary-icon.type-egg {
    border-color: #d97706;
}
.dietary-icon.type-egg .dietary-egg-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
}

.item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.item-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.dietary-tag {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* ==========================================================================
   Veg-Only Filter Switch in Navigation Bar
   ========================================================================== */
.entellra-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-wrap: wrap;
}

.entellra-veg-filter-wrapper {
    display: flex;
    align-items: center;
}

.entellra-veg-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    user-select: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.entellra-veg-switch:hover {
    border-color: #16a34a;
}

.entellra-veg-switch input {
    cursor: pointer;
    accent-color: #16a34a;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Required vs Optional Modifier Badges
   ========================================================================== */
.modifier-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.modifier-badge.required {
    background: #fee2e2;
    color: #b91c1c;
}

.modifier-badge.optional {
    background: #f1f5f9;
    color: #64748b;
}

.modifier-hint {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

.modifier-group-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

/* ==========================================================================
   Coupons & Promo Codes in Cart Drawer
   ========================================================================== */
.cart-coupon-container {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.cart-coupon-input-row {
    display: flex;
    gap: 8px;
}

.cart-coupon-input-row input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    text-transform: uppercase;
}

.btn-apply-coupon {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-coupon:hover {
    background: var(--entellra-primary, #e11d48);
}

.cart-coupon-active-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #dcfce7;
    color: #15803d;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.coupon-remove-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.cart-coupon-message {
    font-size: 12px;
    margin-top: 6px;
}
.cart-coupon-message.success { color: #16a34a; }
.cart-coupon-message.error { color: #dc2626; }

.cart-summary-line.discount-line {
    color: #16a34a;
    font-weight: 600;
}

/* ==========================================================================
   Pre-Order Schedule in Checkout Modal
   ========================================================================== */
.pre-order-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.entellra-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.entellra-checkbox-container input {
    cursor: pointer;
    accent-color: var(--entellra-primary, #e11d48);
    width: 16px;
    height: 16px;
}

.form-help-text {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* ==========================================================================
   Table Reservation Widget
   ========================================================================== */
.entellra-reservation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--entellra-radius, 14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.reservation-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.reservation-icon {
    font-size: 38px;
    margin-bottom: 8px;
}

.reservation-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.reservation-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.reservation-slots-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    min-height: 42px;
}

.res-slot-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.res-slot-pill:hover {
    border-color: var(--entellra-primary, #e11d48);
    color: var(--entellra-primary, #e11d48);
}

.res-slot-pill.active {
    background: var(--entellra-primary, #e11d48);
    border-color: var(--entellra-primary, #e11d48);
    color: #ffffff;
}

.res-slots-loading,
.res-no-slots {
    font-size: 13px;
    color: #64748b;
    padding: 6px 0;
}

.btn-submit-reservation {
    width: 100%;
    background: var(--entellra-primary, #e11d48);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

.btn-submit-reservation:hover {
    opacity: 0.92;
}

.reservation-success-box {
    text-align: center;
    padding: 20px 10px;
}

.res-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.reservation-success-box h4 {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.reservation-success-box p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.res-details-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 20px;
    color: #334155;
}

/* ==========================================================================
   UPGRADED DEDICATED ELEMENTOR WIDGETS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Branch Switcher Widget (Ultra-Flexible: Header, Footer, Sidebar, Grid)
   -------------------------------------------------------------------------- */
.entellra-branch-widget {
    margin: 12px 0;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
}

.entellra-branch-widget *, 
.entellra-branch-widget *::before, 
.entellra-branch-widget *::after {
    box-sizing: border-box;
}

/* --- Display Modes --- */
.entellra-branch-widget.branch-display-inline {
    display: inline-flex;
    vertical-align: middle;
    width: auto;
    max-width: 100%;
}

.entellra-branch-widget.branch-display-block {
    display: block;
    width: 100%;
}

/* --- Alignment Controls --- */
.entellra-branch-widget.branch-align-left {
    text-align: left;
    margin-right: auto;
}

.entellra-branch-widget.branch-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.entellra-branch-widget.branch-align-center .branch-widget-header,
.entellra-branch-widget.branch-align-center .branch-pills-list,
.entellra-branch-widget.branch-align-center .branch-select-container,
.entellra-branch-widget.branch-align-center .branch-popover-container {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.entellra-branch-widget.branch-align-right {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
}
.entellra-branch-widget.branch-align-right .branch-widget-header,
.entellra-branch-widget.branch-align-right .branch-pills-list,
.entellra-branch-widget.branch-align-right .branch-select-container,
.entellra-branch-widget.branch-align-right .branch-popover-container {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
}
.entellra-branch-widget.branch-align-right .branch-popover-menu {
    left: auto;
    right: 0;
}

.entellra-branch-widget.branch-align-justify {
    width: 100%;
}
.entellra-branch-widget.branch-align-justify .branch-select-input-wrap,
.entellra-branch-widget.branch-align-justify .branch-popover-trigger {
    width: 100%;
    max-width: 100%;
}

/* --- Title Positions --- */
.entellra-branch-widget.title-pos-none .branch-widget-header {
    display: none !important;
}

.entellra-branch-widget.title-pos-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.entellra-branch-widget.title-pos-inline .branch-widget-header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.entellra-branch-widget.title-pos-inline .branch-widget-body {
    flex-grow: 1;
}

.branch-widget-header {
    margin-bottom: 12px;
}

.branch-widget-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.branch-widget-icon {
    display: inline-flex;
    align-items: center;
    color: var(--entellra-primary, #e11d48);
}

.branch-widget-subtitle {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

/* --- Size Density Presets --- */
.entellra-branch-widget.branch-size-compact {
    margin: 4px 0;
}
.entellra-branch-widget.branch-size-compact .branch-widget-title {
    font-size: 13.5px;
}
.entellra-branch-widget.branch-size-compact .branch-popover-trigger {
    padding: 5px 12px;
    font-size: 12.5px;
}
.entellra-branch-widget.branch-size-compact .branch-pill-btn {
    padding: 6px 13px;
    font-size: 12.5px;
}
.entellra-branch-widget.branch-size-compact .branch-select-input-wrap {
    padding: 0 10px 0 8px;
}
.entellra-branch-widget.branch-size-compact .entellra-branch-select {
    padding: 6px 20px 6px 0;
    font-size: 12.5px;
}

.entellra-branch-widget.branch-size-large .branch-widget-title {
    font-size: 20px;
}
.entellra-branch-widget.branch-size-large .branch-popover-trigger {
    padding: 12px 24px;
    font-size: 16px;
}
.entellra-branch-widget.branch-size-large .branch-pill-btn {
    padding: 12px 24px;
    font-size: 16px;
}
.entellra-branch-widget.branch-size-large .entellra-branch-select {
    padding: 14px 28px 14px 0;
    font-size: 16px;
}

/* ==========================================================================
   LAYOUT 1: COMPACT FLOATING POPOVER (UberEats / Deliveroo Header Badge)
   ========================================================================== */
.branch-popover-container {
    position: relative;
    display: inline-block;
}

.branch-popover-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    outline: none;
    white-space: nowrap;
}

.branch-popover-trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.branch-popover-trigger.is-open,
.branch-popover-trigger:focus-visible {
    border-color: var(--entellra-primary, #e11d48);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.popover-trigger-icon {
    font-size: 14px;
    user-select: none;
}

.popover-trigger-name {
    font-weight: 700;
    color: #0f172a;
}

.popover-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.popover-status-dot.is-open {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.popover-status-dot.is-closed {
    background-color: #ef4444;
}

.popover-trigger-chevron {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.22s ease;
}

.branch-popover-trigger.is-open .popover-trigger-chevron {
    transform: rotate(180deg);
}

/* Floating Menu */
.branch-popover-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    min-width: 290px;
    max-width: 380px;
    width: max-content;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.branch-popover-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.branch-popover-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.branch-popover-menu-header .menu-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.branch-popover-menu-header .menu-count {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 7px;
    border-radius: 9999px;
}

.branch-popover-items-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}

.branch-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.branch-popover-item:hover,
.branch-popover-item:focus {
    background: #f8fafc;
    outline: none;
}

.branch-popover-item.active {
    background: #fff1f2;
}

.status-dot-mini {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot-mini.open { background: #10b981; }
.status-dot-mini.closed { background: #ef4444; }

.popover-item-info {
    flex-grow: 1;
    min-width: 0;
}

.popover-item-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popover-item-name {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.branch-popover-item.active .popover-item-name {
    color: var(--entellra-primary, #e11d48);
}

.popover-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.popover-badge.open { background: #ecfdf5; color: #059669; }
.popover-badge.closed { background: #fef2f2; color: #dc2626; }

.popover-item-addr,
.popover-item-phone {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    white-space: normal;
}

.popover-item-check {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.popover-item-check .check-mark {
    display: none;
    color: var(--entellra-primary, #e11d48);
    font-weight: 800;
    font-size: 14px;
}

.popover-item-check .check-mark.visible {
    display: inline-block;
}

/* ==========================================================================
   LAYOUT 2: STACKED VERTICAL LIST (Ideal for Sidebars & Footers)
   ========================================================================== */
.branch-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.branch-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.branch-list-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.branch-list-item.active {
    background: #fff1f2;
    border-color: var(--entellra-primary, #e11d48);
    box-shadow: 0 0 0 1px var(--entellra-primary, #e11d48);
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}

.list-radio-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    flex-shrink: 0;
    transition: all 0.15s;
}

.list-radio-indicator.checked {
    border-color: var(--entellra-primary, #e11d48);
    background: var(--entellra-primary, #e11d48);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.list-item-content {
    flex-grow: 1;
    min-width: 0;
}

.list-item-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.branch-list-item.active .list-item-title {
    color: var(--entellra-primary, #e11d48);
}

.list-item-addr,
.list-item-phone {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.list-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.list-status-badge.open { background: #ecfdf5; color: #059669; }
.list-status-badge.closed { background: #fef2f2; color: #dc2626; }

.list-active-check {
    color: var(--entellra-primary, #e11d48);
    font-weight: 800;
    font-size: 15px;
}

/* ==========================================================================
   LAYOUT 3: MINIMAL INLINE SELECT
   ========================================================================== */
.branch-minimal-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.branch-mini-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.branch-select-minimal {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    padding: 4px 18px 4px 2px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.branch-mini-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   LAYOUT 4: INTERACTIVE PILLS / TABS
   ========================================================================== */
.branch-pills-list {
    display: flex;
    gap: 10px;
}

.branch-pills-list.pill-dir-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.branch-pills-list.pill-dir-column {
    flex-direction: column;
    align-items: stretch;
}
.branch-pills-list.pill-dir-column .branch-pill-btn {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
}

.branch-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
}

.branch-pill-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.branch-pill-btn.active {
    background: var(--entellra-primary, #e11d48) !important;
    color: #ffffff !important;
    border-color: var(--entellra-primary, #e11d48) !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28) !important;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pill-dot.is-open {
    background-color: #10b981;
}

.pill-dot.is-closed {
    background-color: #ef4444;
}

.branch-pill-btn.active .pill-dot {
    background-color: #ffffff;
}

.branch-addr {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.pill-check-icon {
    font-size: 12px;
    font-weight: 800;
    margin-left: 2px;
}

/* ==========================================================================
   LAYOUT 5: MULTI-BRANCH CARDS GRID
   ========================================================================== */
.branch-cards-grid {
    display: grid;
    gap: 18px;
    width: 100%;
}

.branch-cards-grid.branch-cols-1 { grid-template-columns: 1fr; }
.branch-cards-grid.branch-cols-2 { grid-template-columns: repeat(2, 1fr); }
.branch-cards-grid.branch-cols-3 { grid-template-columns: repeat(3, 1fr); }
.branch-cards-grid.branch-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .branch-cards-grid.branch-cols-3,
    .branch-cards-grid.branch-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .branch-cards-grid.branch-cols-2,
    .branch-cards-grid.branch-cols-3,
    .branch-cards-grid.branch-cols-4 {
        grid-template-columns: 1fr;
    }
}

.branch-card-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.branch-card-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.branch-card-item.active {
    border-color: var(--entellra-primary, #e11d48) !important;
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--entellra-primary, #e11d48), 0 10px 25px rgba(225, 29, 72, 0.12) !important;
}

.branch-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.branch-card-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.branch-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.branch-status-pill.open {
    background: #ecfdf5;
    color: #059669;
}

.branch-status-pill.closed {
    background: #fef2f2;
    color: #dc2626;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.branch-status-pill.open .status-pulse-dot {
    animation: entellraLivePulse 1.8s infinite;
}

.branch-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--entellra-primary, #e11d48);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.branch-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.branch-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.branch-info-row .info-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.branch-info-row .info-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.branch-info-row .info-link:hover {
    color: var(--entellra-primary, #e11d48);
}

.branch-card-footer {
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.branch-select-action-btn {
    width: 100%;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.branch-select-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.branch-select-action-btn.is-selected {
    background: var(--entellra-primary, #e11d48);
    color: #ffffff;
    border-color: var(--entellra-primary, #e11d48);
}

/* ==========================================================================
   LAYOUT 6: PREMIUM CUSTOM DROPDOWN SELECTOR
   ========================================================================== */
.branch-select-container {
    width: 100%;
}

.branch-select-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 2px 14px 2px 12px;
    max-width: 360px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.branch-select-input-wrap:focus-within {
    border-color: var(--entellra-primary, #e11d48);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.branch-select-icon {
    font-size: 16px;
    margin-right: 8px;
    user-select: none;
}

.entellra-branch-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    padding: 10px 24px 10px 0;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.branch-select-chevron {
    position: absolute;
    right: 14px;
    pointer-events: none;
    font-size: 12px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   2. Operating Hours Widget (Card, Table, Banner)
   -------------------------------------------------------------------------- */
.entellra-hours-widget {
    margin: 16px 0;
    font-family: inherit;
    box-sizing: border-box;
}

.entellra-hours-widget *, 
.entellra-hours-widget *::before, 
.entellra-hours-widget *::after {
    box-sizing: border-box;
}

.hours-card-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hours-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}

.hours-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.hours-header-icon {
    font-size: 18px;
}

.hours-subtitle {
    margin: 4px 0 0 0;
    font-size: 13.5px;
    color: #64748b;
}

/* Live Status Badge */
.hours-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.hours-status-pill.status-open {
    background: #ecfdf5;
    color: #065f46;
}

.hours-status-pill.status-closed {
    background: #fef2f2;
    color: #991b1b;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.status-open .pulse-dot {
    background-color: #10b981;
    animation: entellraLivePulse 1.8s infinite;
}

.status-closed .pulse-dot {
    background-color: #ef4444;
}

@keyframes entellraLivePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Shifts List */
.hours-shifts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shift-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--entellra-primary, #e11d48);
}

.shift-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shift-icon {
    font-size: 16px;
}

.shift-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.shift-days {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.shift-time {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

/* Today Card Highlight */
.hours-today-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.today-sub {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.today-time {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}

.today-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #334155;
}

/* Weekly Schedule Table */
.hours-table-wrap {
    overflow-x: auto;
}

.hours-weekly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hours-weekly-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1.5px solid #e2e8f0;
}

.hours-weekly-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.day-schedule-row.is-current-day {
    background: #f0fdf4 !important;
    font-weight: 700;
}

.day-schedule-row.is-current-day td {
    border-bottom: 2px solid #86efac;
}

.today-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    background: #16a34a;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.04em;
}

/* Compact Banner Layout */
.hours-banner-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    flex-wrap: wrap;
    gap: 12px;
}

.hours-banner-strip .banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.banner-timing-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #f1f5f9;
}

.banner-clock-icon {
    font-size: 16px;
}

.banner-preorder-badge {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 9999px;
}

/* Pre-Order Notice Box */
.hours-preorder-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
}

.hours-preorder-notice .notice-icon {
    font-size: 20px;
    line-height: 1;
}

.hours-preorder-notice .notice-body strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hours-preorder-notice .notice-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #78350f;
}

/* --------------------------------------------------------------------------
   3. Search Menu Bar Widget (Standalone & Autocomplete)
   -------------------------------------------------------------------------- */
.entellra-standalone-search-wrapper {
    position: relative;
    width: 100%;
    margin: 16px 0;
    font-family: inherit;
    box-sizing: border-box;
}

.entellra-standalone-search-wrapper *, 
.entellra-standalone-search-wrapper *::before, 
.entellra-standalone-search-wrapper *::after {
    box-sizing: border-box;
}

.search-input-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.22s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-input-inner:focus-within {
    border-color: var(--entellra-primary, #e11d48);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

/* Sizes */
.size-small .search-input-inner { min-height: 38px; }
.size-small .entellra-standalone-search-input { padding: 8px 12px; font-size: 13.5px; }

.size-medium .search-input-inner { min-height: 48px; }
.size-medium .entellra-standalone-search-input { padding: 12px 16px; font-size: 15px; }

.size-large .search-input-inner { min-height: 56px; }
.size-large .entellra-standalone-search-input { padding: 15px 20px; font-size: 16px; }

.size-xlarge .search-input-inner { min-height: 64px; }
.size-xlarge .entellra-standalone-search-input { padding: 18px 24px; font-size: 18px; }

.search-icon-prefix {
    padding-left: 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    flex-shrink: 0;
}

.entellra-standalone-search-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #0f172a;
    font-weight: 500;
}

.entellra-standalone-search-input::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    display: none;
    transition: color 0.15s;
    outline: none;
}

.search-clear-btn:hover {
    color: #334155;
}

.search-submit-btn {
    background: var(--entellra-primary, #e11d48);
    color: #ffffff;
    border: none;
    padding: 0 24px;
    height: 100%;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    border-radius: 0;
}

.search-submit-btn:hover {
    opacity: 0.92;
}

/* Live Autocomplete Dropdown */
.entellra-search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.entellra-search-autocomplete-dropdown.show {
    display: block;
}

.live-results-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--entellra-primary, #e11d48);
    border-radius: 50%;
    animation: entellraSpin 0.7s linear infinite;
}

@keyframes entellraSpin {
    to { transform: rotate(360deg); }
}

.entellra-search-item-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.entellra-search-item-result:last-child {
    border-bottom: none;
}

.entellra-search-item-result:hover {
    background-color: #f8fafc;
}

.entellra-search-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.entellra-search-item-info {
    flex-grow: 1;
    min-width: 0;
}

.entellra-search-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entellra-search-item-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--entellra-primary, #e11d48);
    margin-top: 2px;
}

.btn-quick-add-search {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-quick-add-search:hover {
    background: var(--entellra-primary, #e11d48);
    color: #ffffff;
    border-color: var(--entellra-primary, #e11d48);
}

.live-results-empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
