/* GDPR / cookie consent — sample (enable with $load_cookie_consent) */

.cookie-consent {
    position: fixed;
    z-index: 10050;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__inner {
    pointer-events: auto;
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    color: var(--text-primary, #1a1a2e);
    border-radius: 14px;
    box-shadow: 0 -8px 40px rgba(4, 15, 58, 0.18), 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 73, 255, 0.12);
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-consent__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent__badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1b49ff;
    background: rgba(27, 73, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(26, 26, 46, 0.85);
}

.cookie-consent__text a {
    color: #1b49ff;
    font-weight: 500;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-consent__btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #1b49ff;
    outline-offset: 2px;
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #040f3a, #1b49ff);
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 73, 255, 0.35);
}

.cookie-consent__btn--ghost {
    background: rgba(27, 73, 255, 0.08);
    color: #1b49ff;
}

.cookie-consent__btn--ghost:hover {
    background: rgba(27, 73, 255, 0.14);
}

.cookie-consent__btn--link {
    background: transparent;
    color: rgba(26, 26, 46, 0.65);
    text-decoration: underline;
    padding: 8px 10px;
}

.cookie-consent__btn--link:hover {
    color: #1b49ff;
}

.cookie-consent__panel {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__panel.is-open {
    display: flex;
}

.cookie-consent__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.85rem;
}

.cookie-consent__row strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-consent__row p {
    margin: 0;
    color: rgba(26, 26, 46, 0.7);
    line-height: 1.45;
}

.cookie-consent__switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-consent__switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__slider {
    position: absolute;
    inset: 0;
    background: #e0e4ef;
    border-radius: 26px;
    transition: background 0.2s;
}

.cookie-consent__slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
    background: linear-gradient(135deg, #040f3a, #1b49ff);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::after {
    transform: translateX(18px);
}

.cookie-consent__switch input:disabled + .cookie-consent__slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.cookie-consent__foot {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 769px) {
    .cookie-consent {
        padding: 24px;
    }

    .cookie-consent__inner {
        max-width: 520px;
        margin-left: auto;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}
