/* GEBME landing page food thumbnail enhancement - scoped to homepage */
.fl-home .fl-pos-tile--food {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    gap: 2px;
    padding: 3px;
    min-width: 0;
}
.fl-home .fl-pos-tile--food .fl-pos-food-img {
    width: 100%;
    height: clamp(37px, 5.2vw, 75px);
    display: block;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
    background: #f2f4f1;
}
.fl-home .fl-pos-tile--food .fl-pos-tile-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.16;
    font-size: clamp(8px, .72vw, 11px);
    text-align: center;
    width: 100%;
    overflow-wrap: anywhere;
}
.fl-home .fl-pos-cart-line { min-width: 0; }
.fl-home .fl-pos-cart-thumb {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 5px;
    object-fit: cover;
    background: #f2f4f1;
}
.fl-home .fl-pos-line-detail { min-width: 0; }
/* Standalone illustration of the QR phone so the original QR-order feature
   and existing homepage buttons remain real HTML links. */
.fl-home .fl-qr-food-phone {
    box-sizing: border-box;
    width: min(100%, 316px);
    margin-inline: auto;
    border: 2px solid #1b2520;
    background: #fff;
    color: #17221a;
    border-radius: 26px;
    padding: 12px 10px 10px;
    box-shadow: 0 22px 38px rgba(0,0,0,.23);
    font-family: Inter, Arial, sans-serif;
    overflow: hidden;
}
.fl-home .fl-qr-food-phone * { box-sizing: border-box; }
.fl-home .fl-qr-food-header { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:30px; font-size: 11px; }
.fl-home .fl-qr-food-back { color:#687c71; white-space:nowrap; }
.fl-home .fl-qr-food-brand { display:flex; flex-direction:column; align-items:center; color:#2bac50; font-size:15px; line-height:1.15; }
.fl-home .fl-qr-food-brand small { font-size:7px; color:#666; font-weight:400; }
.fl-home .fl-qr-food-header > .bi-list { font-size:17px; }
.fl-home .fl-qr-food-toolbar { display:flex; align-items:center; justify-content:space-around; gap:4px; padding:8px 5px; margin:6px 0 10px; border-radius:11px; background:#2f9c40; color:#fff; font-size:9px; white-space:nowrap; }
.fl-home .fl-qr-food-toolbar b { background:#38bc5b; border-radius:12px; padding:5px 8px; font-size:9px; }
.fl-home .fl-qr-food-tabs { display:flex; justify-content:space-between; gap:3px; border-bottom:1px solid #e8ede9; font-size:7.1px; font-weight:700; white-space:nowrap; }
.fl-home .fl-qr-food-tabs span { padding:0 0 8px; }
.fl-home .fl-qr-food-tabs .active { border-bottom:3px solid #37b95b; }
.fl-home .fl-qr-food-heading { font-weight:800; font-size:13px; color:#1d2965; padding:11px 2px 3px; }
.fl-home .fl-qr-food-item { display:grid; grid-template-columns:74px minmax(0,1fr) 37px; align-items:center; gap:8px; min-height:93px; border-bottom:1px solid #e8ebe9; }
.fl-home .fl-qr-food-item img { width:74px; height:74px; object-fit:cover; border-radius:9px; }
.fl-home .fl-qr-food-item > div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.fl-home .fl-qr-food-item strong { color:#152019; font-size:12px; line-height:1.15; }
.fl-home .fl-qr-food-item > div > span { color:#19b34c; font-size:11px; font-weight:800; }
.fl-home .fl-qr-food-cart-icon { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; background:#27b65a; color:#fff; font-size:18px; }
.fl-home .fl-qr-food-bottom { display:flex; gap:7px; margin-top:9px; font-size:11px; font-weight:800; color:#fff; }
.fl-home .fl-qr-food-bottom > span { width:42px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#28ae54; font-size:18px; }
.fl-home .fl-qr-food-bottom > strong { display:flex; justify-content:center; align-items:center; gap:7px; flex:1; min-height:38px; border-radius:10px; background:#28ae54; white-space:nowrap; font-size:11px; }
.fl-home .fl-qr-food-bottom b { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:100%; background:#fff; color:#102020; }
@media (max-width: 768px) {
    .fl-home .fl-pos-tile--food .fl-pos-food-img { height: clamp(35px, 9vw, 65px); }
    .fl-home .fl-qr-food-phone { max-width:290px; }
}
@media (max-width: 430px) {
    .fl-home .fl-pos-cart-thumb { width:20px; height:20px; min-width:20px; }
    .fl-home .fl-qr-food-phone { max-width:270px; }
}


/* =====================================================
   GEBME POS CART POLISH (October 2026)
   Keeps qty / thumbnail / text / price on the SAME row.
   Add after earlier .fl-pos-cart styles.
   ===================================================== */
.fl-home #gebmeHeroCarousel .fl-pos-cart-lines {
    list-style: none;
    padding-left: 0;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-cart-line {
    display: grid !important;
    grid-template-columns: 18px 30px minmax(0, 1fr) max-content !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 7px 2px !important;
    min-height: 49px;
    min-width: 0;
    border-bottom: 1px solid #e8eee9;
    box-sizing: border-box;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-qty {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    width: auto;
    padding: 2px 3px;
    background: #eaf6e7;
    color: #3e9856;
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-cart-thumb {
    position: static !important;
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 30px;
    height: 34px;
    min-width: 0;
    margin: 0;
    padding: 2px;
    object-fit: contain;
    object-position: center;
    background: #f7faf6;
    border: 1px solid #edf1e9;
    border-radius: 7px;
    box-sizing: border-box;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-detail {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-detail strong {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.01em;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #173b26;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-detail span {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #77857b;
    font-size: 8px;
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-amt {
    position: static !important;
    display: block;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding: 0;
    color: #193e29;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-cart-line {
        grid-template-columns: 16px 25px minmax(0, 1fr) max-content !important;
        gap: 3px !important;
        padding: 6px 1px !important;
    }
    .fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-cart-thumb {
        width: 25px;
        height: 29px;
    }
    .fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-detail strong,
    .fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-amt {
        font-size: 9px;
    }
    .fl-home #gebmeHeroCarousel .fl-pos-cart .fl-pos-line-detail span {
        font-size: 7px;
    }
}
