.sswc {
    --sswc-accent: #245b47;
    --sswc-radius: 14px;
    --sswc-soft: color-mix(in srgb, var(--sswc-accent) 8%, white);
    --sswc-selected: color-mix(in srgb, var(--sswc-accent) 14%, white);
    position: relative;
    width: 100%;
    font-family: inherit;
    color: #182820;
    line-height: 1.5;
    text-align: start
}

.sswc * {
    box-sizing: border-box
}

.sswc.sswc--catalog .sswc__form {
    gap: 0 !important;
    padding: 0 !important;
    border: 2px solid var(--sswc-accent);
    border-radius: var(--sswc-radius);
    box-shadow: none
}

.sswc.sswc--catalog .sswc__input {
    padding: 10px 16px;
    min-height: 42px
}

.sswc.sswc--catalog .sswc__submit {
    padding: var(--sswc-button-padding, 0 16px) !important;
    min-width: 44px;
    min-height: 42px;
    align-self: stretch;
    border-radius: inherit !important;
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
    background: transparent;
    color: inherit;
    margin: 0 !important
}

.sswc.sswc--catalog .sswc__submit:hover {
    color: var(--sswc-accent);
    background: var(--sswc-soft, #f4f4f4)
}

.sswc.sswc--catalog .sswc__button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.sswc .sswc__submit svg.sswc__button-icon {
    fill: none
}

.sswc .sswc__categories {
    flex: 0 0 min(240px, 34%);
    min-width: 0;
    align-self: stretch;
    position: relative;
    border-inline-end: 1px solid var(--sswc-accent)
}

.sswc .sswc__category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    min-height: 44px;
    list-style: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

.sswc .sswc__category-toggle::-webkit-details-marker {
    display: none
}
.sswc .sswc__category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.sswc .sswc__category-toggle::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -4px
}

.sswc .sswc__category-panel {
    position: absolute;
    top: calc(100% + var(--sswc-category-panel-gap, 8px));
    inset-inline-start: 0;
    width: max(100%, var(--sswc-category-panel-min-width, 240px));
    max-width: 80vw;
    padding: 12px;
    background: #fff;
    border: 1px solid #d4ddd7;
    border-radius: 12px;
    box-shadow: 0 16px 48px #18282024;
    z-index: 1001
}

.sswc .sswc__category-panel input.sswc__category-search {
    width: 100%;
    padding: 10px 12px;
    margin: 0 0 8px;
    border: 1px solid #d4ddd7;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: inherit;
    min-height: 44px
}

.sswc .sswc__category-select {
    width: 100%;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 14px;
    padding: 0;
    max-height: 260px
}

.sswc .sswc__category-select option {
    padding: 10px;
    white-space: normal
}

.sswc .sswc__category-options{max-height:260px;overflow:auto;overscroll-behavior:contain;color:inherit;background:transparent}
.sswc button.sswc__category-option{display:block;width:100%;margin:0;border:0;border-radius:4px;padding:10px 10px 10px calc(10px + var(--sswc-category-depth,0) * var(--sswc-category-indent,12px));background:transparent;color:inherit;font:inherit;text-align:start;white-space:normal;line-height:1.4;cursor:pointer;box-shadow:none}
.sswc button.sswc__category-option[aria-selected="true"]{color:var(--sswc-category-selected-color,var(--sswc-accent));background:var(--sswc-category-selected-bg,var(--sswc-selected, #ededed));font-weight:600}
.sswc button.sswc__category-option:hover,.sswc button.sswc__category-option:focus-visible{color:var(--sswc-category-hover-color,var(--sswc-accent));background:var(--sswc-category-hover-bg,var(--sswc-soft, #f4f4f4))}

.sswc summary:focus-visible,
.sswc select:focus-visible,
.sswc .sswc__category-search:focus-visible {
    outline: 2px solid var(--sswc-accent);
    outline-offset: 2px
}

@media(max-width:480px) {
    .sswc .sswc__categories {
        flex-basis: 34%
    }

    .sswc .sswc__category-toggle {
        padding: 10px;
        font-size: 12px;
        gap: 6px
    }

    .sswc.sswc--catalog .sswc__input {
        padding-inline: 10px;
        font-size: 14px
    }

    .sswc.sswc--catalog .sswc__clear {
        flex-basis: 32px;
        width: 32px
    }
}

/* Mobile categories get their own row so the query stays readable. */
@media(max-width:767px){
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:0;padding:0;border-radius:var(--sswc-radius)}
 .sswc.sswc--mobile-stacked .sswc__categories{grid-column:1/-1;grid-row:1;position:static;min-width:0;border-inline-end:0;border-bottom:1px solid #d4ddd7}
 .sswc.sswc--mobile-stacked .sswc__category-toggle{min-height:44px;padding:10px 14px;font-size:14px}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__input{grid-column:1;grid-row:2;width:100%;min-width:0;min-height:48px;padding:12px 14px;font-size:16px}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__clear{grid-column:2;grid-row:2;min-height:44px}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__submit{grid-column:3;grid-row:2;min-height:48px;min-width:48px;border-start-end-radius:0!important}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form:has(.sswc__icon){grid-template-columns:auto minmax(0,1fr) auto auto}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form:has(.sswc__icon) .sswc__icon{grid-column:1;grid-row:2;margin-inline-start:10px}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form:has(.sswc__icon) .sswc__input{grid-column:2}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form:has(.sswc__icon) .sswc__clear{grid-column:3}
 .sswc.sswc--mobile-stacked:has(.sswc__categories) .sswc__form:has(.sswc__icon) .sswc__submit{grid-column:4}
 .sswc.sswc--mobile-stacked .sswc__category-panel{inset-inline:0;top:calc(100% + var(--sswc-category-panel-gap,8px));width:100%;max-width:100%}
 .sswc .sswc__category-options{max-height:min(320px,45dvh)}
 .sswc button.sswc__category-option{min-height:44px}
 .sswc .sswc__category-panel input.sswc__category-search{font-size:16px}
}

.sswc [hidden] {
    display: none !important
}

.sswc .sswc__form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 6px 6px 6px 16px;
    border: 1px solid #d4ddd7;
    border-radius: var(--sswc-radius);
    background: #fff;
    box-shadow: 0 2px 8px #18282008
}

.sswc .sswc__form:focus-within {
    outline: 2px solid var(--sswc-accent);
    outline-offset: 0
}

.sswc .sswc__icon {
    flex: 0 0 var(--sswc-icon-size, 22px);
    width: var(--sswc-icon-size, 22px);
    height: var(--sswc-icon-size, 22px);
    color: var(--sswc-accent)
}

.sswc span.sswc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sswc-icon-size, 22px)
}

.sswc .sswc__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor
}

.sswc .sswc__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sswc-button-icon-size, 18px);
    width: var(--sswc-button-icon-size, 18px);
    height: var(--sswc-button-icon-size, 18px);
    flex-shrink: 0
}

.sswc .sswc__button-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor
}

.sswc .sswc__input {
    min-width: 0;
    width: 100%;
    flex: 1;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #182820;
    font: inherit;
    font-size: 16px;
    box-shadow: none;
    outline: none;
    min-height: 44px
}

/* Keep Elementor Site Settings from adding a second border inside the form. */
.sswc .sswc__form input.sswc__input[type="search"],
.sswc .sswc__form input.sswc__input[type="search"]:hover,
.sswc .sswc__form input.sswc__input[type="search"]:focus {
    border: 0;
    outline: none;
    box-shadow: none;
    appearance: none
}

.sswc .sswc__input::placeholder {
    color: #65756b;
    opacity: 1
}

.sswc .sswc__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    margin: 0;
    padding: var(--sswc-button-padding, 10px 18px);
    min-height: 44px;
    border: 0;
    border-radius: calc(var(--sswc-radius) * .65);
    background: var(--sswc-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.sswc .sswc__submit--before .sswc__button-icon {
    order: -1
}

.sswc .sswc__submit:hover {
    background: var(--sswc-accent);
    filter: brightness(.92)
}

.sswc .sswc__panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + var(--sswc-panel-gap, 8px));
    z-index: 1000;
    padding: 6px;
    background: #fff;
    border: 1px solid #d4ddd7;
    border-radius: var(--sswc-radius);
    box-shadow: 0 16px 48px #18282024;
    max-height: min(480px, 60vh);
    max-height: min(480px, 60dvh);
    overflow: auto;
    overscroll-behavior: contain
}

.sswc.sswc--above .sswc__panel {
    top: auto;
    bottom: calc(100% + var(--sswc-panel-gap, 8px))
}

.sswc.sswc--inline .sswc__panel {
    position: relative;
    top: auto;
    bottom: auto;
    margin-top: var(--sswc-panel-gap, 8px)
}

.sswc .sswc__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px
}

.sswc .sswc__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #65756b;
    font: inherit;
    font-size: 24px;
    padding: 0;
    cursor: pointer
}

.sswc .sswc__clear:hover {
    color: var(--sswc-accent)
}

.sswc .sswc__input::-webkit-search-cancel-button {
    display: none
}

.sswc .sswc__list {
    margin: 0;
    padding: 0;
    list-style: none
}

.sswc .sswc__option {
    margin: 0;
    padding: 0;
    list-style: none
}

.sswc .sswc__product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: calc(var(--sswc-radius) * .65);
    color: inherit;
    text-decoration: none
}

.sswc .sswc__option[aria-selected=true] .sswc__product,
.sswc .sswc__product:hover {
    background: var(--sswc-soft, #f4f4f4)
}

.sswc .sswc__product img {
    width: var(--sswc-image-size, 56px);
    height: var(--sswc-image-size, 56px);
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f6f8f6
}

.sswc .sswc__body {
    display: grid;
    gap: 4px;
    min-width: 0
}

.sswc .sswc__name {
    font-weight: 600;
    font-size: 15px;
    overflow-wrap: anywhere
}

.sswc .sswc__name mark {
    color: inherit;
    background: var(--sswc-selected, #ededed);
    border-radius: 2px;
    padding: 0
}

.sswc .sswc__meta,
.sswc .sswc__excerpt {
    font-size: 12px;
    color: #65756b;
    overflow-wrap: anywhere
}

.sswc .sswc__badge {
    justify-self: start;
    font-size: 11px;
    font-weight: 600;
    background: var(--sswc-selected, #ededed);
    color: var(--sswc-accent);
    padding: 3px 7px;
    border-radius: 5px
}

.sswc .sswc__count {
    font-size: 12px;
    color: #65756b;
    padding: 10px 14px;
    border-bottom: 1px solid #edf1ee
}

.sswc .sswc__price {
    font-size: 14px;
    color: inherit
}

.sswc .sswc__price del {
    opacity: .65
}

.sswc .sswc__price ins {
    background: none;
    text-decoration: none;
    font-weight: 600
}

.sswc .sswc__all {
    display: block;
    padding: 14px;
    text-align: center;
    color: var(--sswc-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #edf1ee
}

.sswc .sswc__message {
    padding: 20px 14px;
    color: #65756b;
    font-size: 14px;
    list-style: none
}

.sswc .sswc__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.sswc a:focus-visible,
.sswc button:focus-visible {
    outline: 2px solid var(--sswc-accent);
    outline-offset: 2px
}

@media(max-width:480px) {
    .sswc .sswc__form {
        gap: 8px;
        padding-inline-start: 12px
    }

    .sswc .sswc__submit {
        padding: var(--sswc-button-padding, 10px 12px)
    }

    .sswc .sswc__product {
        gap: 10px;
        padding: 10px
    }

    .sswc .sswc__panel {
        max-height: min(480px, 50dvh)
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .sswc .sswc__panel { max-height: min(480px, 50dvh); }
}
.sswc .sswc__category-empty { padding: 10px; }
