.powered {
    display: inline-block;
    width: 22px;
    height: 21px;
    margin-left: 6px;
    vertical-align: middle;
    background: url(https://www.reservator.es/reservatorbook/app/web/img/backend/unnamed3.png) no-repeat center;
    background-size: contain;
}

footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}
footer .footer-restaurant {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
footer .footer-powered {
    font-size: 12px;
}
footer .powered-link {
    color: #999;
    text-decoration: none;
}
footer .powered-link:hover {
    color: #666;
}

.h4carta{
    margin-bottom: unset;
}
.row{
    margin-bottom: 10px;
}
.card-body{
    padding: unset;
}
.card-body .nav-tabs{
    margin-bottom: 5px;
}

.title-h h3 {
    /* Without this, the h3 falls back to Bootstrap's default heading margin
       (~0.5rem bottom) instead of 0, making the title bar noticeably taller.
       font-size/color are already covered by .title-h .h3carta below and by
       menu-theme.css's --accent-text-color, both more specific than this. */
    margin: 0px;
}
.title-h .h3carta {
    font-size: 15px;
    font-weight: bold;
    padding-left: unset !important;
    text-align: left;
}
.title-h {
    margin-bottom: 10px;
    /* border-color and background-color are set per-restaurant in menu-theme.css */
    border: 1px solid;
    padding: 8px;
    text-align: center;
}
.logofix {
    display: inline;
}
.subtitle-h .h3carta{
    font-size: 15px;
    padding-left: 5px;
    font-weight: normal;
}
.h4carta {
    margin-bottom: unset;
    margin-left: unset;
    font-size: 14px;
}

.container {
    padding-right: 10px;
    padding-left: 10px;
}
.description {
    line-height: 15px;
    max-width: 88% !important;
    font-size: 13px;
}
.subtitle-h {
    padding: unset;
    margin-bottom: 10px;
    border: unset;
}
#tab-menu{
    font-size: 12px;
}

.fa {
    background: unset;
    color: var(--page-text-color, #000000);
    font-size: 13px;
    padding: 2px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-left: 1px;
    margin-right: 1px;
}
.lity-close {
    color: #000000;
}


.nav-tabs>li>a {
    font-weight: bold;
    border-radius: 0;
    color: var(--page-text-color, #000000);
}

p {
    margin-bottom: unset;
}

.lds-dual-ring {
    width: 80px;
    height: 80px;
    display: block;
    margin: auto;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #026580 transparent #f68000 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#zones .button {
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-family, "Open Sans", sans-serif);
    padding: 5px 10px;
    transition: all 0.2s ease-in-out;
    margin: 3px;
    min-width: 70px;
    text-align: center;
    display: inline-block;
    background-color: #f4f4f4;
    outline: 2px solid #dddddd;
    color: #000000;
}
#zones .button:hover {
    color: #fff;
    background-color: #000000;
    outline: 2px solid #000000;
}
#zones .button:active {
    background-color: #000000;
    outline: 5px solid #000000;
}
#zones .button.active {
    background-color: #ffffff;
    outline: 2px solid #000000;
    color: #000000;
}

.product-row-favorite {
    margin-right: 0px;
    margin-left: 0px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.product-row-favorite .product-layout {
    padding: unset;
}

.product_price_left{
    border-left: solid 1px;
    margin-left: 3px;
    padding-left: 3px;
}

/* Base typography — matches the old oc-light stylesheet.css defaults. Font family is
   driven by --font-family (see menu-theme.css header) so a restaurant's uploaded
   custom font, if any, applies here automatically. */
body {
    font-family: var(--font-family, "Open Sans", sans-serif);
    font-size: 14px;
    line-height: 20px;
}

body a, .product_name, body, .product_price, .fa{
    color: var(--page-text-color, #000000);
}
body .product-row-favorite{
    border: solid #000000 2px !important;
}
.productMenu {
    font-size: 13px;
    line-height: 15px;
}

@media (min-width: 768px) {
  body, .h4carta {
    font-size: 1.2rem;
  }
  .description, #tab-menu {
    font-size: 1rem;
  }
  .title-h .h3carta {
    font-size: 1.25rem;
  }
  .productMenu {
    font-size: 1.1rem;
    line-height: unset;
  }
}
.nav-tabs {
    border-bottom: unset !important;
}
.nav-tabs .nav-link {
    border-top-left-radius: unset !important;
    border-top-right-radius: unset !important;
}
.nav-tabs .nav-link:not(.active):hover {
    border: unset !important;
    color: var(--page-text-color, #000000) !important;
}

.description{
    margin-left: 15px;
}
.favoriteTabCss{
    margin-left: 30px;
}
.favoriteTabCss .descriptioncarta p{
    margin-left: 15px;
}

.subtitle-h.title1 { content: "\25CF"; padding-left: 5px; }
.subtitle-h.title2 { content: "\25C6"; padding-left: 15px; }
.subtitle-h.title3 { content: "\25CB"; padding-left: 25px; }
.subtitle-h.title4 { content: "\2022"; padding-left: 35px; }

.subtitle-h.title1 h3.h3carta::before { content: "\25CF"; }
.subtitle-h.title2 h3.h3carta::before { content: "\25C6"; }
.subtitle-h.title3 h3.h3carta::before { content: "\25CB"; }
.subtitle-h.title4 h3.h3carta::before { content: "\2022"; }
.subtitle-h h4 { margin-left: 15px; }

.title-mg {
    background-color: lightgrey;
    margin-top: 5px;
    padding-left: 5px;
}
.title-mg .h3carta{ margin-bottom: 5px; }
.menu_item { font-size: 15px; font-weight: normal; }
.menu-item-row{ margin-left: 15px; margin-bottom: 2px; }
.title-mg-cat .h3carta{ margin-bottom: unset; }
.menu-item-row .product-layout{ padding-left: unset !important; }

/* Scroll-to-top button — same floating-button language as #cart-floating, opposite
   corner (bottom-right, cart is top-right) so they never overlap. Hidden until you've
   actually scrolled (see js/scrolltop.js) — mostly useful on mobile once the carta
   gets long. Colors (background/text) are per-restaurant, set in menu-theme.css. */
#scroll-top-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, filter .2s ease;
}
#scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#scroll-top-btn:hover { filter: brightness(0.85); }
#scroll-top-btn i { font-size: 18px; }

/* Floating cart */
#cart-floating {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
#cart-floating i { font-size: 18px; }

/* Order-list icon: default is the FontAwesome <i>; a restaurant can override it with
   an arbitrary glyph (see cart_icon in abel_config_css / getCartIconHtml() in
   helpers.php), always wrapped in this class so it sizes consistently everywhere
   without needing per-restaurant CSS. */
.cart-icon {
    font-size: 1.3em;
    line-height: 1;
}
#cart-floating .cart-icon { font-size: 25px; }
#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Cart panel */
#cart-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 90vw;
    height: 80vh;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}
#cart-panel.hidden { display: none; }

.cart-header strong { font-size: 16px; }
.cart-header-actions { display: flex; align-items: center; gap: 16px; }
#cart-clear { cursor: pointer; color: #fff; font-size: 18px; }
#cart-clear:hover { opacity: .7; }
#cart-close { font-size: 26px; cursor: pointer; line-height: 1; }
#cart-close:hover { opacity: .7; }

#cart-items-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    border-radius: 40px;
}
#cart-items-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}
#cart-items-wrapper.scrolled-bottom::after { display: none; }
#cart-items {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#cart-items::-webkit-scrollbar { display: none; }

.cart-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #f5f5f5;
    gap: 4px;
}
.cart-item-dec,
.cart-item-inc {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #555;
    padding: 0;
}
.cart-item-dec:hover,
.cart-item-inc:hover { background: #f5f5f5; border-color: #999; }
.cart-item-qty { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; padding: 0 6px; }
.cart-item-name { font-size: 14px; font-weight: 600; color: #333; }
.cart-item-name-es { font-size: 12px; color: #999; }
#cart-total { padding: 12px 16px; text-align: right; font-size: 16px; font-weight: 700; color: #333; border-top: 2px solid #f0f0f0; flex-shrink: 0; }

.fly-img {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: transform .7s ease-in-out, opacity .7s;
}

.cart-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.cart-toast.show { opacity: 1; }

@keyframes cartPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
#cart-floating.pulse { animation: cartPulse .4s ease-in-out; }
