/* ===== TK Newsletter & Stock Alerts ===== */

/* ─── Alerte stock (page produit) ───────────────────────────────────── */
.tk-nl-stock-wrap {
    margin: 20px 0 10px;
    padding: 18px 20px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 10px;
}
.tk-nl-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.tk-nl-stock-cta {
    font-size: .92rem;
    color: #431407;
    margin: 0 0 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* ─── Formulaire inline (stock + newsletter) ────────────────────────── */
.tk-nl-form .tk-nl-row {
    display: flex;
    gap: 8px;
}
.tk-nl-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .92rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fff;
}
.tk-nl-form input[type="email"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}
.tk-nl-form button[type="submit"] {
    flex-shrink: 0;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-family: inherit;
    white-space: nowrap;
}
.tk-nl-form button[type="submit"]:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.tk-nl-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* Messages ok / erreur */
.tk-nl-ok {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    font-weight: 600;
    color: #15803d;
    margin: 12px 0 0;
}
.tk-nl-err {
    font-size: .86rem;
    color: #dc2626;
    margin: 10px 0 0;
    padding: 8px 12px;
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 6px;
}

/* Mobile stock form */
@media (max-width: 480px) {
    .tk-nl-form .tk-nl-row { flex-direction: column; }
    .tk-nl-form button[type="submit"] { width: 100%; padding: 12px; }
}

/* ─── Bloc newsletter (shortcode) ──────────────────────────────────── */
.tk-nl-sub-wrap {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 24px 0;
    border: 1px solid rgba(96,165,250,.2);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.tk-nl-sub-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.tk-nl-sub-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: rgba(37,99,235,.2);
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    margin-top: 2px;
}
.tk-nl-sub-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
}
.tk-nl-sub-desc {
    font-size: .87rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Champ email dans le bloc newsletter */
.tk-nl-sub-wrap .tk-nl-row input[type="email"] {
    background: rgba(255,255,255,.08);
    border-color: rgba(148,163,184,.3);
    color: #e2e8f0;
}
.tk-nl-sub-wrap .tk-nl-row input[type="email"]::placeholder { color: #64748b; }
.tk-nl-sub-wrap .tk-nl-row input[type="email"]:focus {
    background: rgba(255,255,255,.12);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.tk-nl-sub-note {
    font-size: .76rem;
    color: #475569;
    margin: 12px 0 0;
    text-align: center;
}

/* Succès newsletter */
.tk-nl-sub-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 8px 0;
}
.tk-nl-sub-ok p {
    color: #e2e8f0;
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 500px) {
    .tk-nl-sub-wrap { padding: 22px 18px; }
    .tk-nl-sub-header { flex-direction: column; gap: 10px; }
}

/* ─── FAB Newsletter (bouton flottant) ──────────────────────────────── */
.tk-nl-fab {
    position: fixed;
    bottom: 24px;
    right: 90px;
    width: 52px;
    height: 52px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 99, 235, .50);
    z-index: 9998;
    transition: background .2s, transform .15s, box-shadow .2s;
    padding: 0;
}
.tk-nl-fab:hover {
    background: #1d4ed8;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 99, 235, .60);
}
.tk-nl-fab:active { transform: scale(.96); }

/* ─── Popup FAB ─────────────────────────────────────────────────────── */
.tk-nl-fab-popup {
    position: fixed;
    bottom: 86px;
    right: 16px;
    width: 284px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
    padding: 22px 20px 18px;
    z-index: 9999;
    animation: tk-fab-in .18s ease-out;
}
.tk-nl-fab-popup[hidden] { display: none; }

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

.tk-nl-fab-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px 5px;
    border-radius: 4px;
}
.tk-nl-fab-close:hover { color: #0f172a; background: #f1f5f9; }

.tk-nl-fab-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 28px 6px 0;
    padding: 0;
    border: none;
}
.tk-nl-fab-desc {
    font-size: .82rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
}
.tk-nl-fab-ok {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    font-weight: 600;
    color: #15803d;
    padding: 4px 0;
}

@media (max-width: 360px) {
    .tk-nl-fab-popup { width: calc(100vw - 32px); right: 16px; }
}


@media (max-width: 768px) {
    .tk-nl-fab { bottom: 80px; }
    .tk-nl-fab-popup { bottom: 140px; }
}
