.ce-fsp-admin-muted {
    opacity: .75;
}

.ce-fsp-suggestion-box {
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 1rem;
}

.ce-fsp-suggestion-inner {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .5rem;
    padding: .9rem 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.ce-fsp-suggestion-text {
    margin-bottom: .15rem;
}

.ce-fsp-suggestion-link {
    font-weight: 700;
    text-decoration: underline;
}

.ce-fsp-suggestion-note {
    font-size: .875rem;
    opacity: .75;
}

.ce-fsp-suggestion-box[data-ce-fsp-source="index"] .ce-fsp-suggestion-note { opacity: .9; }

.ce-fsp-live-panel {
    max-height: min(70vh, 440px);
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    font-size: .95rem;
}

.ce-fsp-live-title {
    padding: .55rem .75rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    color: #333;
    background: rgba(0, 0, 0, .025);
}

.ce-fsp-live-item {
    display: block;
    padding: .65rem .75rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ce-fsp-live-item:last-child {
    border-bottom: 0;
}

.ce-fsp-live-item:hover,
.ce-fsp-live-item:focus,
.ce-fsp-live-item.is-active {
    background: rgba(0, 123, 255, .08);
    color: inherit;
    text-decoration: none;
    outline: none;
}

.ce-fsp-live-label {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}

.ce-fsp-live-subtitle,
.ce-fsp-live-reason {
    display: block;
    margin-top: .15rem;
    font-size: .82rem;
    opacity: .74;
    line-height: 1.25;
}

.ce-fsp-live-reason {
    opacity: .58;
}

.ce-fsp-live-results-loading {
    position: relative;
    opacity: .72;
    transition: opacity .12s ease-in-out;
}

.ce-fsp-live-results-loading::before {
    content: "Suche wird aktualisiert ...";
    position: absolute;
    right: .75rem;
    top: .75rem;
    z-index: 20;
    padding: .35rem .6rem;
    border-radius: .35rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font-size: .85rem;
    pointer-events: none;
}

.ce-fsp-live-page-hint {
    margin: 0 0 .85rem 0;
    padding: .55rem .75rem;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: .35rem;
    background: rgba(0, 123, 255, .055);
    font-size: .95rem;
}

.ce-fsp-live-page-term {
    font-weight: 700;
}

.ce-fsp-live-page-muted {
    opacity: .72;
}

.ce-fsp-live-page-overlay {
    position: fixed;
    z-index: 2147482500;
    display: none;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
    padding: 0;
}

.ce-fsp-live-page-overlay-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    border-bottom: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
}

.ce-fsp-live-page-overlay-title {
    font-weight: 700;
}

.ce-fsp-live-page-overlay-close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: .1rem .25rem;
    width: 2.1rem;
    height: 2.1rem;
    min-width: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    touch-action: manipulation;
}

.ce-fsp-live-page-overlay-body {
    padding: .85rem;
}

.ce-fsp-live-page-overlay-note {
    padding: .85rem 1rem;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .045);
    color: #333;
}

.ce-fsp-live-page-overlay .ce-fsp-live-results-loading::before,
.ce-fsp-live-page-overlay.ce-fsp-live-results-loading::before {
    content: "Aktualisiere ...";
}

@media (max-width: 767.98px) {
    .ce-fsp-live-page-overlay {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-height: 70vh;
        border-radius: .45rem;
    }

    .ce-fsp-live-page-overlay-body {
        padding: .65rem;
    }
}


/* v0.7.6: kompaktes Overlay fuer Nicht-Suchseiten */
.ce-fsp-live-page-overlay .ce-fsp-live-page-overlay-head {
    padding: .55rem .7rem;
}

.ce-fsp-live-page-overlay-all {
    margin-left: auto;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.ce-fsp-live-page-overlay-body {
    padding: 0;
}

.ce-fsp-live-page-overlay-skeleton {
    padding: .75rem;
}

.ce-fsp-live-page-overlay-skeleton span {
    display: block;
    height: 58px;
    margin-bottom: .55rem;
    border-radius: .45rem;
    background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.10), rgba(0,0,0,.05));
}

.ce-fsp-overlay-results {
    display: block;
    padding: 0;
}

.ce-fsp-overlay-result,
.ce-fsp-overlay-result:visited {
    display: flex !important;
    align-items: flex-start;
    gap: .75rem;
    width: 100% !important;
    max-width: none !important;
    min-height: 96px;
    padding: .72rem .8rem;
    margin: 0 !important;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.ce-fsp-overlay-result:hover,
.ce-fsp-overlay-result:focus {
    background: rgba(0,0,0,.025);
    color: inherit;
    text-decoration: none;
}

.ce-fsp-overlay-result-media {
    flex: 0 0 86px;
    width: 86px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-fsp-overlay-result-media img {
    display: block;
    width: 86px !important;
    max-width: 86px !important;
    height: 86px !important;
    max-height: 86px !important;
    object-fit: contain;
}

.ce-fsp-overlay-result-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: .05rem;
}

.ce-fsp-overlay-result-title {
    font-size: .95rem;
    line-height: 1.28;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.ce-fsp-overlay-result-sku {
    margin-top: .22rem;
    font-size: .82rem;
    line-height: 1.2;
    opacity: .72;
}

.ce-fsp-overlay-result-rating {
    margin-top: .25rem;
    line-height: 1;
    transform: scale(.9);
    transform-origin: left center;
}

.ce-fsp-overlay-result-price {
    margin-top: .3rem;
    font-weight: 700;
    line-height: 1.25;
}

.ce-fsp-overlay-results-footer {
    padding: .75rem .8rem;
    background: rgba(0,0,0,.025);
}

.ce-fsp-overlay-results-all {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

.ce-fsp-live-page-overlay.ce-fsp-live-results-loading .ce-fsp-live-page-overlay-head::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,.18);
    border-top-color: rgba(0,0,0,.65);
    border-radius: 50%;
    animation: ce-fsp-spin .8s linear infinite;
}

@keyframes ce-fsp-spin {
    to { transform: rotate(360deg); }
}

/* v0.7.7: Schnelltreffer und bessere Overlay-Titel */
.ce-fsp-overlay-fast-note {
    padding: .45rem .8rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.025);
    font-size: .82rem;
    opacity: .75;
}

.ce-fsp-overlay-result-fast {
    min-height: 72px;
}

.ce-fsp-overlay-result-media-placeholder {
    width: 54px !important;
    flex-basis: 54px !important;
    min-height: 54px !important;
    height: 54px !important;
    border-radius: .45rem;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.55);
    font-weight: 700;
    font-size: 1.2rem;
}

.ce-fsp-overlay-results-fast .ce-fsp-overlay-result-title {
    text-decoration: none;
}

/* v0.8.7: Alle anzeigen bleibt im Overlay */
.ce-fsp-overlay-results-expanded .ce-fsp-overlay-fast-note {
    font-weight: 700;
}

.ce-fsp-overlay-results-footer-muted {
    text-align: center;
    font-size: .86rem;
    opacity: .72;
}

/* v0.9.2: Sonderpreis-Streichpreis und JTL-/Artikel-Label im Overlay */
.ce-fsp-overlay-result-media {
    position: relative;
}

.ce-fsp-overlay-badges {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    max-width: 100%;
    pointer-events: none;
    z-index: 2;
}

.ce-fsp-overlay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    max-width: 82px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.ce-fsp-overlay-badge-sale {
    background: #d00000;
}

.ce-fsp-overlay-badge-new {
    background: #198754;
}

.ce-fsp-overlay-badge-top {
    background: #0d6efd;
}


/* v1.0.53: Varianten-Badge nicht mehr ueber dem Produktbild anzeigen */
.ce-fsp-overlay-inline-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 3px 0 2px;
    pointer-events: none;
}

.ce-fsp-overlay-inline-badges .ce-fsp-overlay-badge {
    max-width: none;
    box-shadow: none;
}

.ce-fsp-overlay-badge-variants {
    background: rgba(0,0,0,.08);
    color: rgba(0,0,0,.78);
    border: 1px solid rgba(0,0,0,.12);
    text-transform: none;
    letter-spacing: 0;
}

.ce-fsp-overlay-result-price-special-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .4rem;
}

.ce-fsp-overlay-result-price-old {
    font-weight: 500;
    color: rgba(0,0,0,.55);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ce-fsp-overlay-result-price-special {
    color: #d00000;
    font-weight: 800;
}

/* v1.0.29: Suchvorschlaege direkt in der Ajax-Tippbox */
.ce-fsp-overlay-query-suggestions {
    padding: .6rem .8rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: rgba(208,0,0,.035);
}

.ce-fsp-overlay-query-suggestion,
.ce-fsp-overlay-query-suggestion:visited {
    display: block;
    padding: .52rem .6rem;
    border-radius: .45rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.ce-fsp-overlay-query-suggestion + .ce-fsp-overlay-query-suggestion {
    margin-top: .45rem;
}

.ce-fsp-overlay-query-suggestion:hover,
.ce-fsp-overlay-query-suggestion:focus {
    background: rgba(0,0,0,.025);
    color: inherit;
    text-decoration: none;
}

.ce-fsp-overlay-query-suggestion-eyebrow {
    display: block;
    margin-bottom: .12rem;
    font-size: .76rem;
    line-height: 1.2;
    font-weight: 700;
    opacity: .68;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.ce-fsp-overlay-query-suggestion-label {
    display: block;
    font-size: .98rem;
    line-height: 1.25;
    font-weight: 800;
}

.ce-fsp-overlay-query-suggestion-note {
    display: block;
    margin-top: .14rem;
    font-size: .78rem;
    line-height: 1.25;
    opacity: .65;
}
