.xsss-form,
.xsss-wrap {
    position: relative;
}

.xsss-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.xsss-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.dgwt-wcas-search-form:has(.xsss-wrap-fibosearch) {
    width: min(clamp(340px, calc(100vw - 760px), 720px), var(--xsss-header-search-max, 720px)) !important;
    max-width: calc(100vw - 48px);
    min-width: 0 !important;
    flex: 0 1 auto;
}

.dgwt-wcas-search-wrapp:has(.xsss-wrap-fibosearch) > .dgwt-wcas-enable-mobile-form {
    display: none !important;
    pointer-events: none !important;
}

.dgwt-wcas-sf-wrapp:has(.xsss-panel:not([hidden])) {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.dgwt-wcas-sf-wrapp:has(.xsss-wrap-fibosearch) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.dgwt-wcas-sf-wrapp:has(.xsss-wrap-fibosearch) .dgwt-wcas-preloader,
.dgwt-wcas-sf-wrapp:has(.xsss-wrap-fibosearch) .dgwt-wcas-voice-search {
    display: none !important;
}

body:has(.xsss-wrap-fibosearch) .dgwt-wcas-suggestions-wrapp,
html:has(.xsss-wrap-fibosearch) .dgwt-wcas-suggestions-wrapp {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ct-header .xsss-header-contact {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: none !important;
}

.ct-header .xsss-header-contact .ct-button,
.ct-header .xsss-header-contact a,
.ct-header .xsss-header-contact button {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    width: auto;
    min-width: max-content;
    height: auto;
    min-height: 42px;
    overflow: visible;
    padding-block: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 1.08;
    text-align: right;
    text-transform: none;
    white-space: nowrap;
}

.ct-header .xsss-header-contact-line {
    display: block;
    max-width: 100%;
    overflow: hidden;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-header .xsss-header-contact-phone {
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 700;
}

.ct-header .xsss-header-contact-email {
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(11px, 0.72vw, 12px);
    font-weight: 500;
}

.xsss-wrap-fibosearch {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    height: 100%;
}

.xsss-wrap-fibosearch .dgwt-wcas-search-input {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 40px;
    padding-right: 18px !important;
    padding-left: 18px !important;
}

.xsss-input {
    width: 100%;
}

.xsss-submit {
    flex: 0 0 auto;
}

.xsss-panel {
    position: absolute;
    z-index: 9995;
    top: calc(100% + 8px);
    left: var(--xsss-panel-left, 0);
    width: min(var(--xsss-panel-width, 100%), calc(100vw - 24px));
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: contain;
    padding: 0;
    color: #182230;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.xsss-wrap-fibosearch .xsss-panel {
    left: var(--xsss-panel-left, 0);
    top: var(--xsss-panel-top, 100%);
    border-top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.xsss-panel[hidden] {
    display: none;
}

.xsss-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.38fr) minmax(300px, 0.62fr);
    min-height: 0;
}

.xsss-panel-products-only .xsss-grid {
    grid-template-columns: 1fr;
}

.xsss-col {
    min-width: 0;
    padding: 12px;
}

.xsss-col-products {
    display: grid;
    gap: 6px;
    align-content: start;
}

.xsss-col-keywords {
    background: #f7f9fb;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.xsss-panel-products-only .xsss-col-keywords {
    display: none;
}

.xsss-heading {
    margin: 2px 2px 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.xsss-product,
.xsss-keyword,
.xsss-view-all,
.xsss-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #182230;
    text-decoration: none;
    border-radius: 6px;
}

.xsss-panel .xsss-product {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    height: 68px !important;
    min-height: 0;
    max-height: 68px;
    overflow: hidden;
    padding: 8px 10px;
}

.xsss-product:hover,
.xsss-product:focus,
.xsss-keyword:hover,
.xsss-keyword:focus,
.xsss-view-all:hover,
.xsss-view-all:focus {
    color: #0f172a;
    background: #f3f6f8;
    outline: none;
}

.xsss-keyword {
    gap: 8px;
    padding: 9px 8px;
    font-size: 14px;
    font-weight: 600;
}

.xsss-keyword-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.xsss-keyword-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.xsss-keyword-group {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.xsss-keyword-type .xsss-search-icon {
    border-radius: 4px;
}

.xsss-search-icon {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 2px solid #98a2b3;
    border-radius: 50%;
}

.xsss-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    content: "";
    background: #98a2b3;
    border-radius: 2px;
    transform: rotate(45deg);
}

.xsss-thumb {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    background: #f6f7f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
}

.xsss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xsss-copy {
    display: block;
    min-width: 0;
    height: auto !important;
    max-height: 42px;
    overflow: hidden;
}

.xsss-title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.xsss-meta,
.xsss-price,
.xsss-state {
    min-height: 120px;
    justify-content: center;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.xsss-meta:empty {
    display: none;
}

.xsss-state-error {
    color: #b42318;
}

.xsss-price {
    display: none;
    color: #101828;
    font-weight: 700;
}

.xsss-view-all {
    justify-content: center;
    margin: 0;
    padding: 12px;
    color: #182230;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0 0 8px 8px;
}

.xsss-empty-col {
    padding: 18px 8px;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 689px) {
    .xsss-form {
        display: block;
    }

    .xsss-submit {
        width: 100%;
        margin-top: 8px;
    }

    .xsss-panel {
        left: var(--xsss-panel-left, 0);
        width: min(var(--xsss-panel-width, 100%), calc(100vw - 24px));
        max-height: min(76vh, 720px);
        overflow-y: auto;
        transform: none;
    }

    .xsss-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .xsss-col-keywords {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }

    .xsss-title {
        white-space: normal;
    }

    .xsss-keyword-label {
        white-space: normal;
    }
}

@media (min-width: 690px) and (max-width: 1180px) {
    .dgwt-wcas-search-form:has(.xsss-wrap-fibosearch) {
        width: min(clamp(320px, calc(100vw - 560px), 620px), var(--xsss-header-search-max, 620px)) !important;
    }

    .xsss-grid {
        grid-template-columns: minmax(170px, 0.36fr) minmax(270px, 0.64fr);
    }

    .xsss-col {
        padding: 10px;
    }

    .xsss-panel .xsss-product {
        grid-template-columns: 48px minmax(0, 1fr);
        height: 64px !important;
        max-height: 64px;
        padding: 7px 8px;
    }

    .xsss-thumb {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .xsss-keyword,
    .xsss-title {
        font-size: 13px;
    }
}

@media (min-width: 1181px) and (max-width: 1700px) {
    .ct-header .xsss-header-contact {
        max-width: none !important;
    }

    .ct-header .xsss-header-contact .ct-button {
        width: auto;
        min-width: max-content;
        overflow: visible;
        padding-inline: clamp(12px, 1vw, 18px);
        text-overflow: clip;
    }
}

@media (max-width: 760px) {
    .xsss-grid {
        grid-template-columns: 1fr;
    }

    .xsss-col-keywords {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }
}
