/* App-style smooth-scroll menu */
.rmb-menu {
  width: 100%;
  --rmb-accent: var(--wd-primary-color, #00b894);
  --rmb-muted: #8f96a6;
  --rmb-text: #171717;
  --rmb-soft-border: rgba(0, 0, 0, .065);
  --rmb-card-shadow: 0 14px 35px rgba(0, 0, 0, .08);
}

.rmb-menu-categories-wrap {
  position: sticky;
  top: var(--rmb-menu-sticky-top, 0px);
  z-index: 99;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rmb-soft-border);
  background: rgba(255, 255, 255, .94);
  padding-top: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-bar .rmb-menu-categories-wrap {
  top: calc(var(--rmb-menu-sticky-top, 0px) + 32px);
}

@media (max-width: 782px) {
  .admin-bar .rmb-menu-categories-wrap {
    top: calc(var(--rmb-menu-sticky-top, 0px) + 46px);
  }
}

.rmb-menu-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 2px;
  scroll-behavior: smooth;
}

.rmb-menu-categories::-webkit-scrollbar {
  display: none;
}

.rmb-menu-category {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #333;
  padding: 0 8px 16px;
  font-size: clamp(18px, 3.7vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: color .22s ease, transform .22s ease;
}

.rmb-menu-category::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(.25);
  opacity: 0;
  transition: background .22s ease, transform .22s ease, opacity .22s ease;
}

.rmb-menu-category:hover,
.rmb-menu-category.is-active {
  color: var(--rmb-accent);
}

.rmb-menu-category.is-active {
  transform: translateY(-1px);
}

.rmb-menu-category.is-active::after {
  background: var(--rmb-accent);
  transform: scaleX(1);
  opacity: 1;
}

.rmb-loading,
.rmb-empty {
  padding: 18px 0;
}

.rmb-menu-sections {
  display: grid;
  gap: 42px;
}

.rmb-menu-section {
  scroll-margin-top: 110px;
}

.rmb-menu-section-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--rmb-text);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  border-bottom: 1px solid var(--rmb-soft-border);
}

.rmb-menu-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--rmb-accent);
}

.rmb-menu-items {
  display: grid;
  gap: 24px;
}

.rmb-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--rmb-soft-border);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease, background .25s ease, box-shadow .25s ease;
}

.rmb-menu-has-reveal .rmb-menu-item {
  opacity: 0;
  transform: translateY(12px);
}

.rmb-menu-has-reveal .rmb-menu-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rmb-menu-item:last-child {
  border-bottom: 0;
}

.rmb-menu-item-link {
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
  padding: 14px;
  margin: -14px;
}

.rmb-menu-item-link:hover,
.rmb-menu-item-link:focus {
  color: inherit;
  text-decoration: none;
  background: rgba(0, 0, 0, .025);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
  outline: none;
}

.rmb-menu-item-link:hover .rmb-item-image,
.rmb-menu-item-link:focus .rmb-item-image {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .13);
}

.rmb-item-content {
  flex: 1 1 auto;
  min-width: 0;
}

.rmb-item-badge {
  margin: 0 0 10px;
  color: #ff9800;
  font-size: 16px;
  font-weight: 700;
}

.rmb-item-title {
  margin: 0 0 6px;
  color: var(--rmb-text);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.18;
}

.rmb-item-short-description {
  display: -webkit-box;
  margin: 0 0 6px;
  color: var(--rmb-text);
  font-size: clamp(14px, 3vw, 20px);
  line-height: 1.35;
  opacity: .82;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rmb-item-short-description p {
  margin: 0;
}

.rmb-item-ingredients {
  display: -webkit-box;
  margin: 0 0 8px;
  color: var(--rmb-muted);
  font-size: clamp(15px, 3.2vw, 24px);
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rmb-item-price {
  color: var(--rmb-accent);
  font-size: clamp(16px, 3.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

.rmb-item-price del,
.rmb-item-price small,
.rmb-item-price .woocommerce-price-suffix {
  color: var(--rmb-muted);
  font-weight: 400;
}

.rmb-item-price ins {
  text-decoration: none;
}

.rmb-item-media {
  position: relative;
  flex: 0 0 clamp(92px, 22vw, 150px);
  width: clamp(92px, 22vw, 150px);
  height: clamp(92px, 22vw, 150px);
}

.rmb-item-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--rmb-card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rmb-item-image-img,
.rmb-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .rmb-menu-categories,
  .rmb-menu-category,
  .rmb-menu-category::after,
  .rmb-menu-item,
  .rmb-item-image {
    scroll-behavior: auto;
    transition: none;
  }

  .rmb-menu-has-reveal .rmb-menu-item,
  .rmb-menu-has-reveal .rmb-menu-item.is-visible,
  .rmb-menu-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .rmb-menu-categories {
    gap: 2px;
    padding-left: 0;
    padding-right: 18px;
  }

  .rmb-menu-sections {
    gap: 36px;
  }

  .rmb-menu-items {
    gap: 26px;
  }

  .rmb-menu-item {
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
  }

  .rmb-menu-item-link {
    padding: 12px;
    margin: -12px;
  }

  .rmb-item-image {
    border-radius: 22px;
  }
}

.rmb-product-options {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
}

.rmb-option-group + .rmb-option-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.rmb-option-group h4 {
  margin: 0 0 10px;
}

.rmb-option-list {
  display: grid;
  gap: 8px;
}

.rmb-option-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.rmb-drink-label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
}

.rmb-combo-drink {
  width: 100%;
  max-width: 360px;
}

@media (max-width: 600px) {
  .rmb-menu-item {
    align-items: flex-start;
  }

  .rmb-item-media {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  .rmb-item-title {
    font-size: 17px;
  }
}

.rmb-location-box {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.rmb-location-box h4 {
  margin: 0 0 10px;
}

.rmb-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.rmb-location-status {
  font-size: 14px;
  opacity: .8;
}

.rmb-location-map {
  width: 100%;
  height: 330px;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .04);
}

.rmb-location-help {
  margin: 8px 0 12px;
  font-size: 13px;
  opacity: .75;
}

.rmb-address-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

#rmb_delivery_address {
  width: 100%;
}

.rmb-login-required {
  background: rgba(0, 0, 0, .04);
  padding: 16px;
  border-radius: 12px;
  border-bottom: 0;
}

.rmb-login-button,
.rmb-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmb-order-location {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
}

.rmb-order-location h3 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .rmb-location-map {
    height: 270px;
  }

  .rmb-location-actions {
    align-items: stretch;
  }

  .rmb-location-actions .button {
    width: 100%;
  }
}

/* Delivery location popup */
.rmb-location-summary {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .04);
}

.rmb-location-summary.has-location {
  border: 1px solid rgba(0, 0, 0, .1);
}

.rmb-location-summary strong {
  display: block;
  margin-bottom: 4px;
}

.rmb-location-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.rmb-location-modal.is-open {
  display: flex;
}

.rmb-location-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.rmb-location-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.rmb-location-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rmb-location-modal-panel h3 {
  margin-top: 0;
  padding-right: 38px;
}

.rmb-location-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.rmb-location-modal-open {
  overflow: hidden;
}

.rmb-delivery-address,
.rmb-delivery-notes {
  width: 100%;
  margin-bottom: 12px;
}

.rmb-delivery-address[readonly] {
  background: rgba(0, 0, 0, .04);
}

.rmb-checkout-location-summary {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
}

.rmb-checkout-location-summary h3 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .rmb-location-modal {
    padding: 10px;
  }

  .rmb-location-modal-panel {
    max-height: 95vh;
    padding: 18px;
  }

  .rmb-location-modal-footer .button {
    width: 100%;
  }
}


/* Thank-you WhatsApp popup */
.rmb-whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.rmb-whatsapp-modal.is-open {
  display: flex;
}

.rmb-whatsapp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.rmb-whatsapp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  color: #222;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.rmb-whatsapp-modal-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.rmb-whatsapp-modal-panel p {
  margin-bottom: 20px;
}

.rmb-whatsapp-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rmb-whatsapp-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .rmb-whatsapp-modal {
    padding: 12px;
  }

  .rmb-whatsapp-modal-panel {
    padding: 24px 20px;
  }

  .rmb-whatsapp-modal-panel .rmb-whatsapp-button {
    width: 100%;
  }
}

/* Single product ingredients shortcode */
.rmb-single-ingredients {
  margin: 6px 0 14px;
  color: rgba(0, 0, 0, .58);
  font-size: 15px;
  line-height: 1.55;
}

.rmb-single-ingredients-label {
  display: inline-block;
  margin-inline-end: 6px;
  color: var(--wd-primary-color, currentColor);
  font-weight: 700;
}

.rmb-single-ingredients-text {
  color: inherit;
}


/* Hide custom ingredient heading when this product has no assigned ingredients. */
body.single-product.rmb-no-ingredients .ingredients-title {
  display: none !important;
}
