/* HawkChat 8.16.1 -- responsive header and pricing-card finishing layer.
 * Main menu switches to an accessible drawer before the nav overlaps header actions.
 * This file is loaded after the theme CSS and leaves colours and page design intact.
 */
@media (max-width: 1320px) {
  .hc-site-header > .hc-container {
    width: min(calc(100% - 24px), 1240px) !important;
  }
  .hc-site-header .hc-header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    height: 68px !important;
    padding: 0 12px 0 18px !important;
    min-width: 0;
  }
  .hc-site-header .hc-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }
  .hc-site-header .hc-brand img {
    display: block;
    width: min(var(--hc-logo-width), 42vw) !important;
    max-width: 100% !important;
    height: auto;
  }
  .hc-site-header .hc-main-nav,
  .hc-site-header .hc-header-actions {
    display: none !important;
  }
  .hc-site-header .hc-mobile-toggle {
    display: grid !important;
    place-items: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 8px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    cursor: pointer;
  }
  .hc-site-header .hc-mobile-toggle .hc-icon {
    width: 24px;
    height: 24px;
  }
  .hc-site-header .hc-mobile-menu {
    display: block;
    pointer-events: auto;
    position: relative;
    margin: 10px 0 0;
    padding: 12px 0 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: color-mix(in srgb, var(--hc-header) 94%, transparent);
    color: #fff;
    box-shadow: 0 24px 64px -18px rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .hc-site-header .hc-mobile-menu[hidden] {
    display: none !important;
  }
  .hc-site-header .hc-mobile-menu > .hc-container {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin: 0 auto;
  }
  .hc-site-header .hc-mobile-nav-group {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .hc-site-header .hc-mobile-nav-group span {
    display: block;
    color: #d4bbca;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 11px;
    margin-bottom: 6px;
  }
  .hc-site-header .hc-mobile-nav-group a {
    display: block;
    color: #fff;
    font-weight: 700;
    padding: 9px 4px;
    line-height: 1.35;
  }
  .hc-site-header .hc-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }
  .hc-site-header .hc-mobile-actions .hc-button {
    flex: 1 1 130px;
    width: auto;
    min-width: 0;
  }
  .hc-site-header .hc-mobile-actions .hc-theme-toggle {
    flex: 0 0 42px !important;
    width: 42px;
    height: 42px;
  }
}
/* WordPress' mobile admin bar is 46px rather than 32px. */
@media (max-width: 782px) {
  .admin-bar .hc-site-header { top: 46px !important; }
  .admin-bar .hc-site-header .hc-mobile-menu {
    max-height: calc(100dvh - 154px);
  }
}
@media (max-width: 600px) {
  /* The WP admin bar stops being fixed on narrow phone screens. */
  .admin-bar .hc-site-header { top: 0 !important; }
}
@media (max-width: 680px) {
  .hc-site-header > .hc-container {
    width: calc(100% - 20px) !important;
  }
  .hc-site-header .hc-header-inner {
    height: 62px !important;
    padding: 0 9px 0 14px !important;
    border-radius: 19px;
  }
  .hc-site-header .hc-mobile-menu {
    margin-top: 8px;
    border-radius: 19px;
  }
  .hc-site-header .hc-mobile-menu > .hc-container {
    width: calc(100% - 28px);
  }
  .hc-pricing-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .hc-pricing-grid .hc-price-card {
    min-width: 0;
    min-height: 0;
  }
  .hc-pricing-grid .hc-price-card .hc-button {
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .hc-site-header .hc-mobile-actions {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) minmax(0,1fr);
    gap: 7px;
  }
  .hc-site-header .hc-mobile-actions .hc-button {
    min-width: 0;
    padding: 0 6px;
    font-size: 12px !important;
  }
}
/* Never let a plan's longer, approved features force horizontal scrolling. */
.hc-pricing-grid { min-width: 0; }
.hc-pricing-grid > .hc-price-card { min-width: 0; }
.hc-price-card .hc-price-list li { min-width: 0; }
.hc-price-card .hc-price-list li span { min-width: 0; overflow-wrap: anywhere; }
