﻿body, html {
    margin: 0;
    padding: 0;   
    font-family: "Roboto", sans-serif;   
    font-optical-sizing: auto;
    font-style: normal;
    height: 100%;
}

:root {
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --cart-bar-height: 60px;
}

.modal-message{
    text-align:start;
    margin: 1em 0;
}

body.modal-open {
    overflow: hidden; /* Prevent background scrolling */
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overscroll-behavior: none;
}

*{
    margin:0;
    padding:0;
    display: block;
}

.menu-page-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.menu-page-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.menu-page-footer {
    flex: 0 0 auto;
}

.banner-container {
    width: 100%;
    background-color: #c4dbf2;
    display:flex;
    justify-content:space-between;
    align-items:center
}

.banner{
    width: 100%;
    height: auto;
    display:block;
}

@media (min-width: 1025px) {
    .banner-container {
        max-height: 680px;
        overflow: hidden;
    }

    .banner {
        height: 680px;
        object-fit: cover;
        object-position: center;
    }
}

.container {
    padding-top:1em;
    padding-bottom: 1.25rem;
}

.menu-notice {
    margin: 2rem 1rem 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #7a746b;
    opacity: 0.9;
}

.menu-top-notice {
    margin: 1rem 1rem 0;
    padding: 0;
    border-top: 0;
}

.menu-notice p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 500;
}

.menu-notice p + p {
    margin-top: 0.35rem;
    font-weight: 500;
}

.category {
    margin-bottom: 1em;
}

    .category h2 {
        margin-right: 1rem;
        font-size: 1.3rem;
        margin-bottom: 0.9em;
        text-align: end;
        position: relative;
        padding-bottom: 0.35rem;
        letter-spacing: 0.01em;
    }

    .category h2::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: min(140px, 48%);
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(33, 156, 97, 0.15), rgba(33, 156, 97, 0.9));
    }

.product-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

    .product-row:hover {
        background: #f9f9f9;
    }

    .product-row img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 1rem;
    }

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.product-price {
    color: #555;
    font-weight:bold;
    font-size:0.95rem;
}

.product-description {
    font-size: 0.785rem;
    padding-top: 0.2em;
    color: #555;
    display: -webkit-box; /* must be -webkit-box */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* max 6 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    margin-bottom:0.6rem;
    font-weight:bold;
    max-width:600px;
}

#modal-description {
    font-size: 0.825rem;
    line-height: 1.2em; /* important to calculate height */
    color: #555;
    display: -webkit-box; /* must be -webkit-box */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6; /* max 6 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    font-weight:bold !important;
}

.add-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: green;
    margin-left: 1rem;
}

.not-available {
    color: #636060d9;
    font-size: 0.925rem;
}

/* Bottom cart bar */
.cart-bar-shell {
    position: relative;
    height: calc(var(--cart-bar-height) + var(--safe-area-bottom));
    pointer-events: auto;
    z-index: 10;
}

.cart-bar {
    position: relative;
    min-height: var(--cart-bar-height);
    height: calc(var(--cart-bar-height) + var(--safe-area-bottom));
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0.4em 1em calc(0.4em + var(--safe-area-bottom));
    pointer-events: auto;
}



.product-modal-content,

.basket-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .product-modal-content img {
        width: 100%;
        height: 45vh;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
        max-height:450px;
    }

.close-modal {
/*    position: absolute;
    top: 1rem;
    right: 1rem;*/
    font-size: 1.2rem;
    cursor: pointer;
    display:flex;
    justify-content:flex-end;
    margin: 8px 0;
    padding: 4px 8px;
}

.top-row h2 {
    font-size: 1.2rem;
}

.edit-comment {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    resize: none;
    margin-top: 2em;
    width:90%;
}

textarea#product-comment {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    resize: none;
    min-height:86px;
    margin-top:1.4em;
}

.product-extras-section {
    margin-top: 0.9rem;
}

.product-extras-section h3 {
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
}

.product-extras-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-extra-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 40px;
    padding: 0.56rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-extra-option input {
    display: inline-block;
    transform: scale(1);
}

.product-extra-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.24;
}

.product-extra-price {
    color: #555;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
}

.product-option-groups-section {
    margin-top: 0.9rem;
}

.product-option-groups-section h3 {
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
}

.product-option-groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-option-group-title {
    font-weight: 700;
    font-size: 0.89rem;
}

.product-option-group-title::after {
    content: " *";
    color: #c0392b;
}

.product-option-items {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-option-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 40px;
    padding: 0.56rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-option-item input {
    display: inline-block;
    transform: scale(1);
}

.product-option-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.24;
}

.product-option-item-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.product-option-item-description {
    font-size: 0.76rem;
    font-weight: 500;
    color: #667085;
    line-height: 1.2;
}

.product-option-item-price {
    color: #555;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
}

.product-option-groups-message {
    margin-top: 0.75rem;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 700;
}

.product-option-group.missing-selection .product-option-group-title {
    color: #b42318;
}

.product-option-group.missing-selection .product-option-items {
    border: 1px solid #f1a9a0;
    border-radius: 8px;
    padding: 0.35rem;
    background: #fff5f4;
}

@media (max-width: 1024px) {
    .product-extras-section,
    .product-option-groups-section {
        margin-top: 0.8rem;
    }

    .product-extras-section h3,
    .product-option-groups-section h3 {
        font-size: 0.88rem;
        margin-bottom: 0.48rem;
    }

    .product-extra-option,
    .product-option-item {
        min-height: 39px;
        padding: 0.52rem 0.6rem;
        gap: 0.52rem;
    }

    .product-extra-name,
    .product-option-item-name {
        font-size: 0.84rem;
    }

    .product-extra-price,
    .product-option-item-price {
        font-size: 0.82rem;
    }

    .product-option-group-title {
        font-size: 0.85rem;
    }

    .product-option-item-description {
        font-size: 0.73rem;
    }
}

@media (max-width: 640px) {
    .product-extras-list,
    .product-option-items,
    .product-option-groups-list {
        gap: 0.38rem;
    }

    .product-extra-option,
    .product-option-item {
        min-height: 38px;
        padding: 0.48rem 0.54rem;
        border-radius: 7px;
    }

    .product-extra-option input,
    .product-option-item input {
        transform: scale(0.96);
    }

    .product-extra-name,
    .product-option-item-name {
        font-size: 0.82rem;
    }

    .product-extra-price,
    .product-option-item-price {
        font-size: 0.79rem;
    }

    .product-option-group-title {
        font-size: 0.83rem;
    }

    .product-option-item-description {
        font-size: 0.71rem;
    }
}

.quantity-comment-add {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .quantity-control button {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

.modal-add-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content:center;
    align-items:center;
    gap: 12px;

}

.modal-add-container button {
    background: green;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;

}


.basket-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#basket-items {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top:1em;
}

    #basket-items li {
        display: flex;
        justify-content: space-between;
    }

    #basket-items input {
        margin: 0.2rem 0;
    }


.total-basket{
    display:flex;
    width:100%;
   
}

.total-basket span{
    display:flex;
    gap: 2px;
}


.top-row {
    flex-shrink: 0; /* always visible */
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:4px 0;
}

.basket-content {
    flex: 1 1 0; /* takes remaining space */
    min-height: 0;
    overflow-y: auto; /* scroll only items */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.basket-footer {
    flex-shrink: 0; /* always visible */
    margin-top: .4rem;
    padding-top: .4rem;
    padding-bottom: max(.1rem, var(--safe-area-bottom));
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Basket items list */
#basket-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display:flex;
    flex-direction:column;
    gap:6px;
    border-radius:12px;
    padding:0.4rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

    #basket-items li {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid #ccc;
    }

/* Basket item top row: name + remove button */
.basket-item-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.basket-item-name {
    font-weight: bold;
    opacity:50%;
    font-size: 0.925rem;
}

.item-details {
    flex: 1;
    min-width: 0;
}

/* Basket controls row: quantity + price */
.basket-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .basket-quantity button {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        font-weight: bold;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: #f9f9f9;
        cursor: pointer;
    }

.basket-item-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.basket-item-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.basket-item-actions-top {
    margin-bottom: 0.45rem;
}

.basket-edit-item,
.basket-remove-item {
    border: none;
    border-radius: 10px;
    min-height: 34px;
    padding: 0.4rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 82px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.basket-edit-item {
    background: #f3f5f7;
    color: #273444;
}

.basket-remove-item {
    background: #fff4f4;
    color: #b42318;
}

.basket-edit-item i,
.basket-remove-item i {
    font-size: 0.72rem;
}

.basket-extra-chip {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #eef5ea;
    color: #2c6b2f;
    font-size: 0.8rem;
    font-weight: 600;
}

.basket-option-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.basket-option-line {
    color: #4a5565;
    font-size: 0.82rem;
    font-weight: 600;
}

.basket-comment-summary {
    margin-top: 0.18rem;
    color: #6b7280;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Remove item button style */
.remove-item {
    background: transparent;
    border: none;
    color: #e15959;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}



.total-basket {
    font-weight: bold;
    font-size: 1.2rem;
}

#submit-order {
    background: #219c61;
    min-height: 36px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    display: flex;
    gap: 4px;
}

#submit-order i{
    font-size:0.6rem;
    display:inline-block;
    align-self:center;
}

    #submit-order:disabled {
        background: #999;
        cursor: not-allowed;
    }


.basket-item-image-small {
    height: 50px;
    width: 70px;
    object-fit: cover;
    border-radius:4px;
}


.remove-product{
    display:flex;
    justify-content:flex-end;
}

.item-details{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.item-price{
    font-weight:bold;
    font-size: 0.925rem;
}

#modal-price {
    font-weight: bold;
}

.payment-method-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .8rem;
    font-weight:bold;
    font-size: 0.875rem;
}

    .payment-method-buttons span{
        max-width: 35%;
    }

    .payment-method-buttons .buttons-container {
        display: flex;
        gap: 0.5rem;
    }

    .payment-method-buttons .payment-btn {
        min-height: 36px;
        padding: 0.38rem 0.96rem;
        border-radius: 8px;
        border: 1px solid #ccc;
        background: #f0f0f0;
        cursor: pointer;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }

        .payment-method-buttons .payment-btn i {
            font-size: 1.1rem;
        }

        .payment-method-buttons .payment-btn.active {
            background: #219c61;
            color: #fff;
            border-color: #219c61;
        }

#order-status-title {
    margin-bottom: .4em;
}

@media (min-width: 768px) {
    .image-desc-container{
        display:flex;
        flex-direction:row;
        gap:1em;
    }
    #modal-image{
        max-width: 500px;
        margin-bottom:0;
        max-height: 350px;
    }

    .split-info{
        max-width:600px;
        align-self:flex-end;
    }
}

.status {
    font-size: 0.975rem;
    padding: .75em;
    display:flex;
    justify-content:center;
}

.status.offline{
    background-color:indianred;
    color:white
}

.status.online {
        background-color: #219c61;
        color: white;
            display:none;
    }

.menu-filter-bar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    justify-content: center;
    padding: 0.45rem 0.85rem 0.35rem;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.98), rgba(250, 250, 250, 0.93));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform: translateY(0);
}

.menu-filter-bar.menu-filter-hidden {
    transform: translateY(calc(-100% - 6px));
    opacity: 0.02;
    pointer-events: none;
}

body.modal-open .menu-filter-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 8px));
}

.menu-filter-spacer {
    display: none;
}

.menu-filter-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #eef1f4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.menu-filter-tab {
    border: none;
    border-radius: 999px;
    padding: 0.58rem 1.1rem;
    background: transparent;
    color: #4f5968;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-filter-tab.active {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.menu-filter-tab:not(.active):hover {
    color: #1f2937;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .menu-filter-bar {
        padding: 0.38rem 0.75rem 0.3rem;
    }

    .menu-filter-tabs {
        gap: 0.35rem;
        padding: 0.28rem;
    }

    .menu-filter-tab {
        padding: 0.52rem 0.95rem;
        font-size: 0.8rem;
    }

    .menu-filter-spacer {
        display: none;
    }
}

@media (max-width: 640px) {
    .menu-filter-bar {
        padding: 0.3rem 0.65rem 0.22rem;
    }

    .menu-filter-tabs {
        width: 100%;
        max-width: 260px;
        gap: 0.28rem;
        padding: 0.24rem;
    }

    .menu-filter-tab {
        flex: 1;
        min-height: 38px;
        padding: 0.45rem 0.75rem;
        font-size: 0.78rem;
    }

    .menu-filter-spacer {
        display: none;
    }
}


.product-modal,
.basket-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Base color like paper */
    background-color: #fafafa;
    /* Add subtle paper texture */
    background-repeat: repeat;
    background-size: auto;
    z-index: 20;
    overflow-y: auto;
    box-sizing: border-box;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: .6rem .6rem calc(.6rem + var(--safe-area-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* Optional subtle shadow to pop modal */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.basket-popup {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}

.product-modal-content,
.final-modal-content,
.basket-content {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    background-color:white;
}
.product-modal {
    filter: contrast(1.02) brightness(1.01);
}

.product-modal-content{
        padding:1em;

}

    .product-modal-content img {
        width: 100%; /* responsive */
        max-width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
        max-height: 250px;
    }

    .product-modal-content > * {
        max-width: 100%;
        overflow-wrap: break-word;
    }

.rejection-reason {
    color: #ffffff;
    font-weight: bold;
    display: block; /* optional if you want it on a new line */
    margin-top: 0.5rem;
    background-color: #b11717;
    padding: 0.2em;
}

#order-status-message{
    margin:0 1em;
}

#table-selector-container{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap: 10px;
    font-weight: bold;
    margin-top: 1em;

}

#table-number{
    text-align:center;
    border-radius:20px;
    font-size: 1rem;
    border:none;
    padding:.1em;
    padding-left:12px;
    border: 1px solid #fbfbfb;
    min-height:22px;
    font-weight: bold;
}

.info{
    font-size: 0.815rem;
    margin-top: 6px;
    color: #6f6f6f;
}



.table-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.table-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display:flex;
    flex-direction:column;
}   

    .table-modal-content h2 {
        text-align:start;
        margin:0
    }

    .table-modal-content input {
        padding: 0.5rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .table-modal-content button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        background: #219c61;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .table-modal-content button:hover {
            background: #1a7a4c;
        }

.table-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-info{
    display:flex;
    text-align:start;
    margin: .6rem 0;

    font-size: 0.835rem;
    color: #333;
    font-weight:bold;
    opacity: 0.9;

}

.table-number-submit{
    align-self:flex-end;
}

.table-confirm-actions {
    display: flex;
    flex-direction:column;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.table-confirm-secondary {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

#char-count{
    margin-bottom: 12px;
}

/* Loader spinner */
.status-loader {
    margin: 1rem auto;
    border: 6px solid #f3f3f3; /* light grey */
    border-top: 6px solid #219c61; /* green */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.disclaimer-container {
    display: flex;
    align-items: center; /* vertical center the checkbox with text */
    gap: 1rem;
    margin-top: 0.8rem;
    font-size: 0.925rem;
    color: #555;
    display: flex;
    flex-direction: row-reverse;
    justify-content:flex-end;
    background-color:#ededed;
    padding: .4em;
}

    .disclaimer-container input[type="checkbox"] {
        transform: scale(1.4);
        cursor: pointer;
        margin-top: 0; /* remove extra top margin */
        margin-right: 8px;
    }

    .disclaimer-container label {
        line-height: 1.2; /* ensures proper vertical alignment */
        cursor: pointer;
        font-size: 0.825rem;
        flex:1;
        font-weight: bold;
        gap: 4px;
        width: 100%;
    }


    .disclaimer-container label a {
        display:inline-block;
    }




/* Modal overlay */
final-product-modal, #final-order-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

    /* Modal content */
    .modal-content,
    #order-status-modal .modal-content {
        background: #fff;
        padding: 2rem;
        border-radius: 12px;
        max-width: 450px;
        width: 90%;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        position: relative;
        text-align: center;
        font-family: Arial, sans-serif;
    }

/* Close button */
    final-product-modal.close-modal {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
        transition: color 0.2s;
    }

        final-product-modal.close-modal:hover {
            color: #f44336;
        }

/* Order Details button */
.order-details-btn {
    background: #219c61;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    min-width: 200px;
    font-weight:bold
}

.order-edit-btn {
    background: #219c61;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    min-width: 200px;
    font-weight: bold
}


.order-details-btn:hover {
    background: #1b7a4d;
    transform: scale(1.05);
}

/* Loader */
#order-status-loader {
    margin-top: 1rem;
    display: none;
}

/* Order message */
#order-status-message {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: #333;
}

#final-order-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    display:none;
}

/* FINAL ORDER MODAL (same behavior as other modals) */
.final-product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #fdf9f1;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');

    z-index: 2000;
    overflow-y: auto;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1rem;
}

/* Content styled same as other modals */
.final-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

    width: 100%;
    max-width: 500px;

    padding: 1.5rem;
    position: relative;
}

/* Close button */
.final-modal-content .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Make final modal behave EXACTLY like product-modal */
.final-product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* COPY from .product-modal */
    background-color: #fdf9f1;
/*    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
*/    background-repeat: repeat;
    background-size: auto;
    z-index: 20;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: .6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Make content identical to product-modal-content */
.final-modal-content {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 1.2rem);
    max-height: calc(100dvh - 1.2rem);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    padding: 1em;
    overflow: hidden;
}

/* Ensure close button behaves same */
.final-modal-content .final-close-modal {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1.2rem;

}

.order-details-content{
   width:100%;
   flex:1 1 auto;
   min-height:0;
   display:flex;
   flex-direction:column;
   justify-content:flex-start;
   gap:6px;
   overflow-y:auto;
   -webkit-overflow-scrolling: touch;

}

@media (max-width: 768px) {
    textarea#product-comment,
    .basket-comment input,
    #basket-items input,
    #table-number,
    .table-modal-content input,
    .payment-method-buttons .payment-btn,
    #submit-order,
    .quantity-control button,
    .basket-quantity button,
    .modal-add-container button {
        font-size: 16px;
    }
}

strong{
    margin-top: 6px;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .order-details li {
        font-weight: bold;
        font-size: 1rem;
    }

.bottom{
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-end;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.disclaimer {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.bottom img{

    height:80px;
    border-radius: 4px;
}

.order-item-main-line,
.order-top {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap: 6px;
    margin-top:4px;
}

.order-item-base-price {
    font-size: 0.84rem;
    color: #667085;
    font-weight: 700;
    margin-top: 0.2rem;
}

.order-item-options,
.order-item-extras {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.order-details-content .order-item-extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

@media (max-width: 640px) {
    .order-details-content .order-item-extras {
        grid-template-columns: 1fr;
    }
}

.order-extra-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #e4e7ec;
    background: #f8fafc;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.order-extra-line > * {
    width: 100%;
}

.order-item-options .order-extra-line {
    background: #f6f4fb;
    border-color: #e3dbf4;
}

.order-item-extras .order-extra-line {
    background: #f4f8ee;
    border-color: #dce8cb;
}

.order-modifier-label {
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
}

.order-modifier-text {
    width: 100%;
    font-weight: 700;
    color: #2f3640;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.order-modifier-price {
    font-weight: 800;
    color: #1b7f46;
    align-self: flex-start;
    text-align: left;
}

.order-item-math {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #137a52;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

li {
    margin: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom:6px;
}

.order-details .comment {
    color: #666;
    font-size: 0.875rem;
    padding: .2em;
    margin-top: .2em;
    font-weight:normal;
}

.new-order-btn,
.continue-order-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    margin-top: 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    font-weight:bold;
}

.final-payment-method {
    color: #ffffff;
    background-color: black;
    padding: .3em;
    font-weight: bold;
    font-size: 0.875rem;
    margin-top: .2rem;
}

.thank-you {
    display: inline-block;
    padding: 8px 12px;
    color: #333; /* elegant dark text */
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #ddd; /* subtle border for sophistication */
    text-align: center;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
}

#submit-hints{
    font-size: 0.855rem;
}

.order-top{
    display:flex;
    flex-direction:row;
    gap: 0.2em;
    align-items:center;
    justify-content:space-between;
    border-bottom: 1px solid #ccc;
    padding-top: .6em;
    padding-block: .4em;
}

.order-time{
    font-size: 0.825rem;
}

