.smls {
    --smls-green: #174f3a;
    --smls-ink: #202826;
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: var(--smls-width, 360px);
    font-family: inherit;
}
.smls *, .smls *::before, .smls *::after { box-sizing: border-box; }
.smls-host-widget { margin-bottom: 0 !important; }
.ast-above-header-bar.smls-compact-row,
.ast-above-header-bar.smls-compact-row .site-above-header-wrap,
.ast-above-header-bar.smls-compact-row .ast-builder-grid-row,
.ast-above-header-bar.smls-compact-row .site-header-section,
.ast-above-header-bar.smls-compact-row .ast-builder-layout-element {
    min-height: 0 !important;
}
.ast-above-header-bar.smls-compact-row .ast-builder-grid-row {
    padding-top: var(--smls-row-padding, 4px) !important;
    padding-bottom: var(--smls-row-padding, 4px) !important;
}
.ast-above-header-bar.smls-compact-row .widget,
.ast-above-header-bar.smls-compact-row p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.smls__form {
    display: flex;
    width: 100%;
    height: var(--smls-height, 36px);
    margin: 0 !important;
}
.smls__input {
    min-width: 0;
    width: 100%;
    height: var(--smls-height, 36px) !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #d2dad6 !important;
    border-right: 0 !important;
    border-radius: 5px 0 0 5px !important;
    background: #fff !important;
    color: var(--smls-ink) !important;
    font: inherit !important;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: 0;
}
.smls__input:focus {
    border-color: var(--smls-green) !important;
    box-shadow: inset 0 0 0 1px var(--smls-green) !important;
}
.smls__button {
    display: grid !important;
    flex: 0 0 var(--smls-button-width, 48px) !important;
    width: var(--smls-button-width, 48px) !important;
    height: var(--smls-height, 36px) !important;
    min-width: var(--smls-button-width, 48px) !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    border-radius: 0 5px 5px 0 !important;
    background: var(--smls-green) !important;
    color: #fff !important;
    cursor: pointer;
}
.smls__button:hover { filter: brightness(.86); }
.smls__button svg {
    display: block;
    width: min(22px, calc(var(--smls-height, 36px) - 14px));
    height: min(22px, calc(var(--smls-height, 36px) - 14px));
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}
.smls__panel {
    position: absolute;
    z-index: 10000;
    top: calc(100% + 6px);
    right: 0;
    width: min(430px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #d8e0dc;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20,39,31,.2);
}
.smls__status { padding: 20px; color: #66716c; font-size: 14px; text-align: center; }
.smls-result {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 7px 11px;
    border-bottom: 1px solid #edf0ee;
    color: var(--smls-ink) !important;
    text-decoration: none !important;
}
.smls-result:hover, .smls-result:focus { background: #f1f7f4; outline: 0; }
.smls-result__image {
    display: block;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f2f1;
}
.smls-result__copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.smls-result__title { overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; }
.smls-result__price { color: var(--smls-green); font-size: 13px; font-weight: 700; }
.smls__all { display: block; padding: 11px 15px; background: #f4f7f5; color: var(--smls-green) !important; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none !important; }
.smls__all:hover { background: #e8f0ec; }
.smls__all[hidden], .smls__panel[hidden], .smls__status[hidden] { display: none !important; }

@media (max-width: 544px) {
    .smls { max-width: none; }
    .smls__form { height: var(--smls-mobile-height, 36px); }
    .smls__input { height: var(--smls-mobile-height, 36px) !important; font-size: 16px !important; }
    .smls__button { height: var(--smls-mobile-height, 36px) !important; }
    .smls__button svg { width: min(21px, calc(var(--smls-mobile-height, 36px) - 13px)); height: min(21px, calc(var(--smls-mobile-height, 36px) - 13px)); }
    .smls__panel { position: fixed; top: auto; right: 12px; left: 12px; width: auto; max-height: 70vh; overflow-y: auto; }
    .smls-result { min-height: 60px; padding: 6px 9px; }
    .smls-result__image { flex-basis: 46px; width: 46px; height: 46px; }
}
