body {
    overflow-x:hidden !important;
}

.restaurant-modal {
    display: flex; /* Changed from block to flex to center content */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 255); /* Semi-transparent background */
}

.restaurant-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.restaurant-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.restaurant-tab {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: color 0.3s ease;
}

.restaurant-tab.active {
    color: #c09f52; /* Gold-like color for active tab */
    border-bottom: 2px solid #c09f52;
}

.restaurant-tab-content {
    display: none;
    padding: 20px 0;
}

.restaurant-tab-content.active {
    display: block;
}

.restaurant-tab-content p {
    margin-bottom: 15px;
    color: #666;
}

.restaurant-input-container {
    position: relative;
    width: 80%;
    margin: 0 auto 20px auto;
}

.restaurant-input-container input {
    width: calc(100% - 40px); /* Adjust for padding and icon */
    padding: 10px 15px;
    padding-right: 40px; /* Space for icon */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.restaurant-location-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.restaurant-action-button {
    margin-top: 20px;
    background-color: #c09f52; /* Gold-like color */
    color: white !important;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.restaurant-action-button:hover {
    background-color: #a88d46; /* Slightly darker gold on hover */
}

.restaurant-start-order-button:hover {
    background-color: #a88d46; /* Slightly darker gold on hover */
}

.full-btn {
    display:block;
    width:100%;
    margin-top:10px;
}

.disabled {
    background-color: gray !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}
  


/* Barra */
.nav-container-barra {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex:1;
    overflow-x:auto;
    scroll-behavior: smooth;
}

.nav-list-barra {
    
    display: flex;
    gap:20px;
    list-style: none;
    margin:0;
    padding:0;
    flex-shrink: 0;           /* <ul> won’t shrink to parent */
    width: max-content;

    justify-content: flex-start;
    padding: 0;
    margin: 5px 0;
}


.nav-item-barra {
    /*margin: 0 12px;*/
}


.nav-container-barra::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
.nav-container-barra {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.nav-link-barra {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.nav-link-barra:hover {
    color: #cda45e;
}

.nav-link-barra.highlight-barra {
    color: #cda45e;
    background-color:white;
    border-radius:30px;
    display: inline-block;
    white-space: nowrap;
    width: auto;
    cursor:pointer;
}

@media (max-width: 768px) {
    .nav-link-barra.highlight-barra {
        padding: 10px 20px 10px 20px;
    }
}

@media (min-width: 768px) {
    .nav-link-barra.highlight-barra {
        padding: 10px 30px 10px 30px;
    }
}

.nav-link-barra.highlight-barra.selezionato {
    background-color: #cda45e;
    color: white;
}


.dropdown-barra > .nav-link-barra::after {
    content: '▾'; /* Downward arrow character */
    font-size: 0.9em;
    margin-left: 5px;
    font-weight: normal;
    color: #333333;
}


.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom:30px;
  background-color:#e8e8e8;
  border-radius:30px;
  height:60px;
  position:relative;
}

.nav-btn {
    border-radius:30px;
    background-color:white;
    color: #cda45e;
    border-color: #cda45e;
}



@media (max-width: 768px) {

    .nav-btn {
        margin:5px;
    }

}

@media (min-width: 768px) {

    .nav-btn {
        margin:10px;
    }

}

.nav-btn:hover {
    color:white;
    background-color:#cda45e;
    border-color: #cda45e;
}

.nav-btn:focus {
    color:white;
    background-color:#cda45e;
    border-color: #cda45e;
}

.dropdown-barra.active-barra > .nav-link-barra {
    color: #cda45e;
}

.dropdown-barra.active-barra > .nav-link-barra::after {
    color: #cda45e;
}

/* The main container for the menu items */
.iei-restaurant-contenitore {
    display: grid;
    /* Creates a 4-column grid on larger screens */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* Space between grid items */
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom:80px;
}

/* Individual menu item card styling */
.restaurant-menu-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures footer content aligns */
}

@media (max-width: 768px) {
	.restaurant-menu-item{
		max-width: 40vw !important;
	}
	
}

/* Styling for the image within a card */
.restaurant-item-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Makes images square */
    object-fit: cover; /* Ensures images fill the space without distortion */
    border: 1px solid #e0e0e0;
}

/* Container for the text content below the image */
.restaurant-item-content {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill available space */
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

/* Styling for the item's name */
.restaurant-item-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
}

/* Styling for the item's price */
.restaurant-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Styling for the item's description */
.restaurant-item-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0 auto 1rem auto;
    max-width: 90%;
    flex-grow: 1; /* Pushes the button down */
}

/* Styling for the "Add to Cart" button */
.restaurant-add-to-cart-btn {
    background-color: #c5a66a;
    color: #4a3c23; /* A dark brown for text for better readability */
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center; /* Center button in the flex container */
	white-space: normal;
    word-break: break-word;
    text-align: center;
}

.restaurant-add-to-cart-btn:hover {
    background-color: #b3955d; /* Darken button on hover */
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .iei-restaurant-contenitore {
        /* Switches to a single column layout */
        grid-template-columns: repeat(2, 40vw);
		justify-content:center;
    }
    
}

@media (min-width: 769px){
        .restaurant-modal-close {
        top: -15px;
        right: -15px;
    }
}

/* Responsive design for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .iei-restaurant-contenitore {
        /* Switches to a two-column layout for tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}


/* MODALE */

/* The semi-transparent background overlay */
.restaurant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Class to show the modal */
.restaurant-modal-overlay.restaurant-active {
    opacity: 1;
    visibility: visible;
}

/* The modal window itself */
.restaurant-modal-content {
    background-color: #fff;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.restaurant-modal-content.secondo-modale {
    display:flex;
    width: 90%;
    max-width: 900px;
}

.restaurant-modal-content.carrello-modale {
    width: 90%;
    max-width: 900px;
}

.restaurant-modal-overlay.restaurant-active .restaurant-modal-content {
        transform: scale(1);
}

/* The close button (X) */
.restaurant-modal-close {
    position: absolute;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Container for the modal's image */
.restaurant-modal-image {
    flex-basis: 50%;
}

.restaurant-modal-image img {
    width: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .restaurant-modal-image img {
        height: 50vw !important;
    }
}

@media (min-width: 768px) {
    .restaurant-modal-image img {
        height: auto !important;
    }
}

/* Container for the modal's product details */
.restaurant-modal-details {
    flex-basis: 50%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.restaurant-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.restaurant-modal-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 1rem;
}

.restaurant-modal-details hr {
    border: none;
    border-top: 1px solid #eee;
    margin-bottom: 1rem;
}

.restaurant-modal-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* Pushes action buttons to the bottom */
}

/* Container for quantity and add to cart button */
.restaurant-modal-actions {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

/* Quantity selector styling */
.restaurant-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    margin-right: 1rem;
}

.restaurant-quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    color: #555;
}

.restaurant-quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 1rem;
    padding: 0.5rem 0;
}

/* Hide arrows from number input */
.restaurant-quantity-input::-webkit-outer-spin-button,
.restaurant-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.restaurant-quantity-input[type=number] {
    -moz-appearance: textfield;
}


/* --- Responsive Styles --- */

@media (max-width: 768px) {
    .restaurant-menu-container {
        /* Switches to a single column layout */
        grid-template-columns: 1fr;
    }
    
    .restaurant-modal-close {
        top: 10px;
        right: 10px;
    }

    .restaurant-modal-content {
        flex-direction: column; /* Stack image and details vertically */
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .restaurant-modal-details {
        padding: 1.5rem;
        text-align: center; /* Center align text on mobile */
    }
    
    .restaurant-modal-actions {
        flex-direction: column; /* Stack quantity and button */
        align-items: center;
        width: 100%;
    }
    
    .restaurant-quantity-selector {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .restaurant-add-to-cart-btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .restaurant-menu-container {
        /* Switches to a two-column layout for tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}


/* stile per carrello */

.restaurant-carrello-container {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
}

.restaurant-carrello-button {
    display: block;
    position: relative;
    background-color: #c7a159;
    color: white;
    padding: 16px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.restaurant-carrello-button:hover {
    background-color: #b38f4d;
}

.restaurant-carrello-icon {
    width: 28px;
    height: 28px;
}

.restaurant-carrello-badge {
    position: absolute;
    top: -10px;
    right: 0px;
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* elementi nel carrello */

.restaurant-carrello-product-list {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px; 
  /* For scrollbar */
}

@media (max-width: 768px) {
    .restaurant-carrello-product-list {
        position:relative;
    }
}

.restaurant-carrello-product-item {
  align-items: center;
  width:100%;
  padding: 10px;
  border: 1px solid #ddd;
  margin-right: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  display:flex;
}
@media (max-width: 768px) {
    .restaurant-carrello-product-item{
        display: block;
    }
}
@media (min-width: 768px) {
.restaurant-carrello-thumbnail {
  margin-right: 15px;
}
}

.restaurant-carrello-thumbnail img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.restaurant-carrello-title {
  font-weight: bold;
  margin-right: auto; /* Pushes subsequent items to the right */
}

.restaurant-carrello-quantity-controls {
  display: flex;
  align-items: center;
  margin-left: 15px;
  margin-right:15px;
}


@media (max-width: 768px) {
    .restaurant-carrello-quantity-controls {
        justify-content: center;
    }
}

.restaurant-carrello-quantity-btn {
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.restaurant-carrello-quantity-label {
  margin: 0 10px;
  font-size: 1.1em;
}

.restaurant-carrello-delete-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}


@media (max-width: 768px) {
    .restaurant-carrello-delete-btn {
        position:absolute;
        top:3px;
        right:13px;
    }
}

.restaurant-carrello-totale-cifra {

    text-align:right;
    font-size:25px;
}

h3.restaurant-carrello-totale-titolo {
    text-align:right;
}

.carrelli {
    max-height:300px;
    overflow-y:scroll;
}


.regolamento {
    text-align:center;
    padding:30px 10px 50px 10px;
    background-color:#fcf9f2;
    border-radius:30px;
    margin-top:15px;
    color:black;
}

.full-btn i {
    margin-right:10px;
}


.titolo-in-cima {
  top: 0;
  margin-bottom:15px;
  background-color: #fcf9f2;
  padding: 15px 25px;
  display: flex;
}

.contenuto-titolo {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
}

.linea-accento {
  width: 80%;
  height: 8px;
  background: #ffbc0d;
  border-radius: 50px;
  position: relative;
  top: 2px; 
}



/* Stile per il loader */

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background-color: #00000091;
}

#loader .spinner {
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  border: 16px solid black;
  border-top-color: #ffbc0d;
  border-radius: 50%;
  background: white;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.contenitore-sticky {
    position:sticky;
    top:0;
    z-index:100;
    background-color:white;
}

.tasto-shortcode {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background-color: #fff;
  color: #000;

  border: 2px solid #000;
  border-radius: 999px;

  padding: 10px 20px;

  font-size: 16px;
  font-weight: 500;

  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.tasto-shortcode i {
  font-size: 16px;
  color: #000;
}

.tasto-shortcode:hover {
  background-color: #f2f2f2 !important;
  color:black !important;
}

.tasto-shortcode:active {
  transform: scale(0.98);
}

/* Overlay */
.language-list-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Modal box */
.language-list-modal {
  background: #fff;
  color: #000;

  width: 90%;
  max-width: 400px;

  border-radius: 16px;
  padding: 24px;

  position: relative;

  text-align: center;
}

/* Close button */
.language-list-close {
  position: absolute;
  top: 10px;
  right: 12px;

  background: none;
  border: none;

  font-size: 24px;
  cursor: pointer;
  color: #000;
}

/* Title */
.language-list-title {
  margin: 0 0 16px;
  font-size: 20px;
}

/* Language list */
.language-list-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-list-option {
  padding: 12px 0;
  cursor: pointer;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.language-list-option:last-child {
  border-bottom: none;
}

.language-list-option:hover {
  background-color: #f5f5f5;
}

.iei-hidden-select {
    display:none;
}

.wc-block-components-select-input-iei-restaurant-ristorante-selezionato {
    display:none;
}

.container-elementi-citta {
    align-items:flex-start;
    width:100%;
    margin-bottom:30px;
    justify-content: center;
}

@media (max-width: 768px) {
    .container-elementi-citta {
        display:block;
    }
    #container-select-citta-uno{
        width:100% !important;
    }
    #container-select-citta-due{
        width:100% !important;
    }

}

@media (min-width: 768px) {
    .container-elementi-citta {
        display:flex;
    }

    #container-select-citta-uno{
        width:30% !important;
    }
    #container-select-citta-due{
        width:70% !important;
    }
}

.container-select-citta {
    text-align:left;
    display:inline-block;
    padding:10px;
}

/* importante su mobile per avere le opzioni non nascoste dall'overflow del modale */
/* Allow modal content to show dropdowns */
.restaurant-modal-content {
    overflow: visible !important;
}

.restaurant-modal {
    overflow: visible !important;
}

.choices {
    overflow: visible !important;
}

.choices__list--dropdown {
    z-index: 10000;
}

.container-elementi-citta,
.container-select-citta {
    overflow: visible !important;
}



        /* FORCE VISIBILITY */
        .simplebar-track.simplebar-vertical {
            visibility: visible !important;
        }
        .simplebar-scrollbar::before {
            opacity: 1 !important;
            background: #555 !important; /* Darker color for visibility */
        }

        .tall-content { height: 1000px; padding: 20px; }

        /* 1. Make space at the bottom of the track for the arrow */
        .simplebar-track.simplebar-vertical {
            padding-bottom: 20px !important;
            background: #eee !important; /* Visual track background */
            visibility: visible !important;
        }

        /* 2. Create the arrow using the ::after pseudo-element on the track */
        .simplebar-track.simplebar-vertical::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            
            /* CSS Triangle Trick */
            width: 0; 
            height: 0; 
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 10px solid #555; /* The arrow color */
        }

        /* 3. Keep your existing scrollbar handle style */
        .simplebar-scrollbar::before {
            opacity: 1 !important;
            background: #555 !important;
        }