/* Presentation only: the existing autocomplete keeps its API and keyboard behavior. */
.storefront-header .storefront-header-search .catalog-search-suggestion::after { content: none; display: none; }
.storefront-header .storefront-header-search .catalog-search-suggestion {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    border: 0;
    padding: 10px 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}
.storefront-header .storefront-header-search .catalog-search-suggestion > strong { display: block; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
.storefront-header .storefront-header-search .catalog-search-suggestion:is(:hover,:focus-visible,.is-active) {
    background: var(--sf-surface-soft);
    color: var(--sf-accent);
}
.storefront-header .storefront-header-search .catalog-search-suggestion:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: -2px;
}

.storefront-floating-contact {
    position: fixed;
    inset-inline-end: max(18px,env(safe-area-inset-right,0px));
    bottom: max(var(--sf-contact-bottom,20px),calc(env(safe-area-inset-bottom,0px) + 16px));
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 52px;
}
.storefront-floating-contact-link {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 0 2px rgb(34 158 217 / 15%),0 0 0 5px rgb(34 158 217 / 5%),0 4px 16px rgb(0 104 255 / 16%);
    transition: transform .15s ease,box-shadow .15s ease;
}
.storefront-floating-contact-link img { display: block; width: 30px; height: 30px; object-fit: contain; }
.storefront-floating-contact-telegram { background: #229ed9; }
.storefront-floating-contact-telegram svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.storefront-floating-contact-link:hover {
    box-shadow: 0 0 0 2px rgb(34 158 217 / 23%),0 0 0 5px rgb(34 158 217 / 7%),0 5px 19px rgb(0 104 255 / 22%);
}
.storefront-floating-contact-link:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 6px; }
.storefront-floating-contact-tooltip {
    position: absolute;
    inset-inline-end: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    max-width: min(220px,calc(100vw - 100px));
    padding: 7px 10px;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    background: var(--sf-surface);
    color: var(--sf-text-primary);
    font-size: 12px;
    line-height: 1.5;
    box-shadow: var(--sf-shadow-sm);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.storefront-floating-contact-link:is(:hover,:focus-visible) .storefront-floating-contact-tooltip { visibility: visible; opacity: 1; }
html[data-theme="dark"] .storefront-floating-contact-link {
    border-color: #e4f4ff;
    box-shadow: 0 0 0 2px rgb(64 177 255 / 22%),0 0 0 5px rgb(64 177 255 / 7%),0 4px 18px rgb(0 104 255 / 23%);
}
/* Used only if visible controls leave no safe vertical slot for the widget. */
.storefront-contact-clearance > :is(#main-content,.storefront-footer) { padding-inline-end: 78px; }
@media (max-width: 600px) {
    .storefront-floating-contact { width: 48px; gap: 12px; inset-inline-end: max(14px,env(safe-area-inset-right,0px)); }
    .storefront-floating-contact-link { flex-basis: 48px; width: 48px; height: 48px; }
    .storefront-floating-contact-link img { width: 28px; height: 28px; }
    .storefront-floating-contact-telegram svg { width: 26px; height: 26px; }
    .storefront-contact-clearance > :is(#main-content,.storefront-footer) { padding-inline-end: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront-floating-contact-link { transition: none; }
    .storefront-floating-contact-link:hover { transform: none; }
}
