/* =========================================================
   COSMO COOKIE BANNER
   Изолированные стили
========================================================= */

#cosmo-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 18px 20px;
    background: #ffffff;
    color: #1f2937;
    border-top: 1px solid #dbe3ee;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

#cosmo-cookie-banner,
#cosmo-cookie-banner *,
#cosmo-cookie-banner *::before,
#cosmo-cookie-banner *::after {
    box-sizing: border-box;
}

#cosmo-cookie-banner.is-visible {
    display: block;
    animation: cosmoCookieBannerSlideUp 0.35s ease-out forwards;
}

@keyframes cosmoCookieBannerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cosmo-cookie-banner .cosmo-cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#cosmo-cookie-banner .cosmo-cookie-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #1f2937;
}

#cosmo-cookie-banner .cosmo-cookie-banner__text a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#cosmo-cookie-banner .cosmo-cookie-banner__text a:hover,
#cosmo-cookie-banner .cosmo-cookie-banner__text a:focus-visible {
    color: #1d4ed8;
}

#cosmo-cookie-banner .cookie-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

#cosmo-cookie-banner .cookie-btn {
    min-width: 132px;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

/* Синяя кнопка */
#cosmo-cookie-banner .cookie-btn.accept {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

#cosmo-cookie-banner .cookie-btn.accept:hover,
#cosmo-cookie-banner .cookie-btn.accept:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

#cosmo-cookie-banner .cookie-btn.accept:active {
    transform: translateY(1px);
}

/* Белая кнопка */
#cosmo-cookie-banner .cookie-btn.decline {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #cbd5e1;
}

#cosmo-cookie-banner .cookie-btn.decline:hover,
#cosmo-cookie-banner .cookie-btn.decline:focus-visible {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1d4ed8;
}

#cosmo-cookie-banner .cookie-btn.decline:active {
    transform: translateY(1px);
}

#cosmo-cookie-banner .cookie-btn.accept:focus-visible,
#cosmo-cookie-banner .cookie-btn.decline:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

@media (max-width: 900px) {
    #cosmo-cookie-banner .cosmo-cookie-banner__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    #cosmo-cookie-banner .cookie-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    #cosmo-cookie-banner {
        padding: 16px;
        font-size: 14px;
    }

    #cosmo-cookie-banner .cookie-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #cosmo-cookie-banner .cookie-btn {
        width: 100%;
        min-width: 0;
    }
}



