/* Finance Partners — Cookie Consent Banner */

.fp-cc-banner {
    position: fixed;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(15, 18, 24, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease;
}

.fp-cc-banner.fp-cc-visible {
    transform: translateY(0);
    opacity: 1;
}

.fp-cc-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #fff;
    letter-spacing: 0.2px;
}

.fp-cc-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
}

.fp-cc-text a {
    color: #4ade80;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}

.fp-cc-text a:hover { border-bottom-color: #4ade80; }

.fp-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.fp-cc-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.fp-cc-btn:hover { transform: translateY(-1px); }
.fp-cc-btn:active { transform: translateY(0); }

.fp-cc-btn-primary {
    background: #4ade80;
    color: #0a0c10;
}
.fp-cc-btn-primary:hover { background: #5eea93; }

.fp-cc-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}
.fp-cc-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.fp-cc-btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.6rem 0.4rem;
    font-weight: 500;
}
.fp-cc-btn-link:hover { color: rgba(255, 255, 255, 0.85); }

/* Floating reopen button (footer trigger style) */
.fp-cc-footer-link {
    color: var(--text-secondary, rgba(255, 255, 255, 0.55));
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.fp-cc-footer-link:hover { color: rgba(255, 255, 255, 0.85); }

/* Preferences modal */
.fp-cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.fp-cc-modal-overlay.fp-cc-visible {
    display: flex;
    opacity: 1;
}

.fp-cc-modal {
    background: rgba(15, 18, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    color: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.fp-cc-modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.fp-cc-modal p.fp-cc-modal-intro {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 1.4rem;
}

.fp-cc-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.8rem;
}

.fp-cc-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.fp-cc-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.fp-cc-category-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.6rem 0 0;
}

.fp-cc-badge-always {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* Toggle switch */
.fp-cc-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.fp-cc-switch input { opacity: 0; width: 0; height: 0; }
.fp-cc-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: background 0.25s ease;
}
.fp-cc-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}
.fp-cc-switch input:checked + .fp-cc-switch-slider { background: #4ade80; }
.fp-cc-switch input:checked + .fp-cc-switch-slider::before { transform: translateX(18px); }

.fp-cc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.4rem;
}

@media (max-width: 600px) {
    .fp-cc-banner {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        padding: 1.2rem 1.2rem;
    }
    .fp-cc-actions { gap: 0.5rem; }
    .fp-cc-btn { flex: 1 1 auto; text-align: center; }
    .fp-cc-btn-link { flex: 0 0 100%; text-align: center; }
    .fp-cc-modal { padding: 1.4rem; }
    .fp-cc-modal-actions { justify-content: stretch; }
    .fp-cc-modal-actions .fp-cc-btn { flex: 1 1 100%; }
}
