.cesa-address-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: var(--bs-white, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
}

.cesa-address-suggestions__item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.cesa-address-suggestions__item:hover {
    background-color: var(--bs-gray-100, #f8f9fa);
}

.cesa-has-search-icon {
    padding-right: 2.25rem !important;
}

/* Conteneur dédié à l'input seul (recherche entreprise) : la liste de
   suggestions doit s'ouvrir juste sous l'input, pas sous tout le bloc
   label + input + texte d'aide. */
.cesa-search-input-wrap .cesa-address-suggestions {
    top: 100%;
}

.cesa-search-icon {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--bs-gray-500, #adb5bd);
    pointer-events: none;
}

.cesa-search-hint {
    color: var(--bs-gray-600, #6c757d);
}

.cesa-search-spinner {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-top-color: var(--bs-primary, #18B4BE);
    border-radius: 50%;
    animation: cesa-spin 0.6s linear infinite;
    display: none;
}

.cesa-search-spinner.is-active {
    display: block;
}

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

.cesa-address-zone-msg {
    margin-top: 0.5rem;
    padding: 0.625rem 0.875rem;
    background-color: #fff8e6;
    border: 1px solid #f0d58c;
    border-radius: 4px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b5900;
}

/* Champs d'identité fiscale verrouillés sur "Mes informations" (voir
   customer-form.tpl) : grisés, non éditables, cliquables pour ouvrir la
   demande de modification. */
.cesa-field-locked {
    background-color: var(--bs-gray-100, #f8f9fa) !important;
    cursor: pointer;
    color: var(--bs-gray-700, #495057);
}

.cesa-field-locked-wrap {
    cursor: pointer;
    position: relative;
}

.cesa-field-locked-wrap::after {
    content: '\1F512';
    position: absolute;
    top: 2.35rem;
    right: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.55;
    pointer-events: none;
}

.cesa-lock-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 32, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cesa-lock-modal-overlay.is-open {
    display: flex;
}

.cesa-lock-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bs-white, #fff);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
}

.cesa-lock-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.cesa-lock-modal__intro {
    font-size: 0.875rem;
    color: var(--bs-gray-600, #6c757d);
    margin-bottom: 1.25rem;
}

.cesa-lock-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bs-gray-500, #adb5bd);
    cursor: pointer;
}

.cesa-lock-modal__feedback {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.cesa-lock-modal__feedback.is-success {
    color: var(--bs-success, #198754);
}

.cesa-lock-modal__feedback.is-error {
    color: var(--bs-danger, #dc3545);
}
