/* FiboSee 2.6.21 — Promotion UI polish, RTL/mobile refinement.
 * Navigation/press handling intentionally lives outside this stylesheet and is
 * unchanged from the verified 2.6.20 runtime.
 */
.fibosee-query-cue {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf3f8;
    color: #34556d;
    font-size: 10px;
    line-height: 1.7;
    font-weight: 700;
    vertical-align: middle;
}

/* Backward-compatible styling for cached pre-2.6.17 renderers. */
.fibosee-promo-badge {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff3e6;
    color: #9a5417;
    font-size: 10px;
    line-height: 1.6;
    font-weight: 700;
    vertical-align: middle;
}
.fibosee-promo-subtitle {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
    line-height: 1.7;
    font-weight: 400;
}

/*
 * Dedicated Promotion Card
 * ------------------------
 * A compact featured-result treatment rather than a banner. Logical CSS
 * properties make the accent and spacing naturally follow LTR/RTL direction.
 */
.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion.fibosee-promotion-suggestion {
    --fibosee-promo-accent: #f26a2e;
    --fibosee-promo-accent-strong: #d85b26;
    --fibosee-promo-ink: #1d2737;
    --fibosee-promo-muted: #7a8493;
    --fibosee-promo-border: #eee8e4;
    --fibosee-promo-surface: #fffdfa;

    position: relative;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 9px;
    align-items: center;
    box-sizing: border-box !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    min-width: 0 !important;
    min-height: 58px;
    margin: 6px 8px 8px !important;
    padding: 8px 9px !important;
    border: 1px solid var(--fibosee-promo-border) !important;
    border-radius: 12px !important;
    background: linear-gradient(110deg, rgba(242, 106, 46, .035) 0%, rgba(255, 255, 255, .98) 42%, #fff 100%) !important;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .035) !important;
    color: var(--fibosee-promo-ink) !important;
    font-family: inherit !important;
    text-align: start !important;
    text-decoration: none !important;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease !important;
}

.dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion::before {
    content: "";
    position: absolute;
    inset-block: 9px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #ff8752, var(--fibosee-promo-accent));
    opacity: .78;
}

.rtl .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion::before,
html[dir="rtl"] .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion::before {
    border-radius: 3px 0 0 3px;
}

.dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion:hover,
.dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion.dgwt-wcas-suggestion-selected {
    border-color: rgba(242, 106, 46, .22) !important;
    background: linear-gradient(110deg, rgba(242, 106, 46, .06) 0%, rgba(255, 255, 255, .99) 46%, #fff 100%) !important;
    box-shadow: 0 4px 14px rgba(23, 32, 51, .055) !important;
    color: var(--fibosee-promo-ink) !important;
    text-decoration: none !important;
}

.dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion:focus {
    outline: none !important;
}

.dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion:focus-visible {
    outline: 2px solid rgba(242, 106, 46, .34) !important;
    outline-offset: -2px !important;
}

.fibosee-promotion-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    background: rgba(242, 106, 46, .065);
    box-shadow: inset 0 0 0 1px rgba(242, 106, 46, .095);
    color: var(--fibosee-promo-accent);
}

.fibosee-promotion-card__icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fibosee-promotion-card__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    min-width: 0;
    max-width: 100%;
    column-gap: 6px;
    row-gap: 1px;
    line-height: 1.35;
}

.fibosee-promotion-card__eyebrow {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 112px;
}

.fibosee-promotion-card__badge {
    display: inline-flex;
    align-items: center;
    max-width: 112px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(242, 106, 46, .075);
    color: var(--fibosee-promo-accent-strong);
    font-size: 9px;
    line-height: 1.55;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fibosee-promotion-card__title {
    display: block;
    flex: 1 1 150px;
    min-width: 72px;
    max-width: 100%;
    color: var(--fibosee-promo-ink);
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: -.008em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fibosee-promotion-card__subtitle {
    display: block;
    flex: 1 0 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 1px;
    color: var(--fibosee-promo-muted);
    font-size: 10.5px;
    line-height: 1.5;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fibosee-promotion-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
    background: transparent;
    color: var(--fibosee-promo-accent);
    box-shadow: inset 0 0 0 1px rgba(242, 106, 46, .12);
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease !important;
}

.fibosee-promotion-card__cta svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fibosee-promotion-suggestion:hover .fibosee-promotion-card__cta,
.fibosee-promotion-suggestion.dgwt-wcas-suggestion-selected .fibosee-promotion-card__cta {
    background: var(--fibosee-promo-accent);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--fibosee-promo-accent);
}

/* RTL: support both WordPress' .rtl class and semantic dir=rtl documents. */
.rtl .fibosee-promotion-card__content,
html[dir="rtl"] .fibosee-promotion-card__content {
    direction: rtl;
    text-align: right;
}

.rtl .fibosee-promotion-card__cta svg,
html[dir="rtl"] .fibosee-promotion-card__cta svg {
    transform: rotate(180deg);
}

/* Mobile autocomplete / overlay: denser dimensions while preserving a 44px+
 * effective tap target because the entire card is the interactive anchor. */
@media (max-width: 640px) {
    .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion.fibosee-promotion-suggestion {
        grid-template-columns: 32px minmax(0, 1fr) 24px;
        gap: 7px;
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        min-height: 56px;
        margin: 5px 6px 7px !important;
        padding: 7px 8px !important;
        border-radius: 11px !important;
    }

    .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion::before {
        inset-block: 8px;
        width: 2px;
    }

    .fibosee-promotion-card__icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
    }

    .fibosee-promotion-card__icon svg {
        width: 16px;
        height: 16px;
    }

    .fibosee-promotion-card__content {
        column-gap: 5px;
    }

    .fibosee-promotion-card__eyebrow,
    .fibosee-promotion-card__badge {
        max-width: 90px;
    }

    .fibosee-promotion-card__badge {
        padding-inline: 5px;
        font-size: 8.5px;
    }

    .fibosee-promotion-card__title {
        flex-basis: 120px;
        min-width: 60px;
        font-size: 12.75px;
        line-height: 1.5;
    }

    .fibosee-promotion-card__subtitle {
        font-size: 10px;
        line-height: 1.45;
    }

    .fibosee-promotion-card__cta {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border-radius: 7px;
    }

    .fibosee-promotion-card__cta svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 360px) {
    .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion.fibosee-promotion-suggestion {
        grid-template-columns: 30px minmax(0, 1fr) 22px;
        gap: 6px;
        margin-inline: 5px !important;
        width: calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
        padding-inline: 7px !important;
    }

    .fibosee-promotion-card__icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .fibosee-promotion-card__eyebrow,
    .fibosee-promotion-card__badge {
        max-width: 76px;
    }

    .fibosee-promotion-card__title {
        flex-basis: 100px;
        font-size: 12.25px;
    }

    .fibosee-promotion-card__cta {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
}

@media (hover: none) {
    .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion:hover {
        box-shadow: 0 2px 8px rgba(23, 32, 51, .035) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion,
    .fibosee-promotion-card__cta {
        transition: none !important;
    }
}

@media (forced-colors: active) {
    .dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion.fibosee-promotion-suggestion {
        border: 1px solid CanvasText !important;
        background: Canvas !important;
        color: CanvasText !important;
        box-shadow: none !important;
    }

    .dgwt-wcas-suggestions-wrapp > .fibosee-promotion-suggestion::before {
        background: Highlight;
    }

    .fibosee-promotion-card__icon,
    .fibosee-promotion-card__badge,
    .fibosee-promotion-card__cta {
        forced-color-adjust: auto;
    }
}
