/* FiboSearch appends its native results outside the Elementor header. */
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp {
    padding: 0;
    margin-top: 6px;
    border: 1px solid var(--sd-border-strong);
    border-radius: 6px;
    background: #fff;
    height: auto !important;
    max-height: min(600px, calc(100dvh - 120px)) !important;
    overscroll-behavior: contain;
    font-family: inherit;
    scrollbar-width: thin;
    scrollbar-color: var(--sd-border-strong) #fff;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion {
    padding: 12px 16px;
    min-height: 52px;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid var(--sd-border);
    border-left: 3px solid transparent;
    resize: none;
    text-decoration: none;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-product { min-height: 88px; }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    width: 64px;
    height: 64px;
    max-height: 64px;
    max-width: 64px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    background: #fff;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    padding: 0;
    resize: none;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
    color: var(--sd-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title strong { color: var(--sd-blue); font-weight: 700; }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
    padding: 0;
    color: var(--sd-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del { color: var(--sd-text); opacity: 1; font-size: 13px; font-weight: 400; }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp ins { color: var(--sd-ink); background: transparent; text-decoration: none; }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion:is(:hover, :focus-visible, .dgwt-wcas-suggestion-selected) {
    background: var(--sd-surface);
    border-left-color: var(--sd-blue);
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp a:focus-visible { outline: 2px solid var(--sd-blue); outline-offset: -3px; }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-more {
    position: sticky;
    bottom: 0;
    min-height: 52px;
    padding: 14px 16px;
    background: var(--sd-surface);
    color: var(--sd-blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    border-top: 1px solid var(--sd-border);
    border-bottom: 0;
}
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more-total { color: var(--sd-blue); }
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-nores { padding: 24px; color: var(--sd-text); font-size: 16px; line-height: 1.6; }
.elementor-location-header.elementor-97 .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input { padding-inline: 48px 44px; }

/* Retain the plugin's full-screen mobile search and native return button. */
html.dgwt-wcas-overlay-mobile-on body .dgwt-wcas-overlay-mobile { background: #fff; }
html.dgwt-wcas-overlay-mobile-on body .dgwt-wcas-om-bar { height: 64px; padding-block: 9px; background: var(--sd-surface); border-bottom: 1px solid var(--sd-border); }
html.dgwt-wcas-overlay-mobile-on body .dgwt-wcas-om-bar .dgwt-wcas-search-input { font-size: 16px; color: var(--sd-ink); background: #fff; }
html.dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp {
    left: 0 !important;
    top: 64px !important;
    width: 100% !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}
@media (max-width: 767px) {
    body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion { padding: 12px; gap: 12px; }
    body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { text-align: left; font-size: 16px; }
    body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si { width: 56px; height: 64px; flex-basis: 56px; }
    body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img { width: 56px; height: 64px; max-width: 56px; }
}

/* Keep the native hover preview on desktop, with two readable columns. */
body .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp { overflow-y: auto; }
body .dgwt-wcas-details-wrapp.dgwt-wcas-details-wrapp {
    margin-top: 6px;
    padding: 0;
    border: 1px solid var(--sd-border-strong);
    border-radius: 6px;
    background: #fff;
    max-height: min(600px, calc(100dvh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: inherit;
    color: var(--sd-ink);
}
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-inner { padding: 16px; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-main-image { min-height: 180px; height: 180px; padding: 8px; border-bottom: 1px solid var(--sd-border); }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-main-image img { max-height: 164px; max-width: 100%; object-fit: contain; border-radius: 0; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-space { padding: 0; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-product-title { margin: 16px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--sd-ink); }
body .dgwt-wcas-details-wrapp .dgwt-wcas-pd-price { color: var(--sd-ink); font-size: 20px; font-weight: 700; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-pd-price ins { background: transparent; text-decoration: none; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-desc { font-size: 14px; line-height: 1.6; color: var(--sd-text); }
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-hr { margin-block: 16px; border-color: var(--sd-border); }
body .dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form .quantity { margin: 0; }
body .dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form button { min-height: 44px; white-space: normal; line-height: 1.4; padding: 12px 16px; }
body .dgwt-wcas-details-wrapp :is(a, button, input):focus-visible { outline: 2px solid var(--sd-blue); outline-offset: 2px; }
@media (min-width: 1025px) {
    body.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp { border-radius: 6px 0 0 6px; }
    body.dgwt-wcas-full-width .dgwt-wcas-details-wrapp.dgwt-wcas-details-wrapp { border-left: 0; border-radius: 0 6px 6px 0; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { text-align: left; font-size: 16px; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st { font-size: 15px; line-height: 1.45; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si { width: 48px; height: 56px; flex-basis: 48px; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img { width: 48px; height: 56px; max-width: 48px; }
    body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion { gap: 12px; padding: 12px; }
}
@media (max-width: 1024px) {
    body .dgwt-wcas-details-wrapp.dgwt-wcas-details-wrapp { display: none !important; }
    body.dgwt-wcas-full-width .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp { width: calc(100vw - 40px) !important; }
}
body.dgwt-wcas-is-details .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-more {
    min-height: 52px;
    font-size: 15px;
    text-transform: none;
}
/* Match homepage search to its surrounding typography; avoid a font used only here.
 * Elementor's widget typography otherwise overrides the brand's input family. */
body.home .dgwt-wcas-search-input { font-family: 'Barlow', sans-serif !important; }
