﻿:root {
    --brand: #ff385c;
    --brand-hover: #e03150;
    --brand-soft: #fff1f3;
    --surface: #ffffff;
    --surface-subtle: #fafafa;
    --ink-primary: #111827;
    --ink-secondary: #4b5563;
    --ink-muted: #6b7280;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --shadow-modal: 0 24px 60px -12px rgba(17, 24, 39, 0.22), 0 4px 16px -4px rgba(17, 24, 39, 0.08);
    --radius-modal: 4px;
    --radius-btn: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Cookie Modal Backdrop ── */
.vnt-cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999999999;
   /* background: rgba(17, 24, 39, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);*/
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

/* ── Cookie Modal Card ── */
.vnt-cookie-modal {
    font-family: var(--font);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    background: var(--surface);
    border-radius: var(--radius-modal);
    box-shadow: var(--shadow-modal);
    border: 1px solid rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Two Tabs: Consent & About */
.vnt-cookie-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 16px 24px 0;
    border-bottom: 1px solid var(--border);
    gap: 4px;
}

.vnt-cookie-tab {
    position: relative;
    appearance: none;
    background: none;
    border: none;
    padding: 11px 8px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
    transition: color 0.16s ease;
}

    .vnt-cookie-tab:hover {
        color: var(--ink-primary);
    }

    .vnt-cookie-tab.is-active {
        color: var(--brand);
    }

        .vnt-cookie-tab.is-active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 2px;
            background: var(--brand);
            border-radius: 2px 2px 0 0;
        }

    .vnt-cookie-tab:focus-visible,
    .vnt-btn:focus-visible,
    .vnt-inline-link:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* Body & Panels */
.vnt-cookie-body {
    padding: 22px 24px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vnt-tab-panel {
    display: none;
}

    .vnt-tab-panel.is-active {
        display: block;
    }

.vnt-consent-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ink-primary);
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.vnt-consent-copy {
    font-size: 0.89rem;
    line-height: 1.66;
    color: var(--ink-secondary);
    margin:0
}

.vnt-about-copy p {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--ink-secondary);
}

    .vnt-about-copy p + p {
        margin-top: 12px;
    }

.vnt-inline-link {
    color: var(--brand);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

    .vnt-inline-link:hover {
        color: var(--brand-hover);
    }

/* Footer Buttons */
.vnt-cookie-footer {
    padding: 0 24px 22px;
    background: var(--surface);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vnt-btn {
    appearance: none;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease;
}

    .vnt-btn:active {
        transform: scale(0.99);
    }

.vnt-btn-decline {
    background: #ffffff;
    color: var(--ink-primary);
    border: 1px solid var(--border-strong);
}

    .vnt-btn-decline:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }

.vnt-btn-accept {
    background: var(--brand);
    color: #ffffff;
    border: 1px solid var(--brand);
    box-shadow: 0 2px 10px -2px rgba(255, 56, 92, 0.45);
}

    .vnt-btn-accept:hover {
        background: var(--brand-hover);
        border-color: var(--brand-hover);
    }

/* Toast */
.vnt-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: none;
    background: #111827;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.83rem;
    line-height: 1.45;
    max-width: 340px;
    box-shadow: 0 16px 36px -8px rgba(17, 24, 39, 0.35);
}

    .vnt-toast strong {
        display: block;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .vnt-toast span {
        color: #d1d5db;
        font-size: 0.78rem;
    }

@media (max-width: 520px) {
    .vnt-cookie-backdrop {
        padding: 12px;
        align-items: flex-end;
    }

    .vnt-cookie-modal {
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .vnt-cookie-tabs {
        margin: 14px 18px 0;
    }

    .vnt-cookie-body {
        padding: 18px;
    }

    .vnt-cookie-footer {
        padding: 14px 18px 18px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vnt-btn-accept {
        order: -1;
    }
}
