/* ZFS Product Booster — site geneli yüzen asistan */

.zfspb-fab-wrap {
    position: fixed;
    bottom: 20px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.zfspb-fab--right { right: 18px; align-items: flex-end; }
.zfspb-fab--left  { left: 18px;  align-items: flex-start; }

/* Mobil ürün sayfasında yapışkan sepet çubuğu varsa yukarı kaydır */
.zfspb-fab-wrap.has-sticky { bottom: 96px; }

/* --- Ana düğme --- */
.zfspb-fab {
    position: relative;
    width: 56px;
    height: 56px;
    border: none !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.zfspb-fab:hover { transform: scale(1.06); }
.zfspb-fab:active { transform: scale(.97); }

.zfspb-fab-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease, transform .25s ease;
}
.zfspb-fab-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.zfspb-fab-icon--chat svg { fill: #fff; stroke: none; }

.zfspb-fab-icon--close { opacity: 0; transform: rotate(-90deg); }
.zfspb-fab.is-open .zfspb-fab-icon--chat  { opacity: 0; transform: rotate(90deg); }
.zfspb-fab.is-open .zfspb-fab-icon--close { opacity: 1; transform: rotate(0); }

/* Çevrimiçi noktası + nabız */
.zfspb-fab-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2.5px solid #fff;
}
.zfspb-fab.is-open .zfspb-fab-dot { display: none; }

.zfspb-fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: zfspb-fab-pulse 2.8s infinite ease-out;
    pointer-events: none;
}
.zfspb-fab.is-open::before { animation: none; opacity: 0; }

@keyframes zfspb-fab-pulse {
    0%   { transform: scale(1);   opacity: .5; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Kısa dikkat çekme (JS tetikler) */
.zfspb-fab.is-nudging { animation: zfspb-fab-nudge .8s ease; }
@keyframes zfspb-fab-nudge {
    0%, 100% { transform: rotate(0) scale(1); }
    20%      { transform: rotate(-13deg) scale(1.1); }
    45%      { transform: rotate(11deg)  scale(1.1); }
    70%      { transform: rotate(-6deg)  scale(1.04); }
}

/* --- Açılır panel --- */
.zfspb-fab-panel {
    width: 300px;
    max-width: calc(100vw - 36px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(23, 19, 16, .18);
    overflow: hidden;
    transform-origin: bottom right;
    animation: zfspb-fab-in .22s cubic-bezier(.32, .72, 0, 1);
}
.zfspb-fab--left .zfspb-fab-panel { transform-origin: bottom left; }

@keyframes zfspb-fab-in {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.zfspb-fab-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px 13px;
    background: linear-gradient(135deg, #1f2a24, #172019);
}

.zfspb-fab-title {
    font: 800 14px/1.3 'Montserrat', sans-serif !important;
    color: #fff !important;
    margin: 0 !important;
}

.zfspb-fab-sub {
    font: 400 11.5px/1.45 'Open Sans', sans-serif !important;
    color: rgba(255, 255, 255, .72) !important;
    margin: 3px 0 0 !important;
}

.zfspb-fab-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .14) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zfspb-fab-close svg {
    width: 13px; height: 13px;
    fill: none; stroke: #fff;
    stroke-width: 2.4; stroke-linecap: round;
}

.zfspb-fab-opts { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.zfspb-fab-opt {
    display: flex !important;
    align-items: center;
    gap: 11px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px !important;
    background: #faf8f4 !important;
    border: 1.5px solid #efe9df !important;
    border-radius: 12px !important;
    cursor: pointer;
    text-decoration: none !important;
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}
.zfspb-fab-opt:hover { background: #fff !important; }
.zfspb-fab-opt--ai:hover { border-color: var(--zfspb-accent, #ff6a00) !important; }
.zfspb-fab-opt--wa:hover { border-color: #25D366 !important; }

.zfspb-fab-opt[data-mode="soon"] { opacity: .62; cursor: default; }

.zfspb-fab-opt-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zfspb-fab-opt-icon--ai { background: color-mix(in srgb, var(--zfspb-accent, #ff6a00) 14%, #fff); }
.zfspb-fab-opt-icon--wa { background: rgba(37, 211, 102, .14); }

.zfspb-fab-opt-icon svg {
    width: 18px; height: 18px;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.zfspb-fab-opt-icon--ai svg { stroke: var(--zfspb-accent, #ff6a00); }
.zfspb-fab-opt-icon--wa svg { fill: #25D366; stroke: none; }

.zfspb-fab-opt-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zfspb-fab-opt-label {
    font: 700 12.8px/1.3 'Open Sans', sans-serif !important;
    color: #171310 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zfspb-fab-soon {
    font: 700 9px/1 'Open Sans', sans-serif !important;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #847b6a !important;
    background: #ede6db;
    padding: 3px 6px;
    border-radius: 5px;
}

.zfspb-fab-opt-sub {
    font: 400 11px/1.4 'Open Sans', sans-serif !important;
    color: #847b6a !important;
}

.zfspb-fab-opt-arrow {
    flex-shrink: 0;
    font-size: 19px;
    line-height: 1;
    color: #b5aa97 !important;
}

@media (prefers-reduced-motion: reduce) {
    .zfspb-fab::before,
    .zfspb-fab.is-nudging,
    .zfspb-fab-panel { animation: none !important; }
}
