/* Stable SVG navigation: labels and the support entry stay legible on phones. */
:root {
  --customer-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
}
.desktop-nav button[data-page="chat"] {
  align-self: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 12px;
  color: #fff;
  background: #112f4c;
}
.desktop-nav button[data-page="chat"].active::after { display: none; }

@media (max-width: 650px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    height: var(--customer-nav-height);
    min-height: 0;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #dfe6ed;
    box-shadow: 0 -6px 24px #102c4809;
  }
  .bottom-nav button {
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    gap: 4px;
    border-radius: 13px;
    color: #526a7e;
    font-weight: 600;
  }
  .bottom-nav .nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 25px;
    font-size: 0;
  }
  .bottom-nav .nav-icon svg { width: 24px; height: 24px; }
  .bottom-nav .nav-label {
    display: block;
    height: auto;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    color: inherit;
  }
  .bottom-nav button.active { background: #eef3f7; color: #163a58; }
  .bottom-nav button.active::before { content: none; }
  .bottom-nav button.support-nav,
  .bottom-nav button.support-nav.active {
    color: #fff;
    background: #11324e;
    box-shadow: 0 3px 9px #102c4824, inset 0 1px 0 #ffffff18;
  }
  .bottom-nav .support-nav .nav-icon { color: #efdab0; }
  .bottom-nav .unread {
    right: -10px;
    top: -3px;
    min-width: 16px;
    padding: 2px 4px;
    border: 2px solid #fff;
    background: #bd593f;
    font-size: 10px;
    line-height: 1.1;
  }
}
