/* =============================================================
   Menu Connect — Front-end Styles
   Brand: #c8102e  |  Mobile-first
   ============================================================= */

/* =============================================================
   1. OUR MENU TABS
   ============================================================= */
.mc-our-menu-wrap { margin: 1.25rem 0; font-family: inherit; }
.mc-our-menu-title { font-size: 1.3rem; font-weight: 700; color: #111; margin: 0 0 4px; line-height: 1.25; }
.mc-our-menu-subtitle { font-size: 0.84rem; color: #666; margin: 0 0 0.85rem; line-height: 1.5; }

.mc-tabs-bar-wrap { position: relative; }
.mc-tabs-bar {
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: center; padding-bottom: 4px;
}

.mc-tab {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 999px;
    border: 1.5px solid #d1d5db; background: #fff;
    font-size: 0.82rem; font-weight: 500; color: #374151;
    cursor: pointer; line-height: 1.4; white-space: nowrap;
    flex-shrink: 0; min-height: 36px; font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: rgba(200,16,46,0.08);
}
.mc-tab:hover         { border-color: #c8102e; color: #c8102e; background: #fff5f6; }
.mc-tab--active       { background: #c8102e; border-color: #c8102e; color: #fff; font-weight: 600; }
.mc-tab--active:hover { background: #a00d24; border-color: #a00d24; }
.mc-tab:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.mc-our-menu-empty    { color: #9ca3af; font-size: 0.83rem; margin-top: 0.5rem; }

@media ( max-width: 640px ) {
    .mc-tabs-bar { flex-wrap: nowrap; overflow-x: auto; padding-right: 48px; scrollbar-width: none; }
    .mc-tabs-bar::-webkit-scrollbar { display: none; }
    .mc-tabs-bar-wrap::after {
        content: ''; position: absolute; top: 0; right: 0; bottom: 0;
        width: 48px; background: linear-gradient(to right, transparent, #fff 90%);
        pointer-events: none; z-index: 1;
    }
}


/* =============================================================
   2. OPENING HOURS  (vertical list layout)
   ============================================================= */
.mc-oh-wrap  { margin: 1.25rem 0; font-family: inherit; }
.mc-oh2-wrap {
    background   : #fff;
    border       : 1px solid #e5e7eb;
    border-radius: 14px;
    overflow     : hidden;
    max-width    : 520px;
}

/* ── Status banner ── */
.mc-oh2-banner {
    display    : flex;
    align-items: center;
    gap        : 12px;
    padding    : 14px 18px;
    border-bottom: 1px solid transparent;
}
.mc-oh2-banner--open   { background: #f0fdf4; border-bottom-color: #bbf7d0; }
.mc-oh2-banner--closed { background: #fff1f2; border-bottom-color: #fecdd3; }

/* Pulsing dot */
.mc-oh2-dot {
    width        : 14px;
    height       : 14px;
    border-radius: 50%;
    flex-shrink  : 0;
}
.mc-oh2-dot--open   { background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); animation: mc-oh2-pulse-green 2s ease-out infinite; }
.mc-oh2-dot--closed { background: #dc2626; }

@keyframes mc-oh2-pulse-green {
    0%   { box-shadow: 0 0 0 0   rgba(22,163,74,0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(22,163,74,0);    }
    100% { box-shadow: 0 0 0 0   rgba(22,163,74,0);    }
}

.mc-oh2-banner-title {
    display    : block;
    font-size  : 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.mc-oh2-banner--open   .mc-oh2-banner-title { color: #15803d; }
.mc-oh2-banner--closed .mc-oh2-banner-title { color: #b91c1c; }

.mc-oh2-banner-sub {
    display    : block;
    font-size  : 0.8rem;
    margin-top : 2px;
    line-height: 1.4;
}
.mc-oh2-banner--open   .mc-oh2-banner-sub { color: #166534; }
.mc-oh2-banner--closed .mc-oh2-banner-sub { color: #991b1b; }

/* ── Section label ── */
.mc-oh2-section-label {
    font-size     : 0.62rem;
    font-weight   : 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color         : #6b7280;
    padding       : 10px 18px 6px;
}

/* ── Day rows ── */
.mc-oh2-list { padding: 0 0 8px; }

.mc-oh2-row {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    padding        : 10px 18px;
    border-left    : 3px solid transparent;
    transition     : background 0.12s;
}
.mc-oh2-row:hover { background: #f9fafb; }

.mc-oh2-row--today {
    background       : #f0fdf4;
    border-left-color: #16a34a;
}
.mc-oh2-row--today:hover { background: #dcfce7; }

.mc-oh2-dayname {
    font-size  : 0.9rem;
    color      : #374151;
    font-weight: 400;
}
.mc-oh2-row--today .mc-oh2-dayname {
    font-weight: 700;
    color      : #111827;
}

.mc-oh2-time {
    font-size  : 0.9rem;
    color      : #374151;
    font-weight: 400;
    white-space: nowrap;
}
.mc-oh2-row--today .mc-oh2-time {
    font-weight: 700;
    color      : #111827;
}

.mc-oh2-closed {
    font-size : 0.85rem;
    color     : #9ca3af;
    font-style: italic;
}

/* Note */
.mc-oh-note { margin: 0; font-size: 0.74rem; color: #9ca3af; padding: 0 18px 10px; }

/* Accessible sr-only pattern (hidden visually, preserved in Reader Mode & screen readers) */
.mc-sr-only,
.mc-oh-table,
.mc-mt-table {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media ( max-width: 480px ) {
    .mc-oh2-wrap { max-width: 100%; border-radius: 10px; }
    .mc-oh2-banner { padding: 12px 14px; gap: 10px; }
    .mc-oh2-banner-title { font-size: 0.95rem; }
    .mc-oh2-row { padding: 9px 14px; }
    .mc-oh2-section-label { padding: 9px 14px 5px; }
    .mc-oh-note { padding: 0 14px 8px; }
}


/* =============================================================
   3. MEAL TIMES
   ============================================================= */
.mc-mt-wrap { margin: 1.25rem 0; font-family: inherit; }
.mc-mt-header,
h3.mc-mt-header { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin: 0 0 0.5rem; padding: 0; line-height: 1.3; }
.mc-mt-cards  { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-mt-card   { flex: 1; min-width: 100px; display: flex; flex-direction: column; gap: 3px; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1.5px solid transparent; transition: box-shadow 0.15s; }
.mc-mt-card--active { box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.08); }
.mc-mt-icon   { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 0.82rem; line-height: 1; flex-shrink: 0; margin-bottom: 1px; }
.mc-mt-label  { font-size: 0.78rem; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 4px; line-height: 1.2; }
.mc-mt-dot    { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.mc-mt-time   { font-size: 0.7rem; color: #6b7280; line-height: 1.3; }

@media ( max-width: 480px ) {
    .mc-mt-card { flex: 1 1 100%; min-width: 100%; }
}


/* =============================================================
   4. FAQ ACCORDION
   ============================================================= */
.mc-faq-wrap { margin: 1.25rem 0; font-family: inherit; }
.mc-faq-title { font-size: 1.02rem; font-weight: 700; color: #111827; margin: 0 0 3px; line-height: 1.3; }
.mc-faq-subtitle { font-size: 0.83rem; color: #6b7280; margin: 0 0 0.8rem; line-height: 1.5; }
.mc-faq-list { margin: 0; padding: 0; }
.mc-faq-item { border-top: 1px solid #e5e7eb; }
.mc-faq-item:last-child { border-bottom: 1px solid #e5e7eb; }
details.mc-faq-item > summary.mc-faq-q,
.mc-faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.9rem 0; font-size: 0.91rem; font-weight: 600; color: #111827;
    cursor: pointer; user-select: none; -webkit-user-select: none; list-style: none; line-height: 1.4; min-height: 44px;
    transition: color 0.12s;
}
details.mc-faq-item > summary::-webkit-details-marker,
.mc-faq-q::-webkit-details-marker { display: none !important; }
details.mc-faq-item > summary::marker,
.mc-faq-q::marker { display: none !important; }
.mc-faq-q:hover { color: #c8102e; }
.mc-faq-q-text { flex: 1; }
.mc-faq-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid #d1d5db; color: #6b7280;
    transition: border-color 0.15s, background 0.15s, color 0.15s; position: relative;
}
.mc-faq-icon::before {
    content: ''; display: block; width: 5px; height: 5px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px); transition: transform 0.2s ease;
}
.mc-faq-item[open] > summary.mc-faq-q,
.mc-faq-item[open] .mc-faq-q { color: #c8102e; }
.mc-faq-item[open] .mc-faq-icon,
.mc-faq-icon.mc-faq-icon--open { background: #c8102e !important; border-color: #c8102e !important; color: #fff !important; }
.mc-faq-item[open] .mc-faq-icon::before,
.mc-faq-icon.mc-faq-icon--open::before { transform: rotate(225deg) translate(-1px, -1px) !important; }
.mc-faq-a { padding: 0 2rem 0.9rem 0; font-size: 0.88rem; color: #6b7280; line-height: 1.65; }
.mc-faq-a p { margin: 0; }
.mc-faq-a a { color: #c8102e; text-decoration: underline; text-underline-offset: 2px; }
.mc-faq-a a:hover { color: #a00d24; }


/* =============================================================
   5. PLUGIN SHORTCODE TABLE  [menu_table]
   ============================================================= */
.mc-table-wrap { margin: 1.5rem 0; font-family: inherit; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.mc-tbl-head { padding: 0.75rem 1rem 0.6rem; border-bottom: 1px solid #e5e7eb; }
.mc-tbl-title { font-size: 1.05rem; font-weight: 700; color: #111827; margin: 0 0 2px; line-height: 1.3; }
.mc-tbl-subtitle { font-size: 0.82rem; color: #6b7280; font-style: italic; margin: 0; line-height: 1.5; }
.mc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mc-table thead tr { background: #111827; }
.mc-table thead th { padding: 0.6rem 1rem; text-align: left; font-size: 0.68rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; border: none !important; white-space: nowrap; }
.mc-th-toggle { width: 32px; padding: 0 0 0 1rem !important; }
.mc-th-price  { text-align: right; }
.mc-item-row  { border-bottom: 1px solid #f3f4f6; transition: background 0.1s; }
.mc-item-row:last-of-type { border-bottom: none; }
.mc-item-row--expandable  { cursor: pointer; }
.mc-item-row--expandable:hover { background: #fdf5f6; }
.mc-td-toggle { width: 32px; padding: 0.85rem 0 0.85rem 1rem !important; border: none !important; vertical-align: middle; }
.mc-row-toggle { display: inline-block; color: #c8102e; font-size: 0.55rem; line-height: 1; transition: transform 0.2s ease; transform: rotate(0deg); }
.mc-row-toggle--empty { visibility: hidden; }
.mc-item-row--open .mc-row-toggle { transform: rotate(90deg); }
.mc-td-item  { padding: 0.85rem 1rem !important; font-weight: 600; color: #111827; border: none !important; vertical-align: middle; line-height: 1.4; }
.mc-td-price { padding: 0.85rem 1rem 0.85rem 0.5rem !important; text-align: right; font-weight: 700; color: #c8102e; font-size: 0.95rem; white-space: nowrap; border: none !important; vertical-align: middle; transition: transform 0.2s ease; }
.mc-item-row--expandable:hover .mc-td-price { transform: scale(1.08); }
.mc-detail-row { background: #fffbf0; }
.mc-detail-row[hidden] { display: none; }
.mc-detail-cell { padding: 0.45rem 1rem 0.65rem 2.8rem !important; border: none !important; border-bottom: 1px solid #f3f4f6 !important; font-size: 0.82rem; color: #6b7280; line-height: 1.6; text-align: right; }
.mc-detail-label { font-weight: 600; color: #374151; }
.mc-detail-val   { color: #6b7280; }
.mc-price-badge  { display: inline-block; color: #c8102e; font-weight: 700; font-size: 0.93rem; }
.mc-table-note   { padding: 0.5rem 1rem; font-size: 0.73rem; color: #9ca3af; line-height: 1.5; border-top: 1px solid #f3f4f6; }


/* =============================================================
   6. GUTENBERG WP BLOCK TABLES
   ============================================================= */
.entry-content .wp-block-table td,
.entry-content .wp-block-table th,
.wp-block-post-content .wp-block-table td,
.wp-block-post-content .wp-block-table th,
.single .entry-content .wp-block-table td,
.single .entry-content .wp-block-table th   { border: none !important; }
.entry-content .wp-block-table thead,
.wp-block-post-content .wp-block-table thead,
.single .entry-content .wp-block-table thead { border-bottom: none !important; }
.entry-content .wp-block-table tfoot,
.wp-block-post-content .wp-block-table tfoot,
.single .entry-content .wp-block-table tfoot { border-top: none !important; }
figure.wp-block-table,
.entry-content figure.wp-block-table,
.wp-block-post-content figure.wp-block-table,
.single .entry-content figure.wp-block-table { margin: 1.5rem 0; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.entry-content .wp-block-table table,
.wp-block-post-content .wp-block-table table,
.single .entry-content .wp-block-table table { width: 100%; border-collapse: collapse !important; border-spacing: 0 !important; font-size: 0.9rem; font-family: inherit; }
.entry-content .wp-block-table thead tr,
.wp-block-post-content .wp-block-table thead tr,
.single .entry-content .wp-block-table thead tr { background: #111827; }
.entry-content .wp-block-table thead th,
.wp-block-post-content .wp-block-table thead th,
.single .entry-content .wp-block-table thead th { padding: 0.6rem 1rem !important; text-align: left; font-size: 0.68rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; border: none !important; white-space: nowrap; }
.entry-content .wp-block-table thead th:last-child,
.wp-block-post-content .wp-block-table thead th:last-child,
.single .entry-content .wp-block-table thead th:last-child { text-align: right; }
.entry-content .wp-block-table tbody tr,
.wp-block-post-content .wp-block-table tbody tr,
.single .entry-content .wp-block-table tbody tr { border-bottom: 1px solid #f3f4f6 !important; transition: background 0.15s; cursor: pointer; }
.entry-content .wp-block-table tbody tr:last-child,
.wp-block-post-content .wp-block-table tbody tr:last-child,
.single .entry-content .wp-block-table tbody tr:last-child { border-bottom: none !important; }
.entry-content .wp-block-table tbody tr:hover,
.wp-block-post-content .wp-block-table tbody tr:hover,
.single .entry-content .wp-block-table tbody tr:hover { background: #fdf5f6; }
.entry-content .wp-block-table tbody td,
.entry-content .wp-block-table tbody th,
.wp-block-post-content .wp-block-table tbody td,
.wp-block-post-content .wp-block-table tbody th,
.single .entry-content .wp-block-table tbody td,
.single .entry-content .wp-block-table tbody th { padding: 0.85rem 1rem !important; border: none !important; vertical-align: middle; color: #374151; line-height: 1.45; }
.entry-content .wp-block-table tbody td:first-child,
.wp-block-post-content .wp-block-table tbody td:first-child,
.single .entry-content .wp-block-table tbody td:first-child { font-weight: 600; color: #111827; transition: color 0.15s; }
.entry-content .wp-block-table tbody tr:hover td:first-child,
.wp-block-post-content .wp-block-table tbody tr:hover td:first-child,
.single .entry-content .wp-block-table tbody tr:hover td:first-child { color: #c8102e; }
.entry-content .wp-block-table tbody td:last-child,
.wp-block-post-content .wp-block-table tbody td:last-child,
.single .entry-content .wp-block-table tbody td:last-child { text-align: right; font-weight: 700; color: #c8102e; font-size: 0.95rem; white-space: nowrap; transition: transform 0.2s ease; }
.entry-content .wp-block-table tbody tr:hover td:last-child,
.wp-block-post-content .wp-block-table tbody tr:hover td:last-child,
.single .entry-content .wp-block-table tbody tr:hover td:last-child { transform: scale(1.06); }
.mc-auto-price      { text-align: right !important; }
.mc-auto-price-head { text-align: right !important; }
.mc-auto-price-badge { display: inline-block; font-weight: 700; color: #c8102e; font-size: 0.95rem; transition: transform 0.2s ease; }
.entry-content table tbody tr:hover .mc-auto-price-badge,
.wp-block-post-content table tbody tr:hover .mc-auto-price-badge,
.single .entry-content table tbody tr:hover .mc-auto-price-badge { transform: scale(1.06); }
.entry-content h2, .entry-content h3:not(.mc-ms-name),
.wp-block-post-content h2, .wp-block-post-content h3:not(.mc-ms-name),
.single .entry-content h2, .single .entry-content h3:not(.mc-ms-name) { margin-top: 1.8rem; margin-bottom: 0.25rem; color: #111827; line-height: 1.3; }
.entry-content h2, .wp-block-post-content h2, .single .entry-content h2 { font-size: 1.25rem; font-weight: 700; }
.entry-content h3:not(.mc-ms-name), .wp-block-post-content h3:not(.mc-ms-name), .single .entry-content h3:not(.mc-ms-name) { font-size: 1.05rem; font-weight: 700; }
.entry-content h2 + p, .entry-content h3:not(.mc-ms-name) + p,
.wp-block-post-content h2 + p, .wp-block-post-content h3:not(.mc-ms-name) + p,
.single .entry-content h2 + p, .single .entry-content h3:not(.mc-ms-name) + p { margin-top: 0.1rem; font-size: 0.85rem; color: #6b7280; line-height: 1.55; }

@keyframes mc-row-flash { 0% { background: #fde8eb; } 60% { background: #fcd0d5; } 100% { background: transparent; } }
.mc-row-flash { animation: mc-row-flash 0.4s ease-out forwards; }

@media ( max-width: 480px ) {
    .entry-content .wp-block-table tbody td, .entry-content .wp-block-table thead th,
    .wp-block-post-content .wp-block-table tbody td, .wp-block-post-content .wp-block-table thead th,
    .single .entry-content .wp-block-table tbody td, .single .entry-content .wp-block-table thead th { padding: 0.65rem 0.6rem !important; font-size: 0.82rem !important; }
    .entry-content .wp-block-table tbody td:nth-child(3), .entry-content .wp-block-table thead th:nth-child(3),
    .wp-block-post-content .wp-block-table tbody td:nth-child(3), .wp-block-post-content .wp-block-table thead th:nth-child(3),
    .single .entry-content .wp-block-table tbody td:nth-child(3), .single .entry-content .wp-block-table thead th:nth-child(3) { display: none; }
    .entry-content h2, .wp-block-post-content h2, .single .entry-content h2 { font-size: 1.1rem; }
    .entry-content h3, .wp-block-post-content h3, .single .entry-content h3 { font-size: 0.97rem; }
}


/* =============================================================
   7. MENU SECTION BLOCK  (light cards — brand #c8102e)
   ============================================================= */

.mc-ms-wrap {
    margin     : 1.5rem 0;
    font-family: inherit;
}

/* Section header */
.mc-ms-section-header {
    display        : flex;
    align-items    : flex-end;
    justify-content: space-between;
    gap            : 1rem;
    margin-bottom  : 1.1rem;
    flex-wrap      : wrap;
}

.mc-ms-heading {
    font-size  : var(--mc-ms-heading-size, 1.5rem);
    font-weight: 700;
    color      : #111827;
    margin     : 0 0 2px;
    line-height: 1.25;
}

/* Renamed from .mc-ms-subtitle → .mc-ms-description */
.mc-ms-description {
    font-size  : 0.85rem;
    color      : #6b7280;
    margin     : 0;
    line-height: 1.5;
}

.mc-ms-meta-summary {
    font-size  : 0.8rem;
    color      : #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 2px;
}

/* Grid — 6 columns max, fully responsive */
.mc-ms-grid {
    display              : grid;
    grid-template-columns: repeat( 6, minmax(0, 1fr) );
    gap                  : 14px;
    align-items          : start;
}

/* ── Reader-mode semantic shadow ──
   Visually hidden but present in DOM so Edge Immersive Reader
   (and other reading-mode parsers) can extract image, kcal,
   name, price, ingredients and nutrition as plain text.
   display:none and visibility:hidden would make parsers skip it,
   so we use size/opacity tricks instead.
   ── */
.mc-ms-reader-shadow {
    position  : absolute;
    width     : 1px;
    height    : 1px;
    overflow  : hidden;
    opacity   : 0;
    pointer-events: none;
    clip      : rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Reader article — off-screen for normal view, scored by Edge Reader ── */
.mc-ms-reader-article {
    position  : fixed;
    left      : -9999px;
    top       : 0;
    width     : 600px;
    overflow  : hidden;
    pointer-events: none;
}

/* ── Card ── */
.mc-ms-card,
article.mc-ms-card {
    position      : relative;
    background    : #ffffff;
    border        : 1.5px solid rgb(200 16 46 / 45%);
    border-radius : 12px;
    overflow      : hidden;
    display       : flex;
    flex-direction: column;
    box-shadow    : 0 2px 8px rgba(0,0,0,0.06);
    transition    : transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    min-width     : 0;
}
.mc-ms-card:hover {
    transform   : translateY(-3px);
    box-shadow  : 0 8px 24px rgba(200,16,46,0.12);
    border-color: rgba(200,16,46,0.55);
}

/* ── Image ── */
.mc-ms-img-wrap {
    position   : relative;
    width      : 100%;
    overflow   : hidden;
    flex-shrink: 0;
    background : #f3f4f6;
    margin     : 0 !important;
    padding    : 0 !important;
    line-height: 0 !important;
    font-size  : 0 !important;
}

.entry-content .mc-ms-card .mc-ms-img-wrap img,
.wp-block-post-content .mc-ms-card .mc-ms-img-wrap img,
.single .entry-content .mc-ms-card .mc-ms-img-wrap img,
.mc-ms-card .mc-ms-img-wrap img,
.mc-ms-img-wrap img {
    width          : 100% !important;
    max-width      : 100% !important;
    height         : auto !important;
    aspect-ratio   : 4 / 3;
    object-fit     : cover;
    object-position: center;
    display        : block !important;
    margin         : 0 !important;
    padding        : 0 !important;
    border         : none !important;
    box-shadow     : none !important;
    transition     : transform 0.3s ease;
    vertical-align : bottom;
}
.mc-ms-card:hover .mc-ms-img-wrap img { transform: scale(1.04); }

/* Placeholder */
.mc-ms-img-placeholder {
    width          : 100%;
    aspect-ratio   : 4 / 3;
    background     : #f3f4f6;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : #9ca3af;
    font-size      : 0.78rem;
    margin         : 0 !important;
    padding        : 0 !important;
}

/* Calorie badge — top-RIGHT, red pill */
.mc-ms-cal-badge {
    position     : absolute;
    top          : 8px;
    right        : 8px;
    background   : #111827;
    color        : #ffffff;
    font-size    : 0.68rem;
    font-weight  : 700;
    padding      : 2px 8px;
    border-radius: 999px;
    line-height  : 1.5;
    z-index      : 1;
    white-space  : nowrap;
    box-shadow   : 0 2px 4px rgba(0,0,0,0.25);
}

/* ── Card body ── */
.mc-ms-card-body {
    padding       : 0.55rem 0.75rem 0.65rem;
    flex          : 1;
    display       : flex;
    flex-direction: column;
    gap           : 0;
    margin        : 0 !important;
}

/* Prevent empty paragraphs / breaks from WordPress wpautop from adding unwanted space */
.mc-ms-card > p:empty,
.mc-ms-card-body > p:empty,
.mc-ms-card > br,
.mc-ms-card-body > br {
    display: none !important;
    margin : 0 !important;
    padding: 0 !important;
}

/* Reset margin on first child of card body */
.mc-ms-card-body > *:first-child {
    margin-top : 0 !important;
    padding-top: 0 !important;
}

/* Name */
.entry-content .mc-ms-card h3.mc-ms-name,
.single .entry-content .mc-ms-card h3.mc-ms-name,
.wp-block-post-content .mc-ms-card h3.mc-ms-name,
.mc-ms-card h3.mc-ms-name,
.mc-ms-card .mc-ms-name,
h3.mc-ms-name,
.mc-ms-name {
    font-size     : 0.95rem !important;
    font-weight   : 700 !important;
    color         : #111827 !important;
    line-height   : 1.25 !important;
    display       : block !important;
    margin-top    : 0 !important;
    margin-bottom : 4px !important;
    margin-left   : 0 !important;
    margin-right  : 0 !important;
    padding-top   : 0 !important;
    padding-bottom: 0 !important;
    word-wrap     : break-word;
    overflow-wrap : break-word;
}

/* Price */
.mc-ms-price-row {
    display    : flex;
    align-items: baseline;
    flex-wrap  : wrap;
    gap        : 4px;
    margin     : 0 0 4px;
}

.mc-ms-price {
    font-size  : 1.18rem;
    font-weight: 800;
    color      : #c8102e;
    line-height: 1.2;
    margin     : 0;
    white-space: nowrap;
}

.mc-ms-price--old {
    font-size      : 1.18rem;
    font-weight    : 800;
    color          : #c8102e;
    text-decoration: none;
    line-height    : 1.2;
}

/* Meta (date) */
.mc-ms-meta {
    font-size  : 0.72rem;
    color      : #6b7280;
    line-height: 1.45;
    margin     : 0 0 8px;
}

/* ── Toggle button / summary — red text + chevron, no box ── */
details.mc-ms-nutrition-details {
    margin : 4px 0 0;
    padding: 0;
}
details.mc-ms-nutrition-details > summary.mc-ms-nutrition-toggle,
.mc-ms-nutrition-toggle {
    display         : inline-flex !important;
    align-items     : center !important;
    gap             : 4px !important;
    width           : 100% !important;
    background      : none !important;
    background-color: transparent !important;
    border          : none !important;
    border-radius   : 0 !important;
    box-shadow      : none !important;
    padding         : 5px 0 !important;
    margin          : 0 !important;
    font-size       : 0.78rem !important;
    font-weight     : 600 !important;
    color           : #c8102e !important;
    cursor          : pointer !important;
    line-height     : 1.35 !important;
    text-align      : left !important;
    text-decoration : none !important;
    font-family     : inherit !important;
    list-style      : none !important;
    transition      : color 0.15s !important;
    outline-offset  : 2px;
}
details.mc-ms-nutrition-details > summary::-webkit-details-marker,
.mc-ms-nutrition-toggle::-webkit-details-marker {
    display: none !important;
}
details.mc-ms-nutrition-details > summary::marker,
.mc-ms-nutrition-toggle::marker {
    display: none !important;
}
details.mc-ms-nutrition-details > summary:hover,
details.mc-ms-nutrition-details > summary:focus,
.mc-ms-nutrition-toggle:hover,
.mc-ms-nutrition-toggle:focus {
    color      : #a00d24 !important;
    background : none !important;
}

/* Chevron — points right when closed, down when open */
.mc-ms-nutrition-arrow {
  display    : inline-block;
  flex-shrink: 0;
  margin-left: auto;
  width      : 0;
  height     : 0;
  border-left : 4px solid transparent;
  border-right: 4px solid transparent;
  border-top  : 5px solid #c8102e;
  margin-top  : 2px;
  transition  : transform 0.2s ease;
  transform   : rotate(-90deg); /* closed = pointing right */
}
details.mc-ms-nutrition-details[open] .mc-ms-nutrition-arrow,
.mc-ms-nutrition-toggle[aria-expanded="true"] .mc-ms-nutrition-arrow {
    transform: rotate(0deg) !important; /* open = pointing down */
}

/* ── Expandable panel — no box, flush with card ── */
.mc-ms-nutrition {
    margin  : 0;
    padding : 0 0 6px;
    overflow: hidden;
}
button.mc-ms-nutrition-toggle + .mc-ms-nutrition[hidden],
button.mc-ms-nutrition-toggle + .mc-ms-nutrition.mc-ms-nutrition--closed { display: none !important; }

/* Panel sections */
.mc-ms-panel-section         { padding: 4px 0 6px; }
.mc-ms-panel-section--bordered { border-top: 1px solid #f3f4f6; padding-top: 10px; margin-top: 4px; }

/* Section labels (WHAT'S INSIDE / NUTRITION PER SERVE) */
.mc-ms-panel-label,
.mc-ms-nutrition-label {
    display       : block;
    font-size     : 0.58rem;
    font-weight   : 700;
    letter-spacing: 0.1em;
    color         : #9ca3af;
    text-transform: uppercase;
    margin-bottom : 7px;
}

/* ── Ingredient list — bullet dots, one per line ── */
.mc-ms-ingredients { margin: 0; }
.mc-ms-ingredients-list {
    list-style    : none;
    margin        : 0;
    padding       : 0 !important;
    display       : flex;
    flex-direction: column;
    gap           : 6px;
}
.mc-ms-ingredients-list li {
    display    : flex;
    align-items: baseline;
    gap        : 8px;
    font-size  : 0.78rem;
    color      : #374151;
    line-height: 1.45;
    padding    : 0;
    margin     : 0;
}
.mc-ms-ingredients-list li::before {
    content      : '';
    display      : inline-block;
    width        : 7px;
    height       : 7px;
    min-width    : 7px;
    border-radius: 50%;
    background   : #c8102e;
    flex-shrink  : 0;
    position     : relative;
    top          : -1px;
}

/* Macro bar */
.mc-ms-macro-bar {
    display      : flex;
    height       : 7px;
    border-radius: 999px;
    overflow     : hidden;
    margin-bottom: 10px;
    background   : #e5e7eb;
}
.mc-ms-bar-seg     { height: 100%; }
.mc-ms-bar-protein { background: #16a34a; }
.mc-ms-bar-carbs   { background: #d97706; }
.mc-ms-bar-fat     { background: #c8102e; }

/* Macro rows */
.mc-ms-macros { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.mc-ms-macro-row {
    display        : flex;
    align-items    : center;
    gap            : 7px;
    font-size      : 0.78rem;
    color          : #374151;
    justify-content: space-between;
}
.mc-ms-macro-row span:last-child { color: #111827; font-weight: 600; }

.mc-ms-dot         { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mc-ms-dot-protein { background: #16a34a; }
.mc-ms-dot-carbs   { background: #d97706; }
.mc-ms-dot-fat     { background: #c8102e; }

/* Sodium */
.mc-ms-sodium { border-top: 1px solid #e5e7eb; padding-top: 8px; margin-top: 4px; }
.mc-ms-sodium-row {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    margin-bottom  : 5px;
    font-size      : 0.78rem;
    color          : #374151;
}
.mc-ms-sodium-row strong { color: #111827; font-weight: 700; }
.mc-ms-sodium-bar-wrap { height: 5px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
.mc-ms-sodium-bar      { height: 100%; background: #d97706; border-radius: 999px; }
.mc-ms-sodium-note     { font-size: 0.65rem; color: #9ca3af; }

/* Responsive Grid Breakpoints (6 columns max) */
@media ( max-width: 1400px ) {
    .mc-ms-grid {
        grid-template-columns: repeat( 5, minmax(0, 1fr) );
        gap: 14px;
    }
}
@media ( max-width: 1140px ) {
    .mc-ms-grid {
        grid-template-columns: repeat( 4, minmax(0, 1fr) );
        gap: 12px;
    }
}
@media ( max-width: 880px ) {
    .mc-ms-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
        gap: 10px;
    }
    .mc-ms-heading {
        font-size: 1.35rem;
    }
}
@media ( max-width: 640px ) {
    .mc-ms-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 10px;
    }
    .mc-ms-heading {
        font-size: 1.25rem;
    }
    .mc-ms-meta-summary {
        display: none;
    }
}
@media ( max-width: 480px ) {
    .mc-ms-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 8px;
    }
    .mc-ms-card-body {
        padding: 0.45rem 0.6rem 0.55rem;
    }
    .mc-ms-name,
    h3.mc-ms-name {
        font-size: 0.85rem !important;
        margin-top: 0 !important;
        margin-bottom: 3px !important;
    }
    .mc-ms-price {
        font-size: 0.98rem;
    }
    .mc-ms-heading {
        font-size: 1.1rem;
    }
}
@media ( max-width: 340px ) {
    .mc-ms-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* =============================================================
   EDITOR CANVAS STYLES  (block canvas — light)
   ============================================================= */
.mc-ms-editor-wrap {
    font-family  : inherit;
    padding      : 16px;
    background   : #fff;
    border       : 1px dashed #d1d5db;
    border-radius: 10px;
}
.mc-ms-editor-header          { margin-bottom: 12px; }
.mc-ms-editor-product         { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 6px; overflow: hidden; }
.mc-ms-editor-product-header  { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; cursor: pointer; gap: 8px; user-select: none; }
.mc-ms-editor-product-header:hover { background: #fdf5f6; }
.mc-ms-editor-product-name    { font-size: 13px; font-weight: 600; flex: 1; color: #111; }
.mc-ms-editor-product-price   { font-size: 13px; white-space: nowrap; color: #c8102e; font-weight: 700; }
.mc-ms-editor-product-fields  { padding: 0 10px 10px; border-top: 1px solid #f0f0f0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mc-ms-editor-product--open .mc-ms-editor-product-header { background: #fff5f6; }

/* =============================================================
   8. ACCESSIBILITY, HIGH CONTRAST & PRINT MEDIA
   Supports Chrome, Edge, Firefox, Opera, Safari
   ============================================================= */

/* Keyboard focus indicators */
.mc-tab:focus-visible,
.mc-faq-q:focus-visible,
.mc-ms-nutrition-toggle:focus-visible,
.mc-item-row--expandable:focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media ( prefers-reduced-motion: reduce ) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Windows High Contrast / Forced Colors (Edge, Chrome, Firefox) */
@media ( forced-colors: active ) {
    .mc-tab {
        border: 1px solid ButtonText;
    }
    .mc-tab--active {
        background: SelectedItem;
        color: SelectedItemText;
        border-color: SelectedItem;
    }
    .mc-oh2-banner {
        border: 2px solid CanvasText;
    }
    .mc-oh2-row--today {
        outline: 2px solid Highlight;
    }
    .mc-mt-card {
        border: 1px solid CanvasText;
    }
    .mc-mt-card--active {
        outline: 2px solid Highlight;
    }
    .mc-ms-card {
        border: 1px solid CanvasText;
    }
    .mc-faq-item {
        border-color: CanvasText;
    }
    .mc-faq-icon {
        border: 1px solid CanvasText;
    }
    .mc-ms-nutrition-toggle {
        color: LinkText !important;
    }
    .mc-ms-price {
        color: CanvasText;
    }
}

/* Print mode (Chrome, Edge, Firefox, Opera, Safari) */
@media print {
    .mc-tabs-bar-wrap::after {
        display: none !important;
    }
    .mc-tabs-bar {
        overflow: visible !important;
        flex-wrap: wrap !important;
    }
    .mc-ms-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .mc-ms-card {
        break-inside     : avoid !important;
        page-break-inside: avoid !important;
        box-shadow       : none !important;
        border           : 1.5px solid rgba(200,16,46,0.35) !important;
    }
    /* Force panels open in print/reader so content is visible */
    .mc-ms-nutrition,
    .mc-ms-nutrition[hidden],
    .mc-ms-nutrition.mc-ms-nutrition--closed {
        display: block !important;
    }
    button.mc-ms-nutrition-toggle {
        font-weight: 700 !important;
        color      : #c8102e !important;
    }
    /* Force colours to print */
    .mc-oh2-banner,
    .mc-oh2-row--today,
    .mc-tab--active,
    .mc-ms-cal-badge,
    .mc-ms-bar-protein,
    .mc-ms-bar-carbs,
    .mc-ms-bar-fat,
    .mc-ms-sodium-bar,
    .mc-ms-ingredients-list li::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust         : exact !important;
    }
    details.mc-faq-item,
    .mc-oh2-wrap,
    .mc-mt-cards {
        break-inside     : avoid !important;
        page-break-inside: avoid !important;
    }
}
}
