/* =========================================================
   KKF Mobile Header
   Version: 1.0.0

   Shown only below the breakpoint, which is written out as an
   inline rule by the module, since it is a setting.
   ========================================================= */

.kkf-mh {
  --mh-sun: var(--kkf-sun, #f0522b);
  --mh-mango: var(--kkf-mango, #f7941d);
  --mh-ink: var(--kkf-ink, #17211f);
  --mh-soft: var(--kkf-ink-soft, #5f6f6a);
  --mh-line: var(--kkf-line, #ecdfd3);
  --mh-height: 62px;

  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9000;

  /* Hidden until the breakpoint rule switches it on. */
  display: none;

  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--mh-height);
  padding: 0 10px calc(0px + env(safe-area-inset-top, 0px) * 0);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--mh-line);
  font-family: var(--kkf-font-body, "Plus Jakarta Sans", system-ui,
    sans-serif);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.kkf-mh *,
.kkf-mh-drawer * {
  box-sizing: border-box;
}

/* Taller when the phone has a notch. */
.kkf-mh {
  height: calc(var(--mh-height) + env(safe-area-inset-top, 0px));
}

/* ---------------------------------------- buttons */

.kkf-mh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--mh-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.kkf-mh-btn:active {
  background: var(--kkf-sun-wash, #fff1ea);
}

/* the hamburger */

.kkf-mh-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}

.kkf-mh-bars span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--mh-sun);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.35, 1),
    opacity 0.2s ease;
}

.kkf-mh-menu-btn[aria-expanded="true"] .kkf-mh-bars span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.kkf-mh-menu-btn[aria-expanded="true"] .kkf-mh-bars span:nth-child(2) {
  opacity: 0;
}

.kkf-mh-menu-btn[aria-expanded="true"] .kkf-mh-bars span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* the logo */

.kkf-mh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 8px 4px;
  text-decoration: none;
}

.kkf-mh-logo img {
  max-height: 100%;
  max-width: 170px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.kkf-mh-wordmark {
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mh-sun);
  white-space: nowrap;
}

.kkf-mh-wordmark strong {
  color: var(--mh-ink);
  font-weight: 600;
}

/* the profile button */

.kkf-mh-profile {
  overflow: hidden;
  border: 1.5px solid var(--mh-line);
  border-radius: 50%;
  background: var(--kkf-sand, #fbf6f0);
}

.kkf-mh-profile.is-signed-in {
  border-color: var(--mh-sun);
}

.kkf-mh-profile img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.kkf-mh-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, var(--mh-mango), var(--mh-sun));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.kkf-mh-person {
  width: 21px;
  height: 21px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317211f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------------------------------------- drawer */

.kkf-mh-scrim {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(23, 33, 31, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.kkf-mh-scrim[hidden] {
  display: none;
}

.kkf-mh-scrim.is-open {
  opacity: 1;
}

.kkf-mh-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 9002;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  background: #fff;
  box-shadow: 0 0 60px -10px rgba(23, 33, 31, 0.5);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.35, 1);
  font-family: var(--kkf-font-body, system-ui, sans-serif);
  padding-top: env(safe-area-inset-top, 0px);
}

.kkf-mh-drawer[hidden] {
  display: none;
}

.kkf-mh-drawer.is-open {
  transform: translateX(0);
}

.kkf-mh-drawer-head {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 56px 20px 20px;
  border-bottom: 1px solid var(--kkf-line, #ecdfd3);
  background: var(--kkf-sand, #fbf6f0);
}

.kkf-mh-close {
  position: absolute;
  right: 12px;
  top: calc(14px + env(safe-area-inset-top, 0px));
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 33, 31, 0.07);
  color: var(--kkf-ink, #17211f);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.kkf-mh-account {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.kkf-mh-account img,
.kkf-mh-account .kkf-mh-initial {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.kkf-mh-account-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kkf-mh-account-copy strong {
  font-size: 16px;
  color: var(--kkf-ink, #17211f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kkf-mh-account-copy span {
  font-size: 13px;
  color: var(--kkf-ink-soft, #5f6f6a);
}

.kkf-mh-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--mh-mango), var(--mh-sun));
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.kkf-mh-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
}

.kkf-mh-menu,
.kkf-mh-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kkf-mh-menu li {
  margin: 0;
}

.kkf-mh-menu a {
  display: block;
  padding: 15px 22px;
  border-bottom: 1px solid var(--kkf-line-soft, #f4ece4);
  color: var(--kkf-ink, #17211f);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.kkf-mh-menu a:active,
.kkf-mh-menu .current-menu-item > a {
  background: var(--kkf-sun-wash, #fff1ea);
  color: var(--mh-sun);
}

/* second level */
.kkf-mh-menu ul a {
  padding-left: 40px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--kkf-ink-soft, #5f6f6a);
}

.kkf-mh-drawer-foot {
  flex: 0 0 auto;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--kkf-line, #ecdfd3);
}

.kkf-mh-drawer-foot a {
  color: var(--kkf-ink-soft, #5f6f6a);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

/* Stop the page scrolling behind the drawer. */
body.kkf-mh-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .kkf-mh-drawer,
  .kkf-mh-scrim,
  .kkf-mh-bars span {
    transition: none !important;
  }
}