@charset "UTF-8";
/* Featured products slider above the category cards (functions/template-parts/featured-slider.php).
   The banner has the size of the product photo (.lp-product-cover img in main.css): full width, 300px tall,
   200px on phones. Text sits at its bottom left, the dots under it. The photo is not darkened: the white
   text stays readable through its own shadow. */

.inm-featured,
.inm-featured * {
  box-sizing: border-box;
}

.inm-featured {
  --inm-featured-text-shadow: 0 0 3px rgba(0, 0, 0, .7), 0 1px 7px rgba(0, 0, 0, .65), 0 0 22px rgba(0, 0, 0, .6);

  width: 100%;
  margin-bottom: 20px; /* same gap as .category-card */
  touch-action: pan-y; /* a sideways swipe changes the slide, the page still scrolls up and down */
}

.inm-featured-viewport {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-card, 24px);
  background: #222;
  isolation: isolate;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
}

.inm-featured-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: #333;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease;
}

.inm-featured-slide.active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inm-featured-slide .inm-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
}

.inm-featured-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* No overflow:hidden or line clamp here: it would cut the text shadow at the edge of this box.
   Four lines still fit the phone banner, and the text is anchored to the bottom, so the button stays in place. */
.inm-featured .inm-featured-title {
  margin: 0 0 6px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-shadow: var(--inm-featured-text-shadow);
}

.inm-featured .inm-featured-price {
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: var(--inm-featured-text-shadow);
}

.inm-featured .inm-featured-regular {
  font-size: .75em;
  font-weight: 400;
  opacity: .7;
}

/* The white button: a link, or the menu's own add button (.imx-add-only, styled as a round "+" in main.css). */
.inm-featured .inm-featured-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  padding: 6px 20px;
  background: #fff;
  color: #192639;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.inm-featured .inm-featured-button:hover {
  background: #f0f0f0;
  color: #192639;
  transform: translateY(-2px);
}

/* After adding: the menu's own − n + control takes the button's place. */
.inm-featured .qty-input {
  min-width: 0;
  justify-content: flex-start;
}

.inm-featured .imx-qty-val {
  min-width: 28px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-shadow: var(--inm-featured-text-shadow);
}

/* Dots under the banner, in the site's text colour so they also show on a dark restaurant design.
   The button is a tap target around the small dot. */
.inm-featured-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 6px 0 -6px;
}

.inm-featured .inm-featured-dot,
.inm-featured .inm-featured-dot:hover,
.inm-featured .inm-featured-dot:focus {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.inm-featured-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary_text, #252b48);
  opacity: .35;
  transition: opacity .2s ease, transform .2s ease;
}

.inm-featured-dot.active::before {
  opacity: 1;
  transform: scale(1.1);
}

.inm-featured .inm-featured-button:focus-visible,
.inm-featured .inm-featured-dot:focus-visible {
  outline: 3px solid #339eda;
  outline-offset: 2px;
}

/* Same breakpoint and height as the product photo. */
@media (max-width: 479px) {
  .inm-featured-viewport {
    height: 200px;
  }

  .inm-featured-slide {
    padding: 14px;
  }

  .inm-featured .inm-featured-title {
    margin-bottom: 3px;
    font-size: 22px;
  }

  .inm-featured .inm-featured-price {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .inm-featured .inm-featured-button {
    min-height: 38px;
    padding: 4px 16px;
    font-size: 13px;
  }

  .inm-featured .qty-count {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .inm-featured .imx-qty-val {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inm-featured-slide,
  .inm-featured .inm-featured-button,
  .inm-featured-dot::before {
    transition: none;
  }
}
