body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-hidden,
body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-denied {
    display: none !important;
}
body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-visible {
    display: var(--kfc-original-display, block) !important;
}
body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-visible[data-kfc-animation="fade"] {
    animation: kfcFideliteFade .32s ease both;
}
body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-visible[data-kfc-animation="slide-up"] {
    animation: kfcFideliteSlideUp .36s ease both;
}
body:not(.elementor-editor-active) .kfc-fidelite-element.kfc-fidelite-visible[data-kfc-animation="zoom"] {
    animation: kfcFideliteZoom .32s ease both;
}
@keyframes kfcFideliteFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kfcFideliteSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kfcFideliteZoom { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

.kfc-wa-button-wrap {
    line-height: 1;
}
.kfc-wa-button {
    --kfc-wa-main: #25D366;
    --kfc-wa-second: #128C7E;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(18, 140, 126, .22);
}
.kfc-wa-button:hover,
.kfc-wa-button:focus {
    text-decoration: none !important;
    color: inherit;
}
.kfc-wa-button svg { display: block; }
.kfc-wa-icon-right { flex-direction: row-reverse; }
.kfc-wa-full { width: 100%; }
.kfc-wa-premium-gradient { background: linear-gradient(135deg, var(--kfc-wa-main), var(--kfc-wa-second)) !important; color: #fff; }
.kfc-wa-solid { background: var(--kfc-wa-main) !important; color: #fff; }
.kfc-wa-outline { background: transparent !important; color: var(--kfc-wa-second); border: 2px solid var(--kfc-wa-main); box-shadow: none; }
.kfc-wa-glass { background: rgba(37, 211, 102, .18) !important; color: var(--kfc-wa-second); border: 1px solid rgba(37, 211, 102, .34); backdrop-filter: blur(10px); }
.kfc-wa-soft-card { background: #fff !important; color: var(--kfc-wa-second); box-shadow: 0 16px 34px rgba(0, 0, 0, .10); }
.kfc-wa-floating { width: 64px; height: 64px; border-radius: 999px !important; padding: 0 !important; background: linear-gradient(135deg, var(--kfc-wa-main), var(--kfc-wa-second)) !important; color: #fff; }
.kfc-wa-floating .kfc-wa-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kfc-wa-hover-lift:hover { transform: translateY(-3px); filter: brightness(1.03); }
.kfc-wa-hover-pulse { animation: kfcWaPulse 2.2s ease-in-out infinite; }
.kfc-wa-hover-shine::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    transition: transform .7s ease;
}
.kfc-wa-hover-shine:hover::before { transform: translateX(120%) skewX(-18deg); }
@keyframes kfcWaPulse { 0%, 100% { box-shadow: 0 14px 30px rgba(18, 140, 126, .18); } 50% { box-shadow: 0 18px 42px rgba(18, 140, 126, .34); } }
body.elementor-editor-active .kfc-wa-button-wrap.kfc-fidelite-hidden { display: block !important; opacity: .85; outline: 1px dashed rgba(37, 211, 102, .5); outline-offset: 4px; }


/* Widget WhatsApp Fidélité - correctifs éditeur Elementor */
.kfc-wa-button .kfc-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex: 0 0 auto;
}
.kfc-wa-button .kfc-wa-icon i,
.kfc-wa-button .kfc-wa-icon svg {
    display: block;
    color: inherit;
    fill: currentColor;
}
.kfc-wa-button .kfc-wa-icon svg * {
    fill: currentColor;
}
.kfc-wa-button .kfc-wa-label {
    display: inline-flex;
    align-items: center;
    min-height: 1em;
    line-height: 1.12;
}
body.elementor-editor-active .kfc-wa-button-wrap {
    min-height: 32px;
}
body.elementor-editor-active .kfc-wa-button-wrap.kfc-fidelite-hidden,
body.elementor-editor-active .kfc-wa-button-wrap .kfc-wa-button {
    visibility: visible !important;
    opacity: 1 !important;
}
body.elementor-editor-active .kfc-wa-button.kfc-wa-builder-fallback {
    min-width: 260px;
    min-height: 52px;
    background: linear-gradient(135deg, var(--kfc-wa-main, #25D366), var(--kfc-wa-second, #128C7E)) !important;
    color: #fff !important;
    border: 0 !important;
}
.kfc-wa-builder-note {
    display: block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    opacity: .86;
}

/* Bouton WhatsApp Fidélité - styles premium avec textes */
.kfc-wa-button .kfc-wa-icon-circle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    position:relative;
    z-index:2;
}
.kfc-wa-icon-circle .kfc-wa-icon{
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:transparent;
}
.kfc-wa-texts{
    display:inline-flex;
    flex-direction:column;
    justify-content:center;
    line-height:1.12;
    position:relative;
    z-index:1;
}
.kfc-wa-label-main{font-weight:800;line-height:1.05;white-space:nowrap;}
.kfc-wa-label-sub{display:block;font-weight:700;line-height:1.12;opacity:.92;white-space:nowrap;}
.kfc-wa-button.kfc-wa-click-chat-large,
.kfc-wa-button.kfc-wa-click-chat-compact,
.kfc-wa-button.kfc-wa-badge-overlap,
.kfc-wa-button.kfc-wa-badge-outline{
    overflow:visible;
}
.kfc-wa-click-chat-large{
    background:#fff !important;
    color:#111827;
    border-radius:999px !important;
    padding-left:18px !important;
    padding-right:42px !important;
    box-shadow:0 18px 42px rgba(0,0,0,.14);
}
.kfc-wa-click-chat-large .kfc-wa-icon-circle .kfc-wa-icon{
    background:linear-gradient(135deg,var(--kfc-wa-main),var(--kfc-wa-second));
    color:#fff;
    box-shadow:0 10px 26px rgba(18,140,126,.20);
}
.kfc-wa-click-chat-large .kfc-wa-label-sub{color:var(--kfc-wa-main);}
.kfc-wa-click-chat-compact{
    background:linear-gradient(135deg,var(--kfc-wa-main),var(--kfc-wa-second)) !important;
    color:#fff;
    border-radius:999px !important;
    padding-left:10px !important;
    padding-right:28px !important;
    box-shadow:0 16px 36px rgba(18,140,126,.25);
}
.kfc-wa-click-chat-compact .kfc-wa-icon-circle .kfc-wa-icon{
    background:#fff;
    color:var(--kfc-wa-main);
    outline:5px solid rgba(255,255,255,.72);
}
.kfc-wa-badge-overlap{
    background:var(--kfc-wa-main) !important;
    color:#fff;
    border-radius:999px !important;
    padding-left:0 !important;
    padding-right:34px !important;
    box-shadow:0 18px 38px rgba(18,140,126,.25);
}
.kfc-wa-badge-overlap .kfc-wa-icon-circle{
    margin-left:-8px;
}
.kfc-wa-badge-overlap .kfc-wa-icon-circle .kfc-wa-icon{
    background:var(--kfc-wa-main);
    color:#fff;
    outline:5px solid #fff;
    box-shadow:0 12px 26px rgba(0,0,0,.14);
}
.kfc-wa-badge-outline{
    background:#fff !important;
    color:var(--kfc-wa-main);
    border:2px solid var(--kfc-wa-main);
    border-radius:999px !important;
    padding-left:0 !important;
    padding-right:34px !important;
    box-shadow:none;
}
.kfc-wa-badge-outline .kfc-wa-icon-circle{
    margin-left:-8px;
}
.kfc-wa-badge-outline .kfc-wa-icon-circle .kfc-wa-icon{
    background:var(--kfc-wa-main);
    color:#fff;
    outline:5px solid var(--kfc-wa-main);
}
.kfc-wa-badge-outline .kfc-wa-label-sub{color:var(--kfc-wa-main);}
body.elementor-editor-active .kfc-wa-button .kfc-wa-texts,
body.elementor-editor-active .kfc-wa-button .kfc-wa-label-main,
body.elementor-editor-active .kfc-wa-button .kfc-wa-label-sub{visibility:visible!important;opacity:1!important;}
