﻿:root, [data-bs-theme=light] {
    --werent-bg: #e6f9fb;
    --clr-black: #414042;
    --clr-blue: #0db3c8;
    --clr-blue-dark: #096b77;
}

.werent-cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(520px, calc(100% - 48px));
    z-index: 1090;
    background: #ffffff;
    color: var(--clr-blue);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
    animation: werentCookieOpening 0.35s ease-out;
}

    .werent-cookie-consent.werent-cookie-closing {
        animation: werentCookieClosing 0.25s ease-in forwards;
    }

.werent-cookie-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 26px;
    padding-right: 54px;
}

.werent-cookie-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(29, 78, 216, 0.1);
    color: var(--clr-blue);
    font-size: 25px;
}

.werent-cookie-text {
    min-width: 0;
}

    .werent-cookie-text h2 {
        margin: 0 0 8px;
        color: var(--clr-black);
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .werent-cookie-text p {
        margin: 0;
        color: var(--clr-black);
        font-size: 0.92rem;
        line-height: 1.65;
    }

.werent-cookie-policy-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--clr-blue);
}

    .werent-cookie-policy-links .werent-cookie-policy-link {
        margin-top: 0;
    }

.werent-cookie-policy-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--clr-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

    .werent-cookie-policy-link:hover {
        color: var(--clr-blue-dark);
        text-decoration: underline;
    }

.werent-cookie-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

    .werent-cookie-actions .btn {
        min-width: 105px;
        padding: 10px 20px;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 600;
    }

.werent-cookie-reject {
    border: 1px solid var(--werent-bg);
    background: #ffffff;
    color: #374151;
}

    .werent-cookie-reject:hover {
        border-color: #9ca3af;
        background: #f9fafb;
        color: #111827;
    }

.werent-cookie-accept {
    border: 1px solid var(--clr-blue);
    background: var(--clr-blue);
    color: #ffffff;
}

    .werent-cookie-accept:hover {
        border-color: var(--clr-blue-dark);
        background: var(--clr-blue-dark);
        color: #ffffff;
    }

.werent-cookie-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--clr-black);
    font-size: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .werent-cookie-close:hover {
        background: #f3f4f6;
        color: #111827;
    }

@keyframes werentCookieOpening {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes werentCookieClosing {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 575.98px) {
    .werent-cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        border-radius: 18px;
    }

    .werent-cookie-content {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
        padding-top: 48px;
    }

    .werent-cookie-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .werent-cookie-actions {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

        .werent-cookie-actions .btn {
            min-width: 0;
            width: 100%;
        }
}
