/* October 2026 correction pass: seasonal gallery, stable media and commerce controls. */

/* Seasonal offer: one clear hero poster supported by two readable previews. */
.food-home-season .new-year-offer {
  padding-block: clamp(64px, 8vw, 96px);
}

.new-year-offer__inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(42px, 7vw, 84px);
}

.new-year-offer__preview,
.new-year-offer__preview:hover {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.18fr) minmax(150px, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgb(255 248 230 / 42%);
  border-radius: 20px;
  background: #123d32;
  box-shadow: 0 24px 58px rgb(0 0 0 / 24%);
  transform: none;
}

.new-year-offer__poster,
.new-year-offer__preview:hover .new-year-offer__poster {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 5px solid var(--food-paper);
  border-radius: 12px;
  background: var(--food-paper);
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
  transform: none !important;
}

.new-year-offer__poster--back {
  grid-column: 2;
  grid-row: 1;
}

.new-year-offer__poster--middle {
  grid-column: 2;
  grid-row: 2;
}

.new-year-offer__poster--front {
  grid-column: 1;
  grid-row: 1 / 3;
}

.new-year-offer__poster img {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--food-paper);
  object-fit: cover;
}

.new-year-offer__preview-label {
  right: 28px;
  bottom: 28px;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
  font-size: 15px;
  transform: none;
}

/* Dialog is a compact editorial gallery, with no delayed grey placeholders. */
.new-year-menu,
.new-year-menu::backdrop {
  animation: none !important;
}

.new-year-menu::backdrop {
  background: rgb(8 46 36 / 78%);
  backdrop-filter: blur(6px);
}

.new-year-menu__topbar {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px !important;
  background: #0b352b;
}

.new-year-menu__topbar h2 {
  margin: 0 0 4px;
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 0.98 !important;
}

.new-year-menu__topbar p {
  margin: 0;
  color: #dfe9df;
}

.new-year-menu__close,
.new-year-menu__close:hover,
.new-year-menu__close:focus-visible {
  display: grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--food-sun);
  border-radius: 50%;
  background: transparent;
  color: var(--food-sun);
  text-decoration: none !important;
  box-shadow: none;
  transform: none;
}

.new-year-menu__close:hover {
  background: var(--food-sun);
  color: var(--food-green);
}

.new-year-menu__close svg {
  width: 24px;
  height: 24px;
}

.new-year-menu__grid {
  align-items: stretch;
  gap: 18px;
  padding: 24px;
}

.new-year-menu__item {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  padding: 10px 10px 16px;
  border: 1px solid rgb(255 248 230 / 32%);
  border-radius: 14px;
  background: var(--food-paper);
}

.new-year-menu__item button,
.new-year-menu__item button:hover {
  height: min(59vh, 590px);
  border-radius: 9px;
  background: var(--food-paper);
  transform: none;
}

.new-year-menu__item img,
.new-year-menu__stage img {
  display: block;
  background: var(--food-paper);
  opacity: 1;
}

.new-year-menu__item figcaption {
  padding-top: 13px;
  font-size: 17px;
}

/* Occasion cards retain their original photography in a calmer horizontal rhythm. */
.food-service-v2__event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.food-service-v2__event-grid article {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 248 230 / 22%);
  border-radius: 16px;
  background: #17483a;
}

.food-service-v2__event-grid img {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  background: #17483a;
  object-fit: cover;
}

.food-service-v2__event-grid h3 {
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgb(255 253 245 / 96%);
  font-size: 24px;
}

.food-service-v2__gallery-grid figure,
.food-service-v2__gallery-grid img {
  background: var(--food-sage);
}

/* Delivery cards need comfortable internal margins on every side. */
.food-delivery-v2__term-cards article {
  gap: 16px;
  padding: 26px 24px;
}

/* Builder receipt remains anchored and all text scales as one compact system. */
.food-builder-summary {
  top: 116px;
  height: fit-content;
  align-self: start;
}

.food-builder-summary__top {
  align-items: center;
  padding: 22px 24px 18px;
}

.food-builder-summary h2,
.entry-content .food-builder-summary h2 {
  font-size: clamp(30px, 2.5vw, 38px) !important;
  line-height: 1 !important;
}

.food-builder-summary__top button,
.food-builder-summary__top button:visited {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgb(246 211 101 / 62%);
  border-radius: 999px;
  color: var(--food-sun);
  font-size: 13px;
  text-decoration: none;
}

.food-builder-summary__top button:hover:not(:disabled) {
  background: var(--food-sun);
  color: var(--food-green);
}

.food-builder-summary__top button:disabled {
  border-color: rgb(246 211 101 / 42%);
  color: rgb(255 248 230 / 76%);
  opacity: 1;
}

.food-builder-summary__empty {
  padding: 22px 24px;
  font-size: 16px;
}

.food-builder-summary__empty strong {
  font-size: 21px;
}

.food-builder-summary__totals {
  font-size: 16px;
}

.food-builder-summary__price {
  min-height: 70px;
  margin-top: 12px;
  padding: 14px 18px;
}

.food-builder-summary__price span {
  font-size: 16px;
}

.food-builder-summary__price strong {
  font-size: clamp(27px, 2.5vw, 34px);
}

.food-builder-summary__note {
  font-size: 13px;
  line-height: 1.4;
}

/* Popup chrome and form arrive as one unit and stay within the viewport. */
.elementor-popup-modal .dialog-widget-content,
.elementor-popup-modal .dialog-message,
.elementor-popup-modal .dialog-close-button {
  animation: food-popup-enter 180ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  animation-delay: 0ms !important;
  transition-delay: 0ms !important;
}

.elementor-popup-modal .dialog-widget-content {
  max-height: calc(100dvh - 28px);
}

.elementor-popup-modal .dialog-message {
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.elementor-popup-modal .elementor-widget-form,
.elementor-popup-modal .elementor-form,
.elementor-popup-modal
  .elementor-widget-wp-widget-forminator_widget
  > .elementor-widget-container {
  min-height: 0 !important;
  padding: clamp(24px, 4vw, 34px) !important;
}

.elementor-popup-modal .dialog-close-button,
.elementor-popup-modal .dialog-close-button:hover,
.elementor-popup-modal .dialog-close-button:focus-visible,
.elementor-popup-modal .dialog-close-button * {
  text-decoration: none !important;
}

@keyframes food-popup-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cart controls are optically centred and visible before interaction. */
.food-tablecloth-site .woocommerce a.remove,
.food-tablecloth-site .woocommerce a.remove:hover,
.food-tablecloth-site .woocommerce a.remove:focus-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
}

.food-tablecloth-site .cart-collaterals .cart_totals {
  text-align: center;
}

.food-tablecloth-site .cart_totals h2 {
  margin-inline: auto;
  text-align: center;
}

.food-tablecloth-site .cart_totals table th {
  text-align: left;
}

.food-tablecloth-site .cart_totals table td {
  text-align: right;
}

.food-tablecloth-site .wc-proceed-to-checkout .checkout-button,
.food-tablecloth-site .wc-proceed-to-checkout .checkout-button:visited {
  border: 2px solid var(--food-green) !important;
  background: var(--food-green) !important;
  color: var(--food-paper) !important;
  opacity: 1 !important;
}

.food-tablecloth-site .wc-proceed-to-checkout .checkout-button:hover,
.food-tablecloth-site .wc-proceed-to-checkout .checkout-button:focus-visible {
  border-color: var(--food-wine) !important;
  background: var(--food-wine) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .new-year-offer__inner {
    grid-template-columns: 1fr;
  }

  .new-year-offer__preview {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .food-builder-summary {
    top: 92px;
  }

  .food-service-v2__event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .food-builder-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .new-year-offer__preview,
  .new-year-offer__preview:hover {
    min-height: 420px;
    grid-template-columns: minmax(0, 1.25fr) minmax(100px, 0.75fr);
    gap: 8px;
    padding: 8px;
  }

  .new-year-offer__poster {
    border-width: 3px;
  }

  .new-year-offer__preview-label {
    right: 16px;
    bottom: 16px;
    padding: 10px 13px;
    font-size: 12px;
  }

  .new-year-menu__grid {
    grid-template-columns: repeat(3, minmax(78vw, 1fr));
  }

  .food-service-v2__event-grid {
    grid-template-columns: 1fr;
  }

  .food-delivery-v2__term-cards article {
    padding: 22px 20px;
  }
}

/* Seasonal dialog: closed means hidden; artwork is never cropped. */
.new-year-menu:not([open]) { display: none !important; }
.new-year-menu[open] {
  display: flex !important;
  flex-direction: column;
  width: min(1180px, calc(100vw - 32px)) !important;
  height: auto !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto;
  overflow: hidden;
  border-radius: 16px !important;
}
.new-year-menu--fallback[open] { position: fixed; inset: 16px; z-index: 100; }
.new-year-menu__topbar {
  flex: 0 0 auto;
  min-height: 0;
  gap: 16px;
  padding: 18px 24px !important;
}
.new-year-menu__topbar h2 { font-size: clamp(24px, 3vw, 36px) !important; line-height: 1.15 !important; }
.new-year-menu__topbar p { display: block; font-size: 15px; line-height: 1.4; }
.new-year-menu__grid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-snap-type: none;
}
.new-year-menu__item { height: auto; grid-template-rows: auto auto; }
.new-year-menu__item button,
.new-year-menu__item button:hover {
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
}
.new-year-menu__item img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.new-year-menu__item figcaption { line-height: 1.35; font-size: 16px; }
.new-year-menu__viewer-tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 0;
}
.new-year-menu__viewer-tools button,
.new-year-menu__viewer-tools a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--food-sun);
  border-radius: 8px;
  background: transparent;
  color: var(--food-sun) !important;
  font: inherit;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
}
.new-year-menu__viewer-tools button:hover,
.new-year-menu__viewer-tools a:hover,
.new-year-menu__viewer-tools button[aria-pressed="true"] { background: var(--food-sun); color: var(--food-green) !important; }
.new-year-menu__viewer {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  height: min(700px, calc(100dvh - 290px));
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  padding: 16px 24px;
  overflow: hidden;
}
.new-year-menu__stage {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 10px;
  overflow: hidden;
}
.new-year-menu__image-wrap {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  background: #0b352b;
}
.new-year-menu__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  cursor: zoom-in;
}
.new-year-menu__image-wrap.is-zoomed { display: block; }
.new-year-menu__image-wrap.is-zoomed img { width: 1000px; max-width: none; max-height: none; cursor: zoom-out; }
.new-year-menu__stage figcaption { margin: 0; color: var(--food-cream); text-align: center; font-size: 16px; line-height: 1.4; }
.new-year-menu__arrow,
.new-year-menu__arrow:hover { position: static; width: 48px; height: 48px; margin: 0; transform: none; }
.new-year-menu__footer {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px !important;
  border-top: 1px solid var(--food-line-light);
}
.new-year-menu__footer p { margin: 0; color: var(--food-cream); font-size: 14px; }
.new-year-menu__footer .new-year-offer__button { width: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; white-space: normal; }
.new-year-menu [hidden] { display: none !important; }
.new-year-menu button:focus-visible,
.new-year-menu a:focus-visible,
.new-year-menu__image-wrap:focus-visible { outline: 3px solid var(--food-sun); outline-offset: 3px; }
@media (max-width: 760px) {
  .new-year-menu[open] { width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
  .new-year-menu--fallback[open] { inset: 8px; }
  .new-year-menu__topbar { padding: 14px 16px !important; }
  .new-year-menu__topbar h2 { font-size: 24px !important; }
  .new-year-menu__grid { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .new-year-menu__item { width: min(100%, 360px); justify-self: center; }
  .new-year-menu__viewer-tools { gap: 6px; padding: 10px 12px 0; }
  .new-year-menu__viewer-tools button,
  .new-year-menu__viewer-tools a { padding: 7px 10px; font-size: 14px; }
  .new-year-menu__viewer { position: relative; height: calc(100dvh - 300px); min-height: 120px; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; padding: 12px; }
  .new-year-menu__arrow,
  .new-year-menu__arrow:hover { width: 44px; height: 44px; }
  .new-year-menu__footer { flex-direction: column; align-items: stretch; padding: 12px 16px !important; }
  .new-year-menu__footer p { display: none; }
  .new-year-menu__footer .new-year-offer__button { width: 100%; }
}
@media (max-height: 500px) {
  .new-year-menu__topbar p { display: none; }
  .new-year-menu__topbar { padding: 8px 12px !important; }
  .new-year-menu__topbar h2 { font-size: 22px !important; }
  .new-year-menu__viewer { height: calc(100dvh - 225px); min-height: 80px; padding: 8px 12px; }
  .new-year-menu__viewer-tools { padding-top: 6px; }
}

.new-year-menu__arrow--prev { grid-column: 1; grid-row: 1; }
.new-year-menu__arrow--next { grid-column: 3; grid-row: 1; }
.food-tablecloth-site .new-year-menu__footer a.new-year-offer__button--primary { color: var(--food-green) !important; }
