.guest-navigation-open {
  overflow: hidden;
}

.public-module-root {
  --guest-primary: var(--color-primary);
  --guest-primary-strong: color-mix(in srgb, var(--color-primary) 78%, #16110d);
  --guest-soft: color-mix(in srgb, var(--color-primary) 10%, #fff);
  --guest-ink: var(--color-text);
  --guest-muted: color-mix(in srgb, var(--color-text) 62%, #fff);
  --guest-line: color-mix(in srgb, var(--color-primary) 14%, #e8e4df);
}

.app-shell.public-module-root,
.public-module-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.public-module-shell {
  gap: 0;
}

.guest-shared-header .guest-brand {
  position: relative;
}

.guest-brand-link,
.guest-drawer-brand {
  color: inherit;
  text-decoration: none;
}

.guest-brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.guest-menu-toggle,
.guest-menu-close {
  width: 44px;
  height: 44px;
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.guest-menu-toggle svg,
.guest-menu-close svg,
.guest-nav-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.guest-desktop-nav {
  display: none;
}

.guest-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 198;
  border: 0;
  opacity: 0;
  background: rgba(18, 17, 16, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 220ms ease;
}

.guest-drawer-backdrop.is-open {
  opacity: 1;
}

.guest-navigation-drawer {
  width: min(86vw, 350px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  color: var(--guest-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 24px 0 60px rgba(20, 17, 14, 0.2);
  backdrop-filter: blur(26px) saturate(1.14);
  -webkit-backdrop-filter: blur(26px) saturate(1.14);
  transform: translateX(-104%);
  transition: transform 240ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.guest-navigation-drawer.is-open {
  transform: translateX(0);
}

.guest-drawer-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--guest-line);
}

.guest-drawer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-drawer-brand .brand-logo-img {
  width: min(170px, 54vw);
  max-height: 42px;
}

.guest-drawer-brand .brand-name-text {
  font-size: 1rem;
}

.guest-drawer-nav {
  display: grid;
  gap: 4px;
  padding-top: 16px;
}

.guest-drawer-nav > p {
  margin: 18px 12px 7px;
  color: var(--guest-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guest-drawer-nav > p:first-child {
  margin-top: 0;
}

.guest-nav-item {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--guest-ink);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.guest-nav-item:hover {
  background: color-mix(in srgb, var(--guest-soft) 88%, #fff);
}

.guest-nav-item.is-active {
  color: #fff;
  background: var(--guest-primary);
}

.guest-nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 959px) {
  .guest-shared-header.site-header {
    width: 100%;
    max-width: none;
    min-height: calc(66px + env(safe-area-inset-top));
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 72;
    margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    color: var(--guest-ink);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  .guest-shared-header .guest-brand {
    min-height: 46px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .guest-shared-header .brand-logo-img {
    width: min(156px, 48vw);
    max-height: 40px;
  }

  .guest-shared-header.is-scrolled,
  .public-module-root .guest-shared-header {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    backdrop-filter: blur(22px) saturate(1.14);
    -webkit-backdrop-filter: blur(22px) saturate(1.14);
  }

  .guest-portal-root:has(.desktop-unit-cover.is-mobile-home) .guest-shared-header:not(.is-scrolled) {
    color: #fff;
  }

  .guest-portal-root:has(.desktop-unit-cover.is-mobile-home) .guest-shared-header.is-scrolled {
    color: #fff;
    background: rgba(18, 13, 10, 0.56);
  }

  .guest-portal-root .guest-shell {
    padding-top: calc(82px + env(safe-area-inset-top));
  }

  .guest-portal-root .portal-app-top {
    padding-top: calc(70px + env(safe-area-inset-top));
  }

  .public-module-root .module-view {
    padding-top: calc(66px + env(safe-area-inset-top));
  }
}

@media (min-width: 960px) {
  .guest-menu-toggle,
  .guest-navigation-drawer,
  .guest-drawer-backdrop {
    display: none;
  }

  .guest-shared-header.site-header,
  .portal-app-top .guest-shared-header.site-header {
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    min-height: 64px;
    display: block;
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 72;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateX(-50%);
  }

  .public-module-root .guest-shared-header.site-header {
    color: var(--guest-ink);
  }

  .guest-portal-root:not(:has(.desktop-unit-cover)) .guest-shared-header.site-header {
    color: var(--guest-ink);
  }

  .guest-shared-header .guest-brand {
    min-height: 64px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .guest-shared-header .brand-logo-img {
    width: 196px;
    height: 58px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.24));
  }

  .guest-desktop-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    overflow: visible;
  }

  .guest-desktop-nav .guest-nav-item {
    min-height: 42px;
    flex: 0 1 auto;
    gap: 6px;
    border-radius: 999px;
    padding: 0 10px;
    color: currentColor;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }

  .public-module-root .guest-desktop-nav .guest-nav-item {
    text-shadow: none;
  }

  .guest-desktop-nav .guest-nav-item svg {
    width: 17px;
    height: 17px;
  }

  .guest-desktop-nav .guest-nav-item:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .public-module-root .guest-desktop-nav .guest-nav-item:hover {
    background: var(--guest-soft);
  }

  .guest-desktop-nav .guest-nav-item.is-active {
    color: var(--guest-primary-strong);
    background: rgba(255, 255, 255, 0.92);
    text-shadow: none;
  }

  .public-module-root .guest-desktop-nav .guest-nav-item.is-active {
    color: #fff;
    background: var(--guest-primary);
  }

  .guest-nav-divider {
    width: 1px;
    height: 22px;
    flex: 0 0 1px;
    margin: 0 4px;
    background: currentColor;
    opacity: 0.26;
  }

  .public-module-root .module-view {
    padding-top: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-navigation-drawer,
  .guest-drawer-backdrop {
    transition: none;
  }
}
