/* Cookie consent banner — matches Synero light UI (uses global vars from style.css) */

.synero-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.synero-cookie-banner.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.synero-cookie-banner__inner {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--bg-alt, #ffffff);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-bento, 28px);
    box-shadow: var(--shadow-md, 0 10px 30px rgba(0, 0, 0, 0.08));
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
}

.synero-cookie-banner__text {
    flex: 1 1 260px;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary, #86868b);
}

.synero-cookie-banner__text a {
    color: var(--text-primary, #1d1d1f);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.synero-cookie-banner__text a:hover {
    color: var(--accent-cyan, #06b6d4);
}

.synero-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 1 auto;
}

.synero-cookie-banner__actions .btn-apple {
    min-width: 7.5rem;
}

.synero-cookie-banner__actions .btn-apple:focus-visible,
.cookie-settings-trigger:focus-visible {
    outline: 2px solid var(--accent-cyan, #06b6d4);
    outline-offset: 3px;
}

.link-column .cookie-settings-trigger,
.footer-apple .cookie-settings-trigger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-secondary, #86868b);
    padding: 0;
    margin-bottom: 12px;
    text-align: left;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-apple .cookie-settings-trigger {
    display: inline-block;
    margin-bottom: 0;
}

.link-column .cookie-settings-trigger:hover,
.footer-apple .cookie-settings-trigger:hover {
    color: var(--accent-cyan, #06b6d4);
}

.synero-footer-cookie-row {
    margin-top: 12px;
}

body.synero-cookie-banner-visible .whatsapp-float {
    bottom: calc(var(--synero-cookie-banner-height, 180px) + 16px + env(safe-area-inset-bottom, 0px));
    transition: bottom 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 480px) {
    .synero-cookie-banner__inner {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .synero-cookie-banner__actions {
        width: 100%;
    }

    .synero-cookie-banner__actions .btn-apple {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .synero-cookie-banner {
        transition: none;
        transform: none;
    }

    .synero-cookie-banner.is-visible {
        opacity: 1;
    }

    body.synero-cookie-banner-visible .whatsapp-float {
        transition: none;
    }
}
