/* ==========================================================
   Alehsan Media - Modern Global Header
   Dedicated Phase 1 stylesheet
   ========================================================== */

:root {
    --am-header-bg: #ffffff;
    --am-nav-bg: #0f172a;
    --am-nav-text: #f8fafc;
    --am-text: #111827;
    --am-muted: #667085;
    --am-border: #e5e7eb;
    --am-soft: #f8fafc;
    --am-accent: #198754;
    --am-accent-dark: #146c43;
    --am-radius: 10px;
    --am-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}

.am-site-header {
    width: 100%;
    background: var(--am-header-bg);
    position: relative;
    z-index: 990;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}

.am-site-header *,
.am-menu-drawer *,
.am-menu-overlay * {
    box-sizing: border-box;
}


/* ---------- Utility bar ---------- */

.am-utility-bar {
    background: #fff;
    border-bottom: 1px solid var(--am-border);
}

.am-utility-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.am-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.am-logo img {
    width: 93px;
    height: auto;
    display: block;
}


/* ---------- Search ---------- */

.am-global-search {
    width: 100%;
    max-width: 680px;
    min-height: 46px;
    display: flex;
    align-items: center;
    position: relative;
    margin-inline: auto;
    border: 1px solid #d8dee7;
    border-radius: var(--am-radius);
    background: var(--am-soft);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.am-global-search:focus-within {
    background: #fff;
    border-color: #98a2b3;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .06);
}

.am-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    font-size: 15px;
    pointer-events: none;
}

.am-search-input {
    width: 100%;
    height: 44px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--am-text);
    padding: 0 98px 0 44px;
    font-size: 14px;
}

.am-search-input::placeholder {
    color: #98a2b3;
}

.am-search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    background: var(--am-nav-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.am-search-submit:hover {
    opacity: .9;
}

.am-search-submit:active {
    transform: translateY(1px);
}

.am-search-submit i {
    font-size: 11px;
}


/* ---------- Utility actions ---------- */

.am-utility-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.am-action-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.am-action-btn:hover {
    transform: translateY(-1px);
}

.am-donate-btn {
    background: var(--am-accent);
    border: 1px solid var(--am-accent);
    color: #fff !important;
}

.am-donate-btn:hover {
    background: var(--am-accent-dark);
    border-color: var(--am-accent-dark);
}

.am-login-btn {
    background: #fff;
    border: 1px solid #d8dee7;
    color: var(--am-text) !important;
}

.am-login-btn:hover {
    border-color: #98a2b3;
    background: var(--am-soft);
}

.am-account-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------- Navigation ---------- */

.am-navigation-bar {
    background: var(--am-nav-bg);
}

.am-navigation-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.am-primary-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.am-nav-link {
    position: relative;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: rgba(255, 255, 255, .88) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.am-nav-link:hover,
.am-nav-link.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, .07);
}

.am-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 0;
    height: 2px;
    background: #fff;
}

.am-mobile-nav-title {
    display: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}


/* ---------- Hamburger ---------- */

.am-menu-toggle {
    min-width: 84px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}

.am-menu-toggle:hover,
.am-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .34);
}

.am-menu-toggle-icon {
    width: 17px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.am-menu-toggle-icon span {
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 10px;
    display: block;
}


/* ---------- Overlay ---------- */

.am-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(2, 6, 23, .58);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}

.am-menu-overlay.is-visible {
    opacity: 1;
}


/* ---------- Drawer ---------- */

.am-menu-drawer {
    position: fixed;
    z-index: 1999;
    top: 0;
    right: 0;
    width: min(410px, 92vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -20px 0 50px rgba(2, 6, 23, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition:
        transform .28s ease,
        visibility .28s ease;
}

.am-menu-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.am-drawer-header {
    min-height: 76px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--am-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.am-drawer-logo img {
    width: 86px;
    height: auto;
}

.am-drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--am-border);
    border-radius: 9px;
    background: var(--am-soft);
    color: var(--am-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
}

.am-drawer-body {
    padding: 18px 20px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.am-drawer-section-title {
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.am-drawer-nav {
    border-top: 1px solid var(--am-border);
}

.am-drawer-nav > a,
.am-drawer-group {
    border-bottom: 1px solid var(--am-border);
}

.am-drawer-nav > a,
.am-drawer-group-row > a {
    min-height: 51px;
    flex: 1;
    display: flex;
    align-items: center;
    color: var(--am-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 550;
}

.am-drawer-nav > a {
    padding: 0 5px;
}

.am-drawer-nav a span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-drawer-nav a span i {
    width: 18px;
    text-align: center;
    color: #667085;
}

.am-drawer-nav > a:hover,
.am-drawer-group-row > a:hover,
.am-drawer-nav > a.is-active,
.am-drawer-group.is-active > .am-drawer-group-row > a {
    color: var(--am-accent-dark) !important;
}

.am-drawer-group-row {
    display: flex;
    align-items: center;
}

.am-drawer-group-row > a {
    padding-left: 5px;
}

.am-submenu-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s ease;
}

.am-submenu-toggle:hover {
    background: var(--am-soft);
}

.am-submenu-toggle i {
    transition: transform .2s ease;
}

.am-submenu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.am-drawer-submenu {
    display: none;
    padding: 3px 0 12px 35px;
}

.am-drawer-group.is-expanded .am-drawer-submenu {
    display: block;
}

.am-drawer-submenu a {
    display: block;
    padding: 7px 9px;
    border-radius: 6px;
    color: #667085 !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.35;
}

.am-drawer-submenu a:hover,
.am-drawer-submenu a.is-active {
    color: var(--am-text) !important;
    background: var(--am-soft);
}


/* ---------- Drawer actions ---------- */

.am-drawer-actions {
    margin-top: 24px;
    display: grid;
    gap: 9px;
}

.am-drawer-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.am-drawer-donate {
    color: #fff !important;
    background: var(--am-accent);
}

.am-drawer-login {
    color: var(--am-text) !important;
    border: 1px solid var(--am-border);
    background: #fff;
}


/* ---------- Body drawer lock ---------- */

body.am-menu-open {
    overflow: hidden;
}


/* ---------- jQuery UI autocomplete ---------- */

.ui-autocomplete {
    z-index: 2500 !important;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--am-border) !important;
    border-radius: 9px;
    background: #fff !important;
    box-shadow: var(--am-shadow);
    padding: 6px !important;
}

.ui-autocomplete .ui-menu-item-wrapper {
    border: 0 !important;
    border-radius: 6px;
    padding: 8px 10px !important;
    color: var(--am-text);
    font-size: 13px;
}

.ui-autocomplete .ui-state-active {
    margin: 0 !important;
    background: var(--am-soft) !important;
    color: var(--am-text) !important;
}


/* ---------- Legacy hooks hidden ---------- */

.am-legacy-header-hooks {
    display: none !important;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1399.98px) {
    .am-nav-wide-only {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .am-primary-nav {
        display: none;
    }

    .am-navigation-inner {
        justify-content: space-between;
    }

    .am-mobile-nav-title {
        display: block;
    }

    .am-menu-toggle {
        min-width: 92px;
    }
}

@media (max-width: 991.98px) {
    .am-utility-inner {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        min-height: 78px;
    }

    .am-global-search {
        max-width: none;
    }

    .am-action-btn {
        padding-inline: 12px;
    }
}

@media (max-width: 767.98px) {
    .am-utility-inner {
        grid-template-columns: 1fr auto;
        gap: 11px 14px;
        padding-block: 12px;
    }

    .am-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .am-logo img {
        width: 78px;
    }

    .am-utility-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .am-global-search {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 44px;
    }

    .am-search-input {
        height: 42px;
        padding-right: 88px;
        font-size: 13px;
    }

    .am-search-submit {
        height: 34px;
        top: 4px;
    }

    .am-navigation-inner {
        min-height: 48px;
    }

    .am-menu-toggle {
        height: 36px;
    }
}

@media (max-width: 479.98px) {
    .am-utility-inner {
        gap: 10px;
    }

    .am-logo img {
        width: 70px;
    }

    .am-action-btn {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .am-action-btn i {
        font-size: 12px;
    }

    .am-account-name {
        max-width: 72px;
    }

    .am-search-submit span {
        display: none;
    }

    .am-search-submit {
        width: 36px;
        padding: 0;
    }

    .am-search-input {
        padding-right: 48px;
    }

    .am-mobile-nav-title {
        font-size: 12px;
    }

    .am-menu-toggle {
        min-width: 72px;
        gap: 7px;
        padding: 0 9px;
    }

    .am-menu-toggle-text {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-site-header *,
    .am-menu-drawer,
    .am-menu-overlay {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* === ALEHSAN BRAND THEME OVERRIDE START ===
   Official Alehsan Media palette:
   Primary Blue : #0082DE
   Secondary Red: #E8553E
   Light Blue   : #ECF7FF
   ========================================================== */

:root {
    --am-brand-blue: var(--bs-primary, #0082DE);
    --am-brand-red: var(--bs-secondary, #E8553E);
    --am-brand-light-blue: var(--light-blue, #ECF7FF);

    --am-nav-bg: var(--am-brand-blue);
    --am-accent: var(--am-brand-red);
    --am-accent-dark: #cf4633;
    --am-soft: var(--am-brand-light-blue);
}

/* Main navigation = Alehsan Blue */
.am-navigation-bar {
    background: var(--am-brand-blue);
}

/* Search */
.am-global-search {
    background: var(--am-brand-light-blue);
}

.am-global-search:focus-within {
    background: #fff;
    border-color: var(--am-brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 130, 222, .12);
}

.am-search-icon {
    color: var(--am-brand-blue);
}

.am-search-submit {
    background: var(--am-brand-blue);
}

.am-search-submit:hover {
    background: #006fbe;
    opacity: 1;
}

/* Donate = Alehsan Red */
.am-donate-btn,
.am-drawer-donate {
    background: var(--am-brand-red);
    border-color: var(--am-brand-red);
}

.am-donate-btn:hover,
.am-drawer-donate:hover {
    background: #cf4633;
    border-color: #cf4633;
}

/* Login remains clean with blue identity */
.am-login-btn {
    border-color: rgba(0, 130, 222, .35);
    color: var(--am-brand-blue) !important;
}

.am-login-btn:hover {
    border-color: var(--am-brand-blue);
    background: var(--am-brand-light-blue);
}

/* Navigation active/hover */
.am-nav-link:hover,
.am-nav-link.is-active {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
}

.am-nav-link.is-active::after {
    background: var(--am-brand-red);
    height: 3px;
}

/* Hamburger stays inside blue brand family */
.am-menu-toggle {
    border-color: rgba(255, 255, 255, .40);
    background: rgba(255, 255, 255, .10);
}

.am-menu-toggle:hover,
.am-menu-toggle[aria-expanded="true"] {
    background: var(--am-brand-red);
    border-color: var(--am-brand-red);
}

/* Drawer */
.am-drawer-nav > a:hover,
.am-drawer-group-row > a:hover,
.am-drawer-nav > a.is-active,
.am-drawer-group.is-active > .am-drawer-group-row > a {
    color: var(--am-brand-blue) !important;
}

.am-drawer-nav a span i {
    color: var(--am-brand-red);
}

.am-drawer-submenu a:hover,
.am-drawer-submenu a.is-active {
    color: var(--am-brand-blue) !important;
    background: var(--am-brand-light-blue);
}

.am-submenu-toggle:hover {
    color: var(--am-brand-blue);
    background: var(--am-brand-light-blue);
}

.am-drawer-close:hover {
    color: #fff;
    border-color: var(--am-brand-red);
    background: var(--am-brand-red);
}

/* Autocomplete */
.ui-autocomplete .ui-state-active {
    background: var(--am-brand-light-blue) !important;
    color: var(--am-brand-blue) !important;
}

/* === ALEHSAN BRAND THEME OVERRIDE END === */

/* ==========================================================
   PHASE 1.4 - Compact header + desktop dropdowns
   ========================================================== */

/*
 * Remove unwanted legacy spacing above the new global header.
 * This intentionally targets the new site header only.
 */
html {
    margin-top: 0 !important;
}

body#mainBody {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.am-site-header {
    margin-top: 0 !important;
    top: 0;
}


/* ---------- More compact top utility row ---------- */

.am-utility-inner {
    min-height: 70px;
    gap: 22px;
}

.am-logo img {
    width: 80px;
}


/* ---------- Slightly stronger main navigation typography ---------- */

.am-nav-link {
    font-size: 14px;
    font-weight: 600;
    padding-left: 12px;
    padding-right: 12px;
}


/* ==========================================================
   Desktop dropdown menus
   ========================================================== */

.am-nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.am-nav-dropdown-link {
    gap: 7px;
}

.am-nav-chevron {
    font-size: 9px;
    margin-top: 2px;
    transition: transform .2s ease;
}

.am-nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 1500;

    width: max-content;
    min-width: 220px;
    max-width: 330px;

    padding: 7px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid var(--am-brand-red);
    border-radius: 0 0 9px 9px;

    box-shadow: 0 14px 32px rgba(15, 23, 42, .13);

    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.am-nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;

    color: #344054 !important;
    text-decoration: none !important;

    border-radius: 6px;

    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;

    white-space: normal;
}

.am-nav-dropdown-menu a:hover {
    color: var(--am-brand-blue) !important;
    background: var(--am-brand-light-blue);
}

.am-nav-dropdown:hover .am-nav-dropdown-menu,
.am-nav-dropdown:focus-within .am-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.am-nav-dropdown:hover .am-nav-chevron,
.am-nav-dropdown:focus-within .am-nav-chevron {
    transform: rotate(180deg);
}


/* ---------- Better search suggestion list ---------- */

.ui-autocomplete {
    max-height: 420px !important;
    padding: 7px !important;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 10px 12px !important;
    font-size: 14px;
    line-height: 1.35;
}

.am-search-suggestion-type {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
    font-size: 11px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .am-nav-dropdown {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .am-utility-inner {
        min-height: auto;
    }

    .am-logo img {
        width: 68px;
    }
}

/* ==========================================================
   PHASE 1.5 - ALEHSAN MEDIA RESPONSIVE BRAND LOGOS
   Circle     = Primary brand mark / very small mobile
   Horizontal = Website navigation / desktop / drawer
   ========================================================== */

.am-brand-picture {
    display: flex;
    align-items: center;
}

.am-brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.am-logo {
    min-width: 190px;
    line-height: 0;
}

/* Drawer uses horizontal identity */
.am-drawer-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.am-drawer-brand-logo {
    display: block;
    width: 175px;
    max-width: 70%;
    height: auto;
}


/* Compact top header with horizontal logo */
.am-utility-inner {
    min-height: 68px;
}


/* Tablet */
@media (max-width: 991.98px) {
    .am-brand-logo {
        width: 165px;
    }

    .am-logo {
        min-width: 165px;
    }
}


/* Small mobile switches back to circle mark */
@media (max-width: 575.98px) {
    .am-logo {
        min-width: 58px;
    }

    .am-brand-picture img {
        width: 58px;
        height: 58px;
        object-fit: contain;
    }

    .am-utility-inner {
        min-height: auto;
    }
}


/* Very narrow mobile */
@media (max-width: 390px) {
    .am-logo {
        min-width: 52px;
    }

    .am-brand-picture img {
        width: 52px;
        height: 52px;
    }
}

/* ==========================================================
   PHASE 1.7 - Final Horizontal Logo Sizing
   ========================================================== */

/* Desktop / large screens */
.am-logo .am-brand-logo {
    width: 210px !important;
    max-width: none !important;
    height: auto !important;
}

.am-logo {
    min-width: 210px !important;
}

/* Hamburger drawer */
.am-drawer-logo .am-drawer-brand-logo {
    width: 215px !important;
    max-width: none !important;
    height: auto !important;
}

/* Medium / tablet */
@media (max-width: 1199.98px) {
    .am-logo .am-brand-logo {
        width: 190px !important;
    }

    .am-logo {
        min-width: 190px !important;
    }
}

@media (max-width: 991.98px) {
    .am-logo .am-brand-logo {
        width: 175px !important;
    }

    .am-logo {
        min-width: 175px !important;
    }
}

/* Small mobile still uses circle brand mark */
@media (max-width: 575.98px) {
    .am-logo {
        min-width: 58px !important;
    }

    .am-logo .am-brand-picture img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        object-fit: contain;
    }

    .am-drawer-logo .am-drawer-brand-logo {
        width: 195px !important;
        max-width: 70% !important;
    }
}

/* ==========================================================
   PHASE 1.9 - Native Live Search Dropdown
   ========================================================== */

.am-global-search {
    overflow: visible !important;
    z-index: 100;
}

.am-live-search-results {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;

    z-index: 4000;

    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 7px;

    background: #ffffff;

    border: 1px solid #d8dee7;
    border-top: 3px solid var(--am-brand-blue);

    border-radius: 9px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .16);

    text-align: left;
}

.am-live-search-results[hidden] {
    display: none !important;
}


/* Search result row */

.am-live-search-item {
    appearance: none;

    width: 100%;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        18px;

    align-items: center;

    gap: 10px;

    padding: 9px 10px;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #1d2939;

    text-align: left;

    cursor: pointer;

    transition:
        background .16s ease,
        color .16s ease;
}

.am-live-search-item + .am-live-search-item {
    margin-top: 2px;
}

.am-live-search-item:hover,
.am-live-search-item:focus {
    outline: none;

    background: var(--am-brand-light-blue);
}


/* Icon */

.am-live-search-item-icon {
    width: 32px;
    height: 32px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(0, 130, 222, .09);

    color: var(--am-brand-blue);

    font-size: 13px;
}


/* Text */

.am-live-search-item-content {
    min-width: 0;

    display: block;
}

.am-live-search-item-title {
    display: block;

    overflow: hidden;

    color: #1d2939;

    font-size: 13.5px;
    font-weight: 600;

    line-height: 1.35;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.am-live-search-item-type {
    display: block;

    margin-top: 3px;

    color: #98a2b3;

    font-size: 10.5px;
    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .025em;
}


/* Arrow */

.am-live-search-item-arrow {
    color: #98a2b3;

    font-size: 10px;
}


/* Loading / empty states */

.am-live-search-state {
    min-height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px;

    color: #667085;

    font-size: 13px;
}

.am-live-search-state i {
    color: var(--am-brand-blue);
}


/* Better multilingual handling */

.am-live-search-item-title {
    unicode-bidi: plaintext;
}


/* Mobile */

@media (max-width: 767.98px) {

    .am-live-search-results {
        max-height: 360px;
    }

    .am-live-search-item-title {
        font-size: 13px;
    }

}


/* Very small mobile */

@media (max-width: 479.98px) {

    .am-live-search-results {
        left: -2px;
        right: -2px;

        max-height: 320px;

        padding: 5px;
    }

    .am-live-search-item {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            14px;

        gap: 8px;

        padding: 8px;
    }

    .am-live-search-item-icon {
        width: 29px;
        height: 29px;
    }
}
