/* ── Offers Search ── */
.elementor-widget-shortcode:has(.cc-offers-search),
.elementor-widget-text-editor:has(.cc-offers-search) {
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cc-offers-search {
    position: relative;
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* ── Barre de recherche ── */
.cc-offers-search-bar {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    gap: 10px !important;
    transition: border-color .2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
.cc-offers-search-bar:focus-within {
    border-color: #0a3d62 !important;
    box-shadow: 0 2px 16px rgba(10,61,98,.12) !important;
}

.cc-offers-search-icon {
    flex-shrink: 0 !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
}
.cc-offers-search-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.cc-offers-search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1a202c !important;
    padding: 14px 0 !important;
    box-shadow: none !important;
}
.cc-offers-search-input::placeholder {
    color: #94a3b8 !important;
}

.cc-offers-clear {
    flex-shrink: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 0 !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    border-radius: 0 !important;
    transition: color .2s !important;
}
.cc-offers-clear:hover { color: #e84545 !important; }
.cc-offers-clear svg   { width: 16px !important; height: 16px !important; display: block !important; }

/* ── Dropdown ── */
.cc-offers-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 9000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.cc-offers-dropdown.cc-offers-dropdown--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ── Label de groupe ── */
.cc-suggest-group-label {
    padding: 10px 16px 4px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
}

/* ── Item générique ── */
.cc-suggest-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background .15s;
    border-top: 1px solid #f1f5f9;
}
.cc-suggest-item:first-of-type { border-top: none; }
.cc-suggest-item:hover          { background: #f8fafc; }

/* ── Item offre ── */
.cc-suggest-offer-title {
    font-weight: 600;
    font-size: .9rem;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc-suggest-offer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: .8rem;
    color: #64748b;
}
.cc-suggest-badge {
    background: #0a3d62;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}

/* ── Item ville / secteur ── */
.cc-suggest-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: #374151;
}
.cc-suggest-tag-icon {
    font-style: normal;
    font-size: 1rem;
}

/* ── États ── */
.cc-offers-empty,
.cc-offers-loading {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: .88rem;
}
.cc-offers-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cc-mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #0a3d62;
    border-radius: 50%;
    animation: cc-spin .7s linear infinite;
    display: inline-block;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* ── Bandeau filtre actif ── */
.cc-offers-active {
    margin-top: 10px !important;
    font-size: .88rem;
    color: #ffffff;
    text-align: center !important;
}
.cc-offers-reset {
    margin-left: 8px;
    color: #e84545;
    text-decoration: none;
    font-weight: 600;
}
.cc-offers-reset:hover { text-decoration: underline; }
