/* @import url('https://fonts.googleapis.com/css2?family=Arima:wght@100;200;300;400;500;600;700&family=Overpass:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');
/* font-family: 'DM Serif Display', serif; */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');
/* font-family: 'DM Sans', sans-serif; */

:root {
    --titles-font: 'DM Serif Display', serif;
    --body-font: 'DM Sans', sans-serif;
    --width_qta: 84px;
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    /* per vecchio Edge/IE */
    -webkit-user-select: none;
    /* per Safari */
    user-select: none;
}

* {
    box-sizing: border-box;
}

.disable-dbl-tap-zoom {
    touch-action: manipulation;
}

input[type="button"] {
    touch-action: manipulation;
}

#obscurer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.6);
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 1005;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
}


#window::-webkit-scrollbar,
#window::-webkit-scrollbar {
    width: 8px;
    /* width of the entire scrollbar */
}

#window::-webkit-scrollbar-track {
    background: var(--grigio_alpha);
    /* color of the tracking area */
    border-radius: 5px;
}

#window::-webkit-scrollbar-thumb {
    background-color: var(--submain);
    /* color of the scroll thumb */
    border-radius: 20px;
    /* roundness of the scroll thumb */
    border: 3px solid var(--grigio);
    /* creates padding around scroll thumb */
}

#window {
    display: none;
    position: relative;
    width: 90%;
    max-width: 480px;
    height: fit-content;
    opacity: 1;
    background-image: linear-gradient(to right bottom, #edebea, #f1efee, #f6f4f3, #faf8f7, #fffdfc);
    color: #202020;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-align: center;
    padding: 24px 20px;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.window-close-x {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: 500;
    color: #a8a29a;
    cursor: pointer;
    line-height: 1;
    z-index: 1010;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.window-close-x:hover {
    color: #4a453f;
    transform: scale(1.1);
}

.window-close-x:active {
    transform: scale(0.95);
}

/* #window h3{
    color: #202020;
    background-color: #ef871c;
    color: #fff;
    border-radius: 6px;
    width: fit-content;
    margin:auto auto;
    padding: 5px 8px;
} */

#window:has(p) {
    background: none !important;
    background-color: white !important;
    color: black !important;
}

#window p {
    font-size: 1.1em;
}

#window span {
    max-width: 80%;
    display: inline-block;
    margin: 0 auto;
}

.title-font {
    font-family: var(--titles-font);
    font-weight: 400;
}

.body-font {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 400;
}

.prc {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #fff;
    /* font-family: 'Arima', cursive; */
    font-weight: 300;
    margin-top: 40px;
}

#logo {
    width: 16%;
    max-width: 128px;
    height: auto;
    margin: 0;
    position: absolute;
    float: left;
    top: 10px;
    left: 15px;
    z-index: 10;
}

.prc h1 {
    margin: 10px auto;
}

.prc h5 {
    margin-top: 0;
}

.prc p {
    font-size: 1.1em;
}

.caption {
    font-size: 18px;
    border: 0;
    border-top: 3px solid #10929d;
    color: #4A595A;
    padding: 10px;
    padding-bottom: 7px;
    width: 90%;
    margin: auto auto;
}

.inline_image {
    width: 32px;
    margin: 0;
    margin-top: -3px;
    margin-right: 3px;
    vertical-align: middle;
}

.myhr {
    width: 100%;
    height: 0;
    margin: 0 auto;
    border: 0;
    border-bottom: 1px solid #999;
    margin-top: 5px;
}

.hr2 {
    width: 90%;
    height: 0;
    margin: 0 auto;
    border: 0;
    border-bottom: 1px dashed #999;
    margin: 20px 5%;
}

.corpo {
    position: relative;
    width: 98%;
    margin: 30px auto;
    /* font-family: 'Overpass', sans-serif; */
    /* font-weight: 300; */
    /* font-size: 18px; */
    background-color: #fff;
    /* background-image: url('../img/filigrana.png');
    background-repeat: repeat-y;
    background-position: top center; */
}

.corpo table {
    width: 100%;
}

.corpo .title-font {
    margin: 5px auto;
}

.corpo td {
    border-bottom: 1px solid #ccc;
    /* line-height: 24px; */
    /* min-height: 35px; */
    padding-top: 4px;
    padding-bottom: 4px;
}

.nome:not(.nome div) {
    font-size: 1.20em;
    padding-left: 5px;
}

.nome-piatto-cliccabile {
    cursor: pointer;
}

.categoria {
    background-color: transparent !important;
    cursor: pointer;
}

.valuta {
    text-align: right;
    /* font-family: 'Arima', cursive; */
    font-weight: 500;
}

.descrizione {
    font-style: italic;
    margin-left: 5px;
    font-size: 12px;
}

.dish {
    width: 70%;
    height: auto;
    margin: 30px 15%;
    border-radius: 6px;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
}

td.qta {
    width: var(--width_qta);
}

.select_qta {
    width: var(--width_qta);
    background-color: #10828Dcf;
    /* background-color: #C3FCF1; */
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 32px;
}

.select_qta .inside_select_qta {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 2px;
    text-align: center;
}

.select_qta.disabled {
    background-color: #505050;
}

.select_qta.disabled .type_button {
    background-color: #aaa;
    color: #fff;
}

.select_qta .type_button {
    cursor: pointer;
    background-color: #FFFFFFfa;
    color: #404040;
    font-weight: 400;
    font-size: 18px;
    padding: 0;
    line-height: 24px;
}

.select_qta .qta {
    background-color: transparent !important;
    color: #fff;
    font-size: 12px;
    /* background-color: #ff0000ff; */
}

.totale {
    background-color: #eee !important;
}


.selected {
    background-color: rgba(239, 135, 28, 0.4);
}

.row {
    height: auto;
    position: relative;
    width: 100%;
    text-align: right;
    margin: 5px auto;
    margin-bottom: 10px;
}

.row_left {
    text-align: left;
}

.recap {
    /* font-family: 'Arima', cursive; */
    box-shadow: 1px 1px 2px #787878;
    font-weight: 400;
    cursor: pointer;
    background-color: #ef871c;
    color: #fafafa;
    padding: 0;
    padding: 8px 10px;
    padding-bottom: 7px;
    width: fit-content;
    min-width: 120px;
    border-radius: 4px;
    border: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.recap:active {
    box-shadow: none;
    margin-top: 1px;
}

td.prezzo.valuta {
    width: 45px;
}

.div_prezzo {
    width: auto;
    min-width: 45px;
    margin: auto;
    color: #606060;
    margin-right: 8px;
}

.div_prezzo_2 {
    width: fit-content;
    display: flex;
    aspect-ratio: 1 / 1;
    background-color: #ab0702cc;
    color: #ededed;
    font-size: 12px;
    padding: 4px;
    border-radius: 50%;
    font-weight: bold;
    margin: 0;
    margin-right: 5px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.div_prezzo_3 {
    width: auto;
    min-width: 40px;
    margin: auto;
    color: #606060;
    margin-right: 5px;
    background-image: url("../img/price_label.png");
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
    /* line-height: 14px; */
}

.confirm {
    /* background-color: #84EF1C; */
    /* background-color: #A987FF; */
    /* background-color: #C3FCF1; */
    background-color: #00BC62;
    /* color: #fafafa; */
    /* margin-bottom: 10px; */
    /* margin-top: 10px; */
}

.icon_dish {
    -webkit-filter: drop-shadow(1px 1px 2px #404040);
    filter: drop-shadow(1px 1px 2px #404040);
}

#tavolo,
#coperti {
    min-width: 60px;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    border: 1px solid #e3ddd7;
    background-color: #fff;
    color: #333;
    text-align: left;
    display: block;
    margin: 8px 0 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

tr[codice_articolo="13"],
tr[codice_articolo="68"] {
    /* background-color: yellowgreen; */
    background-color: #64e0ebcf;
}

.prc p b,
.cassa_veloce {
    color: #ef871c;
    font-size: 1.2em;
}

.row:first-child {
    position: sticky;
    top: 0;
    background-color: #fefefe;
    padding-bottom: 5px;
}

#window p input {
    margin-bottom: 0;
}

.confirm-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-summary {
    padding: 0 0 16px;
    border-bottom: 1px solid #efe8df;
    margin-bottom: 16px;
}

.flow-summary h2 {
    margin: 0 0 4px;
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

.flow-summary h1 {
    margin: 0 0 6px;
    font-size: 2.2em;
}

.flow-summary span {
    font-size: 0.9em;
}

.flow-section {
    padding: 16px 0;
    border-bottom: 1px solid #f5f3f1;
}

.flow-section:last-of-type {
    border-bottom: none;
}

.flow-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.flow-section-left {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: flex-start;
}

.flow-section-icon {
    font-size: 1.2em;
    color: #2d8a88;
    margin-top: 2px;
    flex-shrink: 0;
}

.flow-section-text {
    flex: 1;
}

.flow-section-title {
    margin: 0 0 2px;
    font-size: 1em;
    font-weight: 700;
    color: #1f1c19;
}

.flow-section-desc {
    margin: 0;
    font-size: 0.86em;
    color: #8a8680;
}

.flow-separator {
    height: 0;
    border: none;
    margin: 0;
}

.flow-counter-inline {
    width: fit-content;
    flex-shrink: 0;
}

.flow-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
}

.flow-choices-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.flow-choice {
    border: 1px solid #e3ddd7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    background: #faf9f8;
    color: #4d463f;
    transition: all 0.2s ease;
}

.flow-choice:active {
    transform: scale(0.98);
}

.flow-choice.recap {
    background-color: #00BC62;
    color: #fff;
    border-color: #00BC62;
}

.flow-tavolo-wrap {
    margin-top: 12px;
}

.flow-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e3ddd7;
    background: #fff;
    font-size: 0.95em;
    font-family: var(--body-font);
    transition: all 0.2s ease;
}

.flow-input:focus {
    outline: none;
    border-color: #2d8a88;
    box-shadow: 0 0 0 3px rgba(45, 138, 136, 0.1);
}

.flow-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: space-between;
}

.flow-button-back {
    background: #f0ebe5;
    color: #8a7f78;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flow-button-back:active {
    transform: scale(0.98);
}

.flow-button-back i {
    margin-right: 6px;
}

/* .flow-choices .confirm {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 0.95em !important;
    flex: 1;
} */

.confirm i {
    margin-left: 8px;
}

/* PREMIUM MODAL DESIGN */
.flow-premium {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.premium-header {
    text-align: center;
    padding-bottom: 12px;
}

.premium-header-label {
    margin: 0;
    font-size: 0.85em;
    color: #999;
    font-weight: 500;
    font-family: var(--body-font);
}

.premium-header-amount {
    margin: 4px 0;
    font-size: 2.2em;
    font-weight: 700;
    color: #ef871c;
    font-family: var(--body-font);
}

.premium-header-subtitle {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    font-family: var(--body-font);
}

.premium-divider {
    height: 1px;
    background: #e8e5e0;
    margin: 12px 0;
    border: none;
}

.premium-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
}

.premium-section-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.premium-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45, 138, 136, 0.1);
    color: #2d8a88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
}
.premium-icon-circle#table {
    background: #f7f2ea;
    color: #b5824c;
}

.premium-section-text {
    flex: 1;
    text-align: left;
}

.premium-section-title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 700;
    color: #1f1c19;
    font-family: var(--body-font);
}

.premium-section-subtitle {
    margin: 2px 0 0;
    font-size: 0.8em;
    color: #8a8680;
    font-family: var(--body-font);
}

.premium-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e3ddd7;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
    gap: 2px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-top: 4px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
}

.stepper-btn:active {
    transform: scale(0.85);
}

#coperti {
    width: 40px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    color: #1f1c19;
    font-family: var(--body-font);
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.premium-segmented {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-top: 4px;
}

.premium-segment {
    flex: 1;
    min-width: 64px;
    padding: 8px 16px;
    border: 1.5px solid #d8d5d0;
    border-radius: 8px;
    background: #faf9f8;
    color: #7f7f7f;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--body-font);
}

.premium-segment:active {
    transform: scale(0.96);
}

.premium-segment[data-value="yes"].active {
    background: #e2f0ed;
    color: #166961;
    border-color: #bce0da;
}

.premium-segment[data-value="no"].active {
    background: #fdf2f2;
    color: #9b1c1c;
    border-color: #fbd5d5;
}

.tavolo-reveal {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tavolo-reveal.visible {
    opacity: 1;
    max-height: 100px;
    margin: 16px 0 0 0 !important;
}

.flow-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d8d5d0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9em;
    font-family: var(--body-font);
    color: #333;
    transition: all 0.2s ease;
}

.flow-input::placeholder {
    color: #c0bbb5;
}

.flow-input:focus {
    outline: none;
    border-color: #2d8a88;
    box-shadow: 0 0 0 3px rgba(45, 138, 136, 0.1);
}

.premium-footer {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: space-between;
    align-items: center;
}

.premium-btn-back {
    background: #f5f3f1;
    border: 1px solid #e8e5e0;
    color: #777;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--body-font);
}

.premium-btn-back:active {
    transform: scale(0.96);
}

.premium-btn-confirm {
    flex: 1;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.9em !important;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner_table {
    margin: 15px 0;
    /* background-image: linear-gradient(to right bottom, #e8bd93, #e9c6a3, #e9cfb3, #ead7c4, #eae0d5); */
    background-image: linear-gradient(to right bottom, #edebea, #f1efee, #f6f4f3, #faf8f7, #fffdfc);
    border-radius: 8px;
    padding: 8px;
    border-spacing: 0;
}

.inner_table td {
    border-bottom: 0;
    padding: 6px 2px;
}


.inner_table tr:first-child td:first-child,
.inner_table tr:last-child td:first-child {
    border-radius: 5px 0 0 5px;
}

.inner_table tr {
    border-radius: 5px;
}

.inner_table tr:first-child td:last-child,
.inner_table tr:last-child td:last-child {
    border-radius: 0 5px 5px 0;
}

#message {
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

/* body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
} */

.steps-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    text-align: center;
    margin: 15px auto;
    background-image: linear-gradient(to right bottom, #edebea, #f1efee, #f6f4f3, #faf8f7, #fffdfc);
    border-radius: 8px;
    padding: 14px 8px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000;
}

.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* background-color: #ef871c; */
    background-color: #10828Dcf;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    margin-bottom: 10px;
}

.description {
    font-size: 1em;
}

.code_success {
    border: 4px solid #00BC62;
    border-radius: 8px;
    width: fit-content;
    margin: 40px auto;
}


@media screen and (max-width: 850px) {}