/* DGM Search Design 1.0.1 – ausschliesslich FiboSearch */
.dgwt-wcas-suggestions-wrapp {
    --dgm-search-border: #e1e4e8;
    --dgm-search-muted: #646b75;
    background: var(--dgm-color-bg-white, #fff) !important;
    border: 1px solid var(--dgm-search-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.12) !important;
    box-sizing: border-box;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
    box-sizing: border-box;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    color: var(--dgm-color-text-strong, #171717);
    border-bottom: 1px solid var(--dgm-search-border);
    padding: 12px 16px !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si {
    flex: 0 0 64px;
    width: 64px !important;
    min-width: 64px;
    padding: 0 !important;
    margin: 0 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 4px;
    border: 1px solid var(--dgm-search-border);
    border-radius: 8px;
    background: #fff;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    color: var(--dgm-color-text-strong, #171717) !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sku,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-sku {
    display: block !important;
    margin-top: 4px;
    color: var(--dgm-search-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: 0 !important;
    color: var(--dgm-color-text-strong, #171717) !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp :is(bdi, .amount, ins, del) {
    letter-spacing: 0 !important;
    font-weight: inherit;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .amount { white-space: nowrap; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del {
    display: block;
    color: var(--dgm-search-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 1;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp ins {
    color: var(--dgm-color-text-strong, #171717) !important;
    text-decoration: none !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
    background: var(--dgm-color-bg-light, #f8f9fa) !important;
    color: var(--dgm-color-text-strong, #171717);
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:focus-visible {
    background: var(--dgm-color-primary-light, #fff1e9) !important;
    box-shadow: inset 3px 0 var(--dgm-color-primary, #f26522);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
    background: var(--dgm-color-primary-light, #fff1e9) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center;
    border-bottom: 0;
    border-radius: 0 0 12px 12px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover {
    text-decoration: underline !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-nores {
    padding: 18px !important;
    line-height: 1.5;
}
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input {
    letter-spacing: 0 !important;
}
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:focus-visible,
.dgwt-wcas-search-wrapp button:focus-visible {
    outline: 2px solid var(--dgm-color-text-strong, #171717) !important;
    outline-offset: -2px;
}
/* Native Positionierung, Sichtbarkeit und Scroll-Logik bleiben erhalten. */
@media (max-width: 767px) {
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion { padding: 10px 12px !important; }
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product { gap: 8px; flex-wrap: wrap; }
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si { flex-basis: 48px; width: 48px !important; min-width: 48px; }
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img { height: 48px; }
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st { font-size: 14px !important; }
    .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { font-size: 14px !important; }
}

/* V1.0.1 – mobile Suchergebnisse im verfügbaren sichtbaren Bereich scrollen. */
@media (max-width: 1024px) {
    .dgwt-wcas-suggestions-wrapp {
        max-height: 65vh !important;
        max-height: var(--dgm-search-available-height, 65dvh) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}
