.z5-local-cloud-shell {
  position: relative;
  --z5-local-sidebar-width: 264px;
  --z5-local-switcher-width: 386px;
}

.z5-local-cloud-shell .sidebar {
  z-index: 90;
}

.z5-local-cloud-shell[data-mode="store"] .sidebar {
  gap: 0;
  padding: 0;
  background: var(--surface-soft);
  border-right-color: var(--line);
}

.z5-local-cloud-shell .brand.zone5-context-identity {
  min-height: 124px;
}

.z5-local-cloud-shell[data-mode="store"] .brand.zone5-context-identity {
  min-height: 154px;
  padding: 26px 26px 18px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.z5-local-cloud-shell[data-mode="store"] .main {
  min-height: 100vh;
  padding: 0;
  gap: 0;
  align-content: stretch;
  background: #fff;
  overflow: hidden;
}

.z5-local-cloud-shell[data-mode="store"] [data-z5-local-nav] {
  flex: 1 1 auto;
  display: block;
  gap: 0;
  padding: 12px 14px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.z5-local-cloud-shell[data-mode="store"] [data-z5-local-nav]::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.z5-local-take-nav-title {
  height: auto;
  margin: 4px 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.z5-local-take-nav-list {
  display: grid;
  gap: 6px;
  padding: 0;
}

.z5-local-take-nav-row {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.z5-local-take-nav-row.active {
  border-color: rgba(243, 122, 23, 0.36);
  background: #fff4e8;
  color: var(--orange-deep);
}

.z5-local-take-nav-row:not(.active):hover {
  border-color: var(--line);
  background: var(--surface-warm);
  color: var(--text);
}

.z5-local-take-nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.9;
}

.z5-local-takehr-frame-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.z5-local-cloud-shell[data-mode="store"][data-take-fullscreen="score"] .z5-local-takehr-frame-wrap {
  z-index: 120;
}

.z5-local-takehr-frame {
  width: 100vw;
  height: 100vh;
  border: 0;
  display: block;
  background: #fff;
}

.z5-local-cloud-shell .zone5-context-name-button {
  cursor: pointer;
}

.z5-local-brand-badge {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.z5-local-switcher {
  position: fixed;
  left: var(--z5-local-sidebar-width);
  top: 0;
  bottom: 0;
  z-index: 60;
  width: var(--z5-local-switcher-width);
  padding: 22px 18px 20px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  box-shadow: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
  pointer-events: none;
  overflow-y: auto;
}

.z5-local-cloud-shell[data-switcher="open"] .z5-local-switcher {
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.z5-local-drawer-mask {
  position: fixed;
  left: calc(var(--z5-local-sidebar-width) + var(--z5-local-switcher-width));
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  border: 0;
  padding: 0;
  background: rgba(47, 51, 56, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.z5-local-cloud-shell[data-switcher="open"] .z5-local-drawer-mask {
  opacity: 1;
  pointer-events: auto;
}

.z5-local-switcher-head {
  position: relative;
  z-index: 3;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 16px;
  background: transparent;
}

.z5-local-switcher-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.z5-local-brand-button {
  min-width: 96px;
  min-height: 42px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.z5-local-brand-button::before {
  content: none;
}

.z5-local-cloud-shell[data-mode="brand"] .z5-local-brand-button {
  display: none;
}

.z5-local-switch-search {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.z5-local-switch-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 42px 11px 12px;
  background: #fbfaf6;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.z5-local-switch-search::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.z5-local-switch-search::before {
  content: "";
  position: absolute;
  right: 13px;
  top: 26px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  z-index: 1;
}

.z5-local-store-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
}

.z5-local-store-card {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ebe5d9;
  border-radius: var(--radius);
  background: var(--surface-warm);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.z5-local-store-card.current {
  border-color: #efb584;
  background: #fffaf4;
  box-shadow: 0 10px 24px rgba(243, 122, 23, 0.10);
}

.z5-local-store-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #0e0d0c;
  border-radius: 15px;
}

.z5-local-store-card > span {
  min-width: 0;
}

.z5-local-store-card strong,
.z5-local-store-card span span,
.z5-local-store-card em {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.z5-local-store-card strong {
  margin: 0 0 1px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.z5-local-store-card span span,
.z5-local-store-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

.z5-local-store-card:not(.current) strong,
.z5-local-store-card:not(.current) span span,
.z5-local-store-card:not(.current) em {
  color: var(--muted);
}

.z5-local-store-card em {
  margin-top: 4px;
}

.z5-local-store-card b {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 54px;
  height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0ed;
  color: var(--red);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  z-index: 1;
}

@media (max-width: 1480px) {
  .z5-local-cloud-shell {
    --z5-local-sidebar-width: 240px;
  }
}

@media (max-width: 980px) {
  .z5-local-cloud-shell {
    --z5-local-switcher-width: min(340px, calc(100vw - var(--z5-local-sidebar-width)));
  }

  .z5-local-switcher {
    left: var(--z5-local-sidebar-width);
    width: var(--z5-local-switcher-width);
    transform: translateX(-100%);
  }

  .z5-local-drawer-mask {
    left: calc(var(--z5-local-sidebar-width) + var(--z5-local-switcher-width));
  }

  .z5-local-takehr-frame {
    min-width: 0;
  }
}
