html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* App-wide: default .btn matches Bootstrap .btn-sm vertical footprint so mixed .btn / .btn-sm align.
   Excludes .btn-lg and .btn-link. .btn-group-lg > .btn keeps Bootstrap’s larger group rules (higher specificity). */
.btn:not(.btn-lg):not(.btn-link) {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Ops → Menu items: "More info" text toggle — skip the heavy blue pill from `.btn:focus` (keyboard users still get a light outline). */
.ops-menu-items-more-info.btn:focus,
.ops-menu-items-more-info.btn:active:focus {
  box-shadow: none;
}
.ops-menu-items-more-info:focus-visible {
  outline: 2px solid rgba(var(--bs-secondary-rgb), 0.45);
  outline-offset: 2px;
}

/* Cart: outline danger buttons; solid fill only while hovering — not when focused alone (keyboard / row focus). */
.cart-destructive-btn.btn-outline-danger:hover {
  color: #fff !important;
  background-color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
}

.cart-destructive-btn.btn-outline-danger:focus:not(:hover),
.cart-destructive-btn.btn-outline-danger:focus-visible:not(:hover),
.cart-destructive-btn.btn-outline-danger:active:not(:hover) {
  color: var(--bs-danger);
  background-color: transparent;
  border-color: var(--bs-danger);
  /* Override global `.btn:focus` blue ring (`app.css` above). */
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.45);
}

/* Cart / start order: highlight item row while edit options is open. */
.list-group-item.cart-line-item--options-editing,
.list-group-item:has(.order-quick-add-row--options-editing) {
  background-color: var(--bs-primary-bg-subtle, #cfe2ff);
  border-color: var(--bs-primary-border-subtle, #9ec5fe) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.28);
  z-index: 1;
}

.content {
    padding-top: 1.1rem;
}

/* Ops → Business settings: keep the business name visible while scrolling long forms. */
.location-details-page-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Favorites / Food Search header: mobile grid (title | reorder, second row = text link + switch when compact). */
.rh-food-page-toolbar {
    display: grid;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .rh-food-page-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rh-food-page-toolbar__title {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .rh-food-page-toolbar__reorder {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .rh-food-page-toolbar__nav {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        width: max-content;
        max-width: 100%;
    }

    .rh-food-page-toolbar__switch {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: end;
    }

    /* Food Search + Favorites mobile: tight vertical rhythm (title | reorder, then link + switch). */
    .rh-food-page-toolbar--food-search,
    .rh-food-page-toolbar--favorites {
        row-gap: 0.25rem;
        column-gap: 0.65rem;
        align-items: center;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__title,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__title {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__subactions,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__subactions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        min-width: 0;
        margin-top: 0;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__subactions--solo,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__subactions--solo {
        justify-content: flex-start;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__switch,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__switch {
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__switch .form-check-label,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__switch .form-check-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__fav-link,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__fav-link {
        flex-shrink: 0;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__switch.form-check.form-switch,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__switch.form-check.form-switch {
        gap: 0.35rem;
    }
}

@media (min-width: 992px) {
    .rh-food-page-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1rem;
    }

    .rh-food-page-toolbar__title {
        flex: 1 1 auto;
        min-width: min(100%, 12rem);
    }

    .rh-food-page-toolbar__reorder,
    .rh-food-page-toolbar__nav,
    .rh-food-page-toolbar__switch,
    .rh-food-page-toolbar__subactions {
        flex: 0 0 auto;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__subactions,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__subactions {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        min-width: 0;
    }

    .rh-food-page-toolbar--food-search .rh-food-page-toolbar__title,
    .rh-food-page-toolbar--favorites .rh-food-page-toolbar__title {
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
    }
}

/* Food Search / Favorites toolbar: compact text links (arrow follows label) */
.rh-food-page-toolbar__fav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--bs-primary);
    text-decoration: none;
}

.rh-food-page-toolbar__fav-link:hover {
    text-decoration: underline;
}

.rh-food-page-toolbar__fav-arrow {
    display: inline-block;
    margin-left: 0.1rem;
    font-weight: 400;
}

/* Favorites / Food Search / inline switches: vertically center switch track + label (Bootstrap default margin-top skews the label). */
.rh-food-page-toolbar__switch.form-check.form-switch,
.rh-form-switch-inline.form-check.form-switch {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.rh-food-page-toolbar__switch.form-switch .form-check-input,
.rh-form-switch-inline.form-switch .form-check-input {
    float: none;
    margin-left: 0;
    margin-top: 0;
    margin-right: 0;
    position: relative;
    top: 0;
    flex-shrink: 0;
    align-self: center;
}

.rh-food-page-toolbar__switch.form-switch .form-check-label,
.rh-form-switch-inline.form-switch .form-check-label {
    margin-bottom: 0;
    padding-top: 0;
    line-height: 1.35;
    align-self: center;
}

/* Ops → Manage menu → Items: bulk toggle — flush with card title + table (Bootstrap .form-switch adds padding-left) */
.mm-item-list-bulk-switch.form-check.form-switch {
    padding-left: 0;
}

/* Ops → Manage menu → Items: bulk select column — left-align with row checkboxes, no focus ring */
.mm-items-bulk-table .mm-items-bulk-select-col {
    width: 2.25rem;
    max-width: 2.25rem;
    vertical-align: middle;
    padding-left: 0;
}

.mm-items-bulk-table .mm-bulk-select-cb.form-check-input:focus,
.mm-items-bulk-table .mm-bulk-select-cb.form-check-input:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Ops → Manage menu: gear menu trigger — outline icon reads lighter than filled glyph */
.rh-manage-menu-gear {
    color: var(--bs-secondary-color, #6c757d);
}

.rh-manage-menu-gear:hover,
.rh-manage-menu-gear:focus-visible {
    color: var(--bs-emphasis-color, #212529);
}

.rh-manage-menu-gear:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35);
    outline-offset: 2px;
}

/* Full-page busy overlay: dims page + shows centered spinner.
   Do not use overflow:hidden on body — toggling it on mobile Safari often jumps scroll to top.
   The fixed overlay captures pointer/touch; overscroll-behavior reduces background rubber-banding. */
html.page-busy,
body.page-busy {
  overscroll-behavior: none;
  pointer-events: none;
}

/* Dim the entire app while busy (~75% dim). */
body.page-busy main,
body.page-busy .page,
body.page-busy .content,
body.page-busy .sidebar,
body.page-busy .top-row {
  opacity: 0.90;
  transition: opacity 120ms ease-in-out;
}

.page-busy-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(1px);
  pointer-events: all;
  cursor: wait;
  touch-action: none;
}

/* Sit above Bootstrap stretched-link hit layer on Food Search / Favorites cards. */
.food-loc-above-stretch {
  position: relative;
  z-index: 2;
}

.page-busy-overlay__spinner {
  width: 3rem;
  height: 3rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Shared horizontal category chip strip (Start order, Ops manage menu items). */
.rh-cat-chip-strip {
    scroll-margin-top: 0.75rem;
    position: sticky;
    top: max(0px, env(safe-area-inset-top, 0px));
    z-index: 1020;
    background: var(--bs-body-bg, #fff);
    padding-block: 0.2rem;
}

.rh-cat-chip-strip:focus {
    outline: none;
}

.rh-cat-chip-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-block: 0.45rem;
    padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.rh-cat-chip-scroll:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb), 0.38) transparent;
}

.rh-cat-chip-scroll::-webkit-scrollbar {
    height: 2px;
    transition: height 0.15s ease-out;
}

.rh-cat-chip-scroll:hover::-webkit-scrollbar {
    height: 5px;
}

.rh-cat-chip-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin-inline: 4px;
}

.rh-cat-chip-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 999px;
    box-shadow: none;
}

.rh-cat-chip-scroll:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(var(--bs-primary-rgb), 0.45),
        rgba(var(--bs-primary-rgb), 0.28)
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.rh-cat-chip-scroll::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.rh-cat-chip-scroll--dragging {
    cursor: grabbing;
}

.rh-cat-chip-scroll--dragging .rh-cat-chip {
    cursor: grabbing;
    user-select: none;
}

.rh-cat-chip-row {
    align-items: center;
}

.rh-cat-chip {
    margin-block: 2px;
    font-weight: 600;
    padding-inline: 0.85rem;
    padding-block: 0.4rem;
    font-size: 0.9rem;
}

/* Start order: bottom bar stays on screen while browsing the menu. */
.start-order-page--sticky-pad {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

.start-order-sticky-actions {
  position: fixed;
  /* Span main column only when layout sets --main-sticky-left-offset (desktop sidebar). */
  left: var(--main-sticky-left-offset, 0px);
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Top loading bar shown immediately on navigation. */
.nav-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000; /* Above bootstrap navbar (1030) */
  background: linear-gradient(90deg, rgba(13, 110, 253, 0), rgba(13, 110, 253, 0.95), rgba(13, 110, 253, 0));
  background-size: 200% 100%;
  animation: nav-loading-bar-move 0.85s linear infinite;
  box-shadow: 0 0 0.6rem rgba(13, 110, 253, 0.35);
}

@keyframes nav-loading-bar-move {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

/* Mobile: make horizontal scrollbars obvious for wide tables. */
@media (max-width: 576px) {
  .scroll-x-visible {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb), 0.32) rgba(var(--bs-primary-rgb), 0.06);
  }

  /* WebKit scrollbar styling (Chrome/Edge/Safari). */
  .scroll-x-visible::-webkit-scrollbar {
    height: 12px;
  }
  .scroll-x-visible::-webkit-scrollbar-track {
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-radius: 999px;
  }
  .scroll-x-visible::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      rgba(var(--bs-primary-rgb), 0.28),
      rgba(var(--bs-primary-rgb), 0.18)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

/* Food Search + Favorites: compact location cards (grid). */
.food-loc-card {
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow 0.15s ease;
}
.food-loc-card:hover {
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12) !important;
}
.food-loc-card:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
  outline-offset: 2px;
}
/* Icon-only actions (no circle); sit in header column so Open badge does not overlap. */
.food-loc-card-fav-btn,
.food-loc-card-remove-btn {
  padding: 0.15rem;
  line-height: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.food-loc-card-fav-btn:focus-visible,
.food-loc-card-remove-btn:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
  outline-offset: 2px;
  border-radius: 0.2rem;
}
.food-loc-card-fav-btn--off {
  color: rgba(var(--bs-secondary-rgb), 0.9);
}
.food-loc-card-fav-btn--off:hover {
  color: rgba(var(--bs-danger-rgb), 0.55);
}
.food-loc-card-fav-btn--off .food-loc-card-heart-outline path {
  fill: none;
}
.food-loc-card-fav-btn--on {
  color: var(--bs-danger);
}
.food-loc-card-fav-btn--on:hover {
  color: var(--bs-danger);
  filter: brightness(0.92);
}
.food-loc-card-remove-btn {
  color: var(--bs-secondary-color);
}
.food-loc-card-remove-btn:hover {
  color: var(--bs-danger);
}
.food-loc-card-extra-block {
  cursor: default;
}

/* Food Search / Favorites: diet badges on location cards (distinct from cuisine) */
.food-loc-diet-chip {
  border-color: rgba(var(--bs-success-rgb), 0.45) !important;
  background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

/* Food Search / Favorites: underlined clickable chips (phone, scheduled, detail links) */
.food-loc-chiplink-underline {
  text-decoration: underline !important;
  text-underline-offset: 0.12em;
}
.food-loc-chiplink-underline:hover {
  text-decoration: underline !important;
}

.food-loc-toggle-chev {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
}

/* Food Search / Favorites: scheduled-orders-only chip (badge button, same row as other chips) */
button.food-loc-sched-inline {
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
}
button.food-loc-sched-inline:focus-visible {
  outline: 2px solid rgba(var(--bs-warning-rgb), 0.65);
  outline-offset: 2px;
}
button.food-loc-sched-inline--open {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Native <input type="date"> (and datetime-local) often center the value on mobile WebKit;
   utility classes on the input do not reach the internal ::-webkit-datetime-edit tree. */
input.form-control[type="date"],
input.form-control[type="datetime-local"] {
  text-align: start;
  direction: ltr;
}

/* iOS/Safari often paints the value via this pseudo; it does not inherit alignment from the input. */
input.form-control[type="date"]::-webkit-date-and-time-value,
input.form-control[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: start;
}

input.form-control[type="date"]::-webkit-datetime-edit-fields-wrapper,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

input.form-control[type="date"]::-webkit-datetime-edit,
input.form-control[type="datetime-local"]::-webkit-datetime-edit {
  text-align: start;
}

input.form-control[type="date"]::-webkit-datetime-edit-day-field,
input.form-control[type="date"]::-webkit-datetime-edit-month-field,
input.form-control[type="date"]::-webkit-datetime-edit-year-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-day-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-month-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-year-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-minute-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-second-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-millisecond-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-ampm-field,
input.form-control[type="datetime-local"]::-webkit-datetime-edit-text {
  text-align: start;
}

/* Shared: horizontal filter strip + wrapped chips (Food Search, Favorites, …). */
.rh-fs-mfilter-row__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.125rem 0;
}
.rh-fs-mfilter-row__scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.rh-fs-mfilter-row__item .form-check-input {
    margin-top: 0.2em;
}
.rh-fs-mfilter-row__expand {
    min-width: 2.25rem;
    align-self: stretch;
    color: var(--bs-secondary-color, #6c757d);
}
.rh-fs-mfilter-expanded .rh-fs-mfilter-row__expand {
    align-self: flex-start;
    min-height: 0;
}
.rh-fs-mfilter-row__expand-chev {
    display: block;
    flex-shrink: 0;
    color: inherit;
    opacity: 1;
}
.rh-fs-mfilter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.15rem;
}
.rh-fs-mfilter-chips .form-check {
    line-height: 1.25;
}
.rh-fs-mfilter-chips .form-check-input {
    margin-top: 0.12em;
}

/* Favorites filter card: cuisine is the last row — no divider under it (mobile + desktop). */
.rh-fav-filters-row .rh-fs-mfilter-cuisine-col {
    border-bottom: none;
}

/* Favorites filter card: tighter vertical padding inside the box (mobile + desktop). */
.rh-fav-filters-card > .card-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.rh-fav-filters-card .rh-fav-filters-row .rh-fs-mfilter-diet-col {
    padding-bottom: 0.2rem;
}
.rh-fav-filters-card .rh-fav-filters-row .rh-fs-mfilter-cuisine-col {
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    .rh-food-search-toolbar-row {
        --bs-gutter-y: 0.3rem;
    }
    .rh-fav-filters-row {
        --bs-gutter-y: 0.3rem;
    }
    .rh-fs-mfilter-diet-col,
    .rh-fs-mfilter-cuisine-col {
        margin-bottom: 0;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .rh-fs-mfilter-services-col {
        margin-bottom: 0;
        padding-top: 0.15rem;
    }
}

@media (min-width: 992px) {
    .rh-fs-mfilter-diet-col,
    .rh-fs-mfilter-cuisine-col {
        margin-bottom: 0;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .rh-fs-mfilter-services-col {
        margin-bottom: 0;
        padding-top: 0.1rem;
    }
    /* Desktop filter strip: subtle blue-tinted horizontal scrollbar */
    .rh-fs-mfilter-row__scroll.rh-fs-dfilter-row__scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--bs-primary-rgb), 0.32) rgba(var(--bs-primary-rgb), 0.06);
        -ms-overflow-style: auto;
    }
    .rh-fs-mfilter-row__scroll.rh-fs-dfilter-row__scroll::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
    .rh-fs-mfilter-row__scroll.rh-fs-dfilter-row__scroll::-webkit-scrollbar-track {
        background: rgba(var(--bs-primary-rgb), 0.06);
        border-radius: 999px;
        margin-inline: 2px;
    }
    .rh-fs-mfilter-row__scroll.rh-fs-dfilter-row__scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(
            180deg,
            rgba(var(--bs-primary-rgb), 0.3),
            rgba(var(--bs-primary-rgb), 0.16)
        );
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    }
    .rh-fs-mfilter-row__scroll.rh-fs-dfilter-row__scroll::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }
}

.mehko-guidance-page .mehko-guidance h2 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem;
}

.mehko-guidance-page .mehko-guidance .lead {
    font-size: 1.05rem;
}