/* Badge visibility fix for mobile/desktop */
#back-to-top .wk {
  position: relative;
  overflow: visible !important;
}

#back-to-top .wk .modern-cart-badge {
  top: -10px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1.5px solid #232323;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Hide only old inline option UI, keep containers for legacy spacing classes */
#lieferservice [id^=extra-options-] .speise-element,
#lieferservice [id^=extra-options-] .nice-select,
#lieferservice [id^=extra-options-] > h5 {
  display: none !important;
}

html.modern-scroll-lock,
body.modern-scroll-lock {
  overscroll-behavior: none;
}

#modernOptionBody {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep prices intact: prevent "EUR" from wrapping to a new line */
.modern-cart-item-header > span {
  white-space: nowrap !important;
  display: inline-block;
  min-width: max-content;
  flex-shrink: 0;
}

.modern-cart-item-header > strong {
  min-width: 0;
  font-size: 14px !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .modern-cart-item-header,
  .modern-cart-item-header *,
  .modern-cart-options,
  .modern-cart-options * {
    font-size: 14px !important;
  }
}

/* Avoid double-tap zoom on mobile for option/cart qty controls */
#modernOptionQtyMinus,
#modernOptionQtyPlus,
#modernOptionModal .modern-option-qty .qty-btn,
#modernCart .modern-cart-controls .qty-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

#modernCart .modern-cart-controls .modern-remove-item-btn i {
  font-size: 16px;
}

#order-status-banner {
  display: none;
  margin: 0 auto 14px;
  padding: 10px 14px;
  max-width: 760px;
  border: 1px solid rgba(161, 31, 11, 0.25);
  border-radius: 10px;
  background: #fff0ec;
  color: #a11f0b;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  text-align: center;
}

#mobile-category-indicator {
  display: none;
}

@media (max-width: 767px) {
  .mix-item-menu {
    display: block !important;
  }

  #mobile-category-indicator {
    display: none;
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(243, 160, 10, 0.65);
    background: linear-gradient(180deg, rgba(255, 246, 230, 0.98), rgba(255, 238, 206, 0.98));
    color: #232323;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.25px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    max-width: calc(100vw - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #mobile-category-indicator.show {
    display: block;
  }

  body.nav-open #mobile-category-indicator {
    display: none !important;
  }

  #portfolio-grid {
    height: auto !important;
  }

  #portfolio-grid .pf-item {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  #portfolio-grid .item .info h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
