.asv-live[hidden], .asv-live [hidden] { display: none !important; }
.asv-live {
    position: fixed;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    color: #192535;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: 0 14px 44px #172a4233;
    overflow: hidden;
    isolation: isolate;
    font: inherit;
}
.asv-live *, .asv-live *::before { box-sizing: border-box; }
.asv-live-body {
    display: flex;
    min-height: 0;
    overflow: hidden;
}
.asv-live-content {
    flex: 1;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-padding-top: 36px;
}
.asv-live-categories {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 0 0 31%;
    min-width: 0;
    padding: 8px;
    background: #f5f7fa;
    overflow: auto;
    overscroll-behavior: contain;
}
.asv-live .asv-live-category, .asv-live .asv-live-close {
    appearance: none;
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}
.asv-live .asv-live-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    flex: none;
    min-height: 42px;
    padding: 6px 9px;
    text-align: start;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: 14px;
}
.asv-live a.asv-live-category { text-decoration: none; }
.asv-live .asv-live-category > span:first-child { min-width: 0; }
.asv-live-count {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    padding: 2px 6px;
    border-radius: 10px;
    background: #fff;
    color: #ad2030;
    font-weight: 700;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.asv-live .asv-live-close {
    position: absolute;
    right: 4px;
    top: 3px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 0;
    background: #fff;
    font-size: 23px;
    z-index: 1;
}
.asv-live ul.asv-live-items { list-style: none; margin: 0; padding: 0; }
.asv-live .asv-live-items li { margin: 0; padding: 0; }
.asv-live .asv-live-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 8px 12px;
    border-bottom: 1px solid #edf0f4;
    color: inherit;
    text-decoration: none;
}
.asv-live .asv-live-items li:first-child a { padding-right: 50px; }
.asv-live .asv-live-product img {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}
.asv-live-details { display: grid; gap: 3px; min-width: 0; }
.asv-live-title { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.asv-live-price { font-size: 14px; font-weight: 700; color: #173b72; }
.asv-live p.asv-live-status { margin: 0; padding: 15px 48px 15px 12px; }
.asv-live .asv-live-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    padding: 0 !important;
}
.asv-live-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-top: 1px solid #dbe2ea;
    color: #45556a;
    font-size: 13px;
}
.asv-live .asv-live-all {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 12px;
    color: #fff;
    background: #204d87;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.asv-live :focus-visible { outline: 2px solid #2862a7; outline-offset: -2px; }
@media (hover: hover) {
    .asv-live .asv-live-product:hover, .asv-live .asv-live-category:hover,
    .asv-live .asv-live-close:hover { background: #edf4ff; }
    .asv-live .asv-live-all:hover { background: #173b72; color: #fff; }
}
@media (max-width: 699px) {
    .asv-live-body { flex-direction: column; }
    .asv-live-categories {
        flex: 0 0 auto;
        flex-direction: row;
        padding: 5px 49px 5px 5px;
        white-space: nowrap;
        scrollbar-width: thin;
    }
    .asv-live .asv-live-category { min-height: 44px; }
    .asv-live .asv-live-product { gap: 8px; min-height: 62px; }
    .asv-live .asv-live-product img { width: 46px; height: 46px; }
}

/* Mobile header search uses its own light surface and the visible keyboard viewport. */
.asv-mobile-search[hidden] { display: none !important; }
.asv-mobile-search {
    position: fixed;
    z-index: 2147483000;
    top: var(--asv-search-top, 0px);
    left: 0;
    right: 0;
    max-height: var(--asv-search-height, 100dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #192535;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 7px 25px #172a4226;
}
.asv-mobile-search *, .asv-mobile-search *::before { box-sizing: border-box; }
.asv-mobile-search .asv-mobile-form {
    display: flex;
    flex: none;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: max(6px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) 6px max(7px, env(safe-area-inset-left));
    border-bottom: 1px solid #e5eaf0;
}
.asv-mobile-search .asv-mobile-form input[type="search"] {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #ccd7e2;
    border-radius: 9px;
    background: #f7f9fc;
    color: #192535;
    font-size: 16px;
}
.asv-mobile-search .asv-mobile-form button {
    appearance: none;
    flex: none;
    min-height: 44px;
    padding: 0 9px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 13px;
    cursor: pointer;
}
.asv-mobile-search .asv-mobile-form .asv-mobile-submit { background: #204d87; color: #fff; }
.asv-mobile-search .asv-mobile-form :is(.asv-mobile-keyboard, .asv-mobile-close) {
    min-width: 38px;
    background: #edf2f8;
    color: #192535;
    font-size: 21px;
}
.asv-mobile-search:has(.asv-live:not([hidden])) { height: var(--asv-search-height, 100dvh); }
.asv-mobile-search .asv-live {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.asv-mobile-search .asv-live-body { flex: 1 1 auto; flex-direction: column; }
.asv-mobile-search .asv-live-content { min-height: 0; touch-action: pan-y; }
.asv-mobile-search .asv-live-categories {
    flex: 0 0 auto;
    flex-direction: row;
    min-height: 48px;
    padding: 3px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.asv-mobile-search .asv-live-category { min-height: 40px; }
.asv-mobile-search .asv-live-close { display: none; }
.asv-mobile-search .asv-live-product,
.asv-mobile-search .asv-live-items li:first-child a { min-height: 53px; padding: 4px 9px; }
.asv-mobile-search .asv-live-product img { width: 42px; height: 42px; }
.asv-mobile-search .asv-live-footer {
    flex: none;
    padding: 3px 7px max(3px, env(safe-area-inset-bottom));
    gap: 3px;
    font-size: 12px;
}
.asv-mobile-search .asv-live-footer .asv-live-all { min-height: 38px; padding: 4px 8px; }

.asv-live-toolbar {
    order: -1;
    flex: none;
    padding: 4px 52px 4px 8px;
    border-bottom: 1px solid #edf0f4;
}
.asv-live .asv-live-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 33px;
    padding: 4px 9px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    color: #192535;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
}
.asv-live .asv-live-stock::before {
    content: '';
    width: 13px;
    height: 13px;
    border: 1px solid #72859a;
    border-radius: 3px;
}
.asv-live .asv-live-stock[aria-pressed="true"] {
    background: #edf4ff;
    border-color: #9cb9df;
}
.asv-live .asv-live-stock[aria-pressed="true"]::before {
    background: #204d87;
    box-shadow: inset 0 0 0 2px #fff;
}
.asv-mobile-search .asv-live-toolbar { padding: 2px 7px; }

.asv-live-unavailable {
    justify-self: start;
    padding: 2px 6px;
    border-radius: 4px;
    color: #983720;
    background: #fff0e9;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.asv-live-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    min-height: 68px;
    border-bottom: 1px solid #edf0f4;
}
.asv-live-shimmer {
    display: block;
    border-radius: 6px;
    background: #edf2f7;
    background-image: linear-gradient(100deg, transparent 28%, #fff9 50%, transparent 72%);
    background-size: 230% 100%;
    animation: asv-live-loading 1.35s ease-in-out infinite;
}
.asv-live-placeholder-image { flex: 0 0 44px; height: 44px; }
.asv-live-placeholder-lines { display: grid; gap: 9px; width: min(68%, 380px); }
.asv-live-placeholder-lines .asv-live-shimmer { height: 10px; }
.asv-live-placeholder-lines .asv-live-shimmer:last-child { width: 32%; }
@keyframes asv-live-loading {
    from { background-position: 120% 0; }
    to { background-position: -90% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .asv-live-shimmer { animation: none; background-image: none; }
}

.asv-mobile-search {
    left: max(clamp(12px, 4vw, 22px), env(safe-area-inset-left));
    right: max(clamp(12px, 4vw, 22px), env(safe-area-inset-right));
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    box-shadow: 0 6px 24px #172a422b;
}
.asv-mobile-search .asv-mobile-form {
    padding: 6px;
    background: #fff;
}
.asv-mobile-search .asv-live-categories {
    gap: 4px;
    min-height: 0;
    padding: 2px 6px 3px;
    background: #eaf0f7;
    border-block: 1px solid #d9e3ef;
    scrollbar-color: #90a8c4 transparent;
}
.asv-mobile-search .asv-live-categories::-webkit-scrollbar { height: 4px; }
.asv-mobile-search .asv-live-categories::-webkit-scrollbar-thumb {
    background: #90a8c4;
    border-radius: 4px;
}
.asv-mobile-search a.asv-live-category {
    min-height: 28px;
    max-width: min(66vw, 220px);
    gap: 4px;
    font-size: 12px;
    padding: 2px 5px;
    border: 1px solid #c8d7e8;
    border-radius: 9px;
    background: #fff;
    color: #193e68;
    font-weight: 600;
    white-space: normal;
}
.asv-mobile-search .asv-live-category .asv-live-count { background: #f4edf0; }

.asv-mobile-search .asv-mobile-keyboard-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}
