/**
 * clea_encart.css — Styles de l'encart Cléa Assurance Animaux
 * Chargé uniquement sur la page Livraison (hookDisplayHeader → registerStylesheet).
 */

/* ===== Variables locales (couleurs sans équivalent dans le thème) ===== */
.cvs-clea-encart {
    --clea-navy:    #1b2585;
    --clea-border:  #e5e9f0;
    --clea-muted:   #7a7a7a;
    font-family: Manrope, sans-serif;
}

/* ===== Encart ===== */
.cvs-clea-encart {
    background: var(--tertiary-light-color);
    margin: 12px 0 10px;
}

#order-confirmation .cvs-clea-encart {
    margin: 0 auto 64px auto;
}

/* ===== Sticker ===== */
.clea-sticker-offset {
    margin-top: -5px;
}

/* ===== Header row ===== */
.clea-header-row { padding: 10px 22px 14px; }
.clea-logo-img { height: 60px; width: auto; flex-shrink: 0; }
.clea-logo-fallback {
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.clea-logo-fallback-icon {
    width: 30px; height: 30px;
    background: var(--clea-navy);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.clea-logo-fallback-text { font-size: 1.125rem; font-weight: 800; color: var(--clea-navy); }
.clea-header-divider { background: var(--clea-border); }
.clea-header-sub {
    font-size: 0.6875rem;
    color: var(--clea-muted);
    margin-bottom: 3px;
}
.clea-header-h2 {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.2;
}
.clea-header-pug { border-radius: 10px; }

/* ===== Pictos arguments ===== */
.clea-arg-picto-img {
    width: 45px;
    margin-top: -5px;
}

/* ===== Formulaire ===== */
.clea-prefill-note { display: block; font-size: 13px; color: var(--secondary-color); font-weight: 600; margin-top: 4px; }

/* Pills */
.clea-pill i { margin-right: 5px; font-size: 17px; vertical-align: middle; margin-top: -2px; }
.clea-pill {
    flex: 1;
    border: 2px solid #c4c4c4;
    background: #fff;
    border-radius: 50px;
    padding: 11px 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
}
.clea-pill:hover,
.clea-pill.is-active {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, #fff);
    color: var(--primary-color);
}

/* Erreurs champ */
.clea-field-error {
    display: block;
    color: #e53e3e;
    font-size: 13px;
    font-weight: 600;
}

/* Erreur globale */
.clea-form-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    color: #c53030;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* Mentions légales */
.clea-form-legal { font-size: 0.6875rem; color: var(--darkest-grey-color); line-height: 1.6; }

/* ===== Toast notifications ===== */
.clea-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100% - 32px);
}
.clea-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    pointer-events: all;
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}
.clea-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.clea-toast--error   { background: #fff1f0; color: #b91c1c; border-left: 4px solid #ef4444; }
.clea-toast--success { background: #f0fdf4; color: #166534; border-left: 4px solid #22c55e; }
.clea-toast-icon  { font-size: 0.9375rem; flex-shrink: 0; line-height: 1.5; }
.clea-toast-body  { flex: 1; }
.clea-toast-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.125rem; line-height: 1; color: inherit; opacity: .5;
    padding: 0 0 0 4px; flex-shrink: 0;
}
.clea-toast-close:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 575px) {
    .clea-header-pug { display: none; }
    .clea-pills { flex-direction: column; }
    .clea-toast-container { right: 12px; left: 12px; width: auto; }
}
