/* ========================================
   RISTOOM - SWITCH MACRO CATEGORIE
   Barra principale ben evidente
======================================== */
.ristoom-menu-type-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 26px;
    width: 100%;
}

/* ========================================
   BASE BUTTON
   Grandi, pieni, evidenti
======================================== */
.ristoom-menu-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-sizing: border-box;
}

.ristoom-menu-type-btn:hover {
    transform: translateY(-2px);
	color:#fff;
}

.ristoom-menu-type-btn:active {
    transform: scale(0.98);
}

/* ========================================
   CIBO
======================================== */
.ristoom-menu-type-btn-food {
    background: #ff8a1f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 138, 31, 0.22);
}

.ristoom-menu-type-btn-food:hover {
    box-shadow: 0 10px 22px rgba(255, 138, 31, 0.28);
}

.ristoom-menu-type-btn-food.is-active {
    background: #ff6f00;
    color: #fff;
    border-color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(255, 111, 0, 0.18),
        0 12px 26px rgba(255, 111, 0, 0.34);
}

/* ========================================
   BEVANDE
======================================== */
.ristoom-menu-type-btn-beverage {
    background: #4a86c5;
    color: #fff;
    box-shadow: 0 8px 18px rgba(74, 134, 197, 0.22);
}

.ristoom-menu-type-btn-beverage:hover {
    box-shadow: 0 10px 22px rgba(74, 134, 197, 0.28);
}

.ristoom-menu-type-btn-beverage.is-active {
    background: #2f6fae;
    color: #fff;
    border-color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(47, 111, 174, 0.18),
        0 12px 26px rgba(47, 111, 174, 0.34);
}

/* ========================================
   MENU SPECIALI
======================================== */
.ristoom-menu-type-btn-special {
    background: #223a5a;
    color: #fff;
    box-shadow: 0 8px 18px rgba(34, 58, 90, 0.24);
}

.ristoom-menu-type-btn-special:hover {
    box-shadow: 0 10px 22px rgba(34, 58, 90, 0.30);
}

.ristoom-menu-type-btn-special.is-active {
    background: #162a42;
    color: #fff;
    border-color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(22, 42, 66, 0.20),
        0 12px 26px rgba(22, 42, 66, 0.38);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 767px) {
    .ristoom-menu-type-switch {
        grid-template-columns: 1fr;
    }

    .ristoom-menu-type-btn {
        min-height: 58px;
        font-size: 15px;
    }
}

.ristoom-section-switch {
    background: #f4f6f8;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 28px;
    border: 1px solid #e6e6e6;
}

.ristoom-section-switch-header {
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ========================================
   RISTOOM - CAMPI EXTRA BEVANDE
======================================== */
.ristoom-product-form-beverage .ristoom-beverage-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.ristoom-product-form-beverage .ristoom-beverage-extra-full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .ristoom-product-form-beverage .ristoom-beverage-extra-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RISTOOM - PREZZI MULTIPLI BEVANDE
======================================== */
.ristoom-beverage-prices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ristoom-beverage-price-row {
  display: grid;
  grid-template-columns: 1fr 220px 56px;
  gap: 12px;
  align-items: center;
}

.ristoom-beverage-price-row .remove-price-row {
  min-width: 56px;
  width: 56px;
  height: 48px;
  padding: 0;
}

.ristoom-beverage-price-row .remove-price-row.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ristoom-beverage-price-row {
    grid-template-columns: 1fr;
  }

  .ristoom-beverage-price-row .remove-price-row {
    width: 100%;
  }

  .ristoom-beverage-price-row .remove-price-row.is-hidden {
    display: none !important;
  }
}

/* ===== GRID BEVANDE ===== */
.ristoom-beverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .ristoom-beverage-grid {
    grid-template-columns: 1fr;
  }
}

.ristoom-form-divider {
  width: 100%;
  height: 1px;
  background: var(--rt-border);
  margin: 18px 0;
  opacity: 0.8;
}

.ristoom-form-divider.full {
  grid-column: 1 / -1;
}

.ristoom-beverage-inline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Tablet */
@media (max-width: 1024px) {
  .ristoom-beverage-inline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .ristoom-beverage-inline-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RISTOOM - TOP ROW FORM BEVANDE
   Nome largo + stato compatto
======================================== */
.ristoom-product-top-inline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 16px;
  align-items: end;
}

@media (max-width: 768px) {
  .ristoom-product-top-inline {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RISTOOM - TOP ROW BEVANDA FIX
======================================== */
.ristoom-product-top-inline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: 16px;
  align-items: end;
}

/* ========================================
   RISTOOM - STATI COMPATTI FORM BEVANDE
======================================== */
.ristoom-status-switch-compact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  flex-wrap: wrap;
    padding-top: 10px !important;
}

.ristoom-status-pill {
  position: relative;
  cursor: pointer;
}

.ristoom-status-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ristoom-status-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #444;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
}

/* hover */
.ristoom-status-pill span:hover {
  transform: translateY(-1px);
}

/* disponibile */
.ristoom-status-pill.is-available input:checked + span {
  background: #eaf7ee;
  border-color: #63b35d;
  color: #2f7d39;
}

/* esaurito */
.ristoom-status-pill.is-soldout input:checked + span {
  background: #fdeeee;
  border-color: #d94b4b;
  color: #b42318;
}

/* nascosto */
.ristoom-status-pill.is-hidden input:checked + span {
  background: #f1f1f1;
  border-color: #999999;
  color: #555555;
}

/* ========================================
   RISTOOM - TOP ROW BEVANDA RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .ristoom-product-top-inline {
    grid-template-columns: 1fr !important;
  }

  .ristoom-product-top-inline .ristoom-status-switch-compact {
    justify-content: flex-start;
    margin-top: 4px;
  }
}

.ristoom-product-image-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f5f5f5;
    cursor: default;
}

.ristoom-product-image-icon svg {
    width: 18px;
    height: 18px;
    color: #ff7a00;
}

/* ========================================
   RISTOOM - FRONT BEVERAGE
======================================== */

.ristoom-dish-beverage .ristoom-beverage-meta-short {
    margin-top: 6px;
    color: rgba(255,255,255,0.68);
    line-height: 1.4;
}

body:not(.ristoom-dark) .ristoom-dish-beverage .ristoom-beverage-meta-short {
    color: rgba(0,0,0,0.58);
}

.ristoom-dish-beverage .ristoom-beverage-meta-short:empty {
    display: none;
}

/* ========================================
   RISTOOM - PREZZO CHIUSO CON HINT ESPANSIONE
======================================== */

.ristoom-beverage-price-row-closed {
    align-items: center;
}

.ristoom-beverage-price-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ristoom-beverage-expand-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    opacity: 0.78;
    flex: 0 0 22px;
}

body:not(.ristoom-dark) .ristoom-beverage-expand-hint {
    border-color: rgba(0,0,0,0.10);
}

.ristoom-beverage-expand-hint svg {
    width: 14px;
    height: 14px;
    display: block;
}

.ristoom-beverage-expand-hint svg path {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   RISTOOM - DETTAGLI BEVERAGE COMPATTI
======================================== */

.ristoom-beverage-expanded-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 8px;
}

.ristoom-beverage-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ristoom-beverage-meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .58;
}

.ristoom-beverage-meta-value {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}

/* ========================================
   RISTOOM - PREZZI BEVERAGE FRONT PUBBLICO
   Classi separate dalla dashboard
======================================== */

.ristoom-dish-beverage .ristoom-beverage-inline-prices {
    margin: 0 0 18px 0;
    padding: 0;
}

.ristoom-dish-beverage .ristoom-beverage-public-price-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.ristoom-dish-beverage .ristoom-beverage-public-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 45px;
    padding: 0 18px;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    box-sizing: border-box;
}

/* LIGHT MODE */
body:not(.ristoom-dark) 
.ristoom-dish-beverage .ristoom-beverage-public-price-row {
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.03);
}

.ristoom-dish-beverage .ristoom-beverage-public-price-label,
.ristoom-dish-beverage .ristoom-beverage-public-price-value {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ristoom-dish-beverage .ristoom-beverage-public-price-label {
    font-size: 18px;
    font-weight: 600;
}

.ristoom-dish-beverage .ristoom-beverage-public-price-value {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

/* ========================================
   RISTOOM - MOBILE
======================================== */

@media (max-width: 767px) {
    .ristoom-beverage-expanded-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .ristoom-beverage-meta-label {
        font-size: 10px;
    }

    .ristoom-beverage-meta-value {
        font-size: 14px;
    }

    .ristoom-dish-beverage .ristoom-beverage-inline-prices {
        margin: 0 0 14px 0;
    }

    .ristoom-dish-beverage .ristoom-beverage-public-price-list {
        gap: 10px;
    }

    .ristoom-dish-beverage .ristoom-beverage-public-price-row {
        min-height: 60px;
        padding: 0 18px;
        border-radius: 18px;
        gap: 12px;
    }

    .ristoom-dish-beverage .ristoom-beverage-public-price-label {
        font-size: 17px;
    }

    .ristoom-dish-beverage .ristoom-beverage-public-price-value {
        font-size: 18px;
    }
}

/* ========================================
   RISTOOM - BEVERAGE CARD COMPACT WHEN NO BADGES
======================================== */

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-top-row {
    margin-bottom: 0 !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges h3 {
    margin-bottom: 0 !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-meta-short,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-ingredients-short {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-price-row,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-price-row-closed {
    margin-top: 0 !important;
}

/* ========================================
   RISTOOM - BEVERAGE CARD NO BADGES COMPACT
======================================== */

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-top-row {
    margin-bottom: 0 !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges h3 {
    margin: 0 !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-meta-short,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-ingredients-short {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-price-row,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-price-row-closed {
    margin-top: 0 !important;
}

/* ========================================
   RISTOOM - BEVERAGE CARD NO BADGES SPACING
======================================== */

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-top-row {
    margin-bottom: 4px !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-meta-short,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-dish-ingredients-short {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-price-row,
.ristoom-dish-beverage .ristoom-dish-info-no-badges .ristoom-beverage-price-row-closed {
    margin-top: 0 !important;
}