/* Kitcove full-screen mobile navigation
   Loaded after the base Meridian navigation styles. */

@media (max-width: 989px) {
  body .menu-drawer.color-scheme-1 {
    --kc-menu-cream: #fdf8f3;
    --kc-menu-ink: #3a2a22;
    --kc-menu-line: rgba(58, 42, 34, 0.13);
    --kc-menu-soft: #f3e7dd;
    --kc-menu-accent: #b78169;

    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden !important;
    padding: env(safe-area-inset-top, 0) 1rem env(safe-area-inset-bottom, 0) !important;
    color: var(--kc-menu-ink) !important;
    background: var(--kc-menu-cream) !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 1000 !important;
  }

  body details.menu-open > .menu-drawer.color-scheme-1 {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body details:not(.menu-open) > .menu-drawer.color-scheme-1 {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
  }

  body .menu-drawer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--kc-menu-cream);
  }

  body .menu-drawer > * {
    position: relative;
    z-index: 1;
  }

  body .menu-drawer .menu-drawer__close-button {
    position: absolute !important;
    top: max(0.75rem, env(safe-area-inset-top, 0)) !important;
    right: 1rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    color: var(--kc-menu-ink) !important;
    background: transparent !important;
    border: 1px solid var(--kc-menu-line) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    z-index: 4 !important;
  }

  body .menu-drawer .menu-drawer__close-button svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
  }

  .kc-mobile-menu__topbar {
    min-height: 9.4rem;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 0.72rem;
    padding: 0.55rem 0.2rem 0.85rem;
    border-bottom: 1px solid var(--kc-menu-line);
  }

  .kc-mobile-menu__brand-row {
    min-height: 3rem;
    display: grid;
    place-items: center;
    padding-inline: 3rem;
  }

  .kc-mobile-menu__wordmark {
    color: var(--kc-menu-ink) !important;
    font-family: var(--kc-display, "Cormorant Garamond", serif) !important;
    font-size: 2.15rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em;
    text-decoration: none;
  }

  .kc-mobile-menu__top-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 0.2rem;
  }

  .kc-mobile-menu__currency {
    width: 5.25rem;
    min-width: 0;
  }

  .kc-mobile-menu__currency .menu-drawer__localization {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .kc-mobile-menu__currency .drawer-localization__button,
  .kc-mobile-menu__currency .localization-form__select,
  .kc-mobile-menu__currency-fallback {
    width: 100%;
    min-height: 2.65rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.4rem 0.45rem !important;
    color: var(--kc-menu-ink) !important;
    background: transparent !important;
    border: 1px solid var(--kc-menu-line) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: var(--kc-ui, Inter, sans-serif) !important;
    font-size: 0.67rem !important;
    font-weight: 650 !important;
    line-height: 1.2;
    text-decoration: none;
  }

  .kc-mobile-menu__currency .drawer-localization__button::after,
  .kc-mobile-menu__currency .localization-form__select::after,
  .kc-mobile-menu__currency-fallback::after {
    content: "";
    width: 0.36rem;
    height: 0.36rem;
    flex: 0 0 auto;
    margin: -0.18rem 0 0 0.08rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .kc-mobile-menu__currency .drawer-localization__button > span:not(.kc-mobile-menu__flag) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kc-mobile-menu__flag {
    flex: 0 0 auto;
    font-size: 0.88rem;
    line-height: 1;
  }

  .kc-mobile-menu__currency svg,
  .kc-mobile-menu__currency .svg-wrapper {
    flex: 0 0 auto;
    margin-left: 0 !important;
  }

  .kc-mobile-menu__reward {
    min-width: 0;
    display: grid;
    gap: 0.42rem;
    padding-inline: 0.2rem;
  }

  .kc-mobile-menu__reward-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(58, 42, 34, 0.72);
    font-family: var(--kc-ui, Inter, sans-serif) !important;
    font-size: 0.67rem;
    font-weight: 650;
    line-height: 1.25;
  }

  .kc-mobile-menu__reward-copy span:first-child {
    color: var(--kc-menu-ink);
  }

  .kc-mobile-menu__reward-track {
    height: 0.62rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(58, 42, 34, 0.1);
    border: 1px solid rgba(58, 42, 34, 0.1);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(58, 42, 34, 0.1);
  }

  .kc-mobile-menu__reward-fill {
    width: 0;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #8f4f36 0%, var(--kc-menu-accent) 62%, #c98261 100%);
    border-radius: inherit;
    box-shadow: 0 1px 2px rgba(58, 42, 34, 0.18);
    transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .kc-mobile-menu__reward-fill::after {
    content: "";
    position: absolute;
    inset: 0 0 52%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
  }

  .kc-mobile-menu__reward.is-complete .kc-mobile-menu__reward-fill {
    background: linear-gradient(90deg, #527157 0%, #6f9274 100%);
  }

  body .menu-drawer__navigation {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.65rem 0 1rem !important;
    scrollbar-width: none;
  }

  body .menu-drawer__navigation::-webkit-scrollbar {
    display: none;
  }

  body .menu-drawer__navigation > .menu-drawer__menu {
    margin: 0 !important;
    padding: 0 !important;
  }

  body .menu-drawer__list-item--divider {
    border-bottom: 1px solid var(--kc-menu-line) !important;
  }

  body .menu-drawer__menu-item,
  body .menu-drawer__menu-item .menu-drawer__menu-item-text {
    color: var(--kc-menu-ink) !important;
  }

  body .menu-drawer__menu-item--mainlist,
  body summary.menu-drawer__menu-item--mainlist {
    min-height: 4.45rem;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0.2rem !important;
    font-family: var(--kc-display, "Cormorant Garamond", serif) !important;
    font-size: clamp(1.9rem, 8vw, 2.25rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.005em;
    line-height: 1.08 !important;
    text-decoration: none;
  }

  body summary.menu-drawer__menu-item--mainlist > .svg-wrapper {
    width: 1.8rem !important;
    height: 1.8rem !important;
    flex: 0 0 1.8rem;
    display: grid !important;
    place-items: center;
    margin-inline-start: auto;
    padding: 0 !important;
    background: transparent;
    border: 0;
    border-radius: 999px;
  }

  body summary.menu-drawer__menu-item--mainlist > .svg-wrapper svg {
    width: 0.78rem !important;
    height: 0.78rem !important;
  }

  body .menu-drawer details[open] > summary .icon-plus .horizontal {
    transform: rotate(90deg);
    transform-origin: center;
    opacity: 0;
  }

  body .menu-drawer__menu--childlist {
    margin: 0 0 0.8rem !important;
    padding: 0.25rem 0 0.35rem 0.8rem !important;
    border-left: 1px solid rgba(58, 42, 34, 0.18);
  }

  /* Display serif like the rest of the nav, kept well under the parent summary
     at clamp(1.9rem, 8vw, 2.25rem) so size and weight still mark these as
     children. Do not raise this to the parent's size: matching it is what made
     the two indistinguishable before. */
  body .menu-drawer__menu--childlist .menu-drawer__menu-item,
  body .menu-drawer__menu--childlist .menu-drawer__menu-item-text {
    min-height: 2.9rem;
    padding: 0.58rem 0.7rem !important;
    font-family: var(--kc-display, "Cormorant Garamond", serif) !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.005em;
  }

  body .menu-drawer__utility-links {
    display: none !important;
  }

  body .menu-drawer a:focus-visible,
  body .menu-drawer button:focus-visible,
  body .menu-drawer summary:focus-visible {
    outline: 2px solid var(--kc-menu-ink) !important;
    outline-offset: 3px;
  }
}

@media (max-width: 989px) and (max-height: 720px) {
  .kc-mobile-menu__topbar {
    min-height: 8.4rem;
    gap: 0.5rem;
    padding-block: 0.35rem 0.65rem;
  }

  .kc-mobile-menu__brand-row {
    min-height: 2.65rem;
  }

  .kc-mobile-menu__wordmark {
    font-size: 2rem !important;
  }

  body .menu-drawer__navigation {
    padding-block: 0.35rem !important;
  }

  body .menu-drawer__menu-item--mainlist,
  body summary.menu-drawer__menu-item--mainlist {
    min-height: 3.8rem;
    padding-block: 0.7rem !important;
    font-size: 1.72rem !important;
  }
}

@media (max-width: 360px) {
  .kc-mobile-menu__topbar {
    gap: 0.55rem;
  }

  .kc-mobile-menu__wordmark {
    font-size: 2.05rem !important;
  }

  .kc-mobile-menu__currency {
    width: 4.7rem;
  }

  .kc-mobile-menu__action {
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
  }
}
