.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 9999;
    padding: 0 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-consent__card {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(217, 237, 242, 0.95);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 253, 255, 0.98) 100%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    position: relative;
}

.cookie-consent__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0f766e 0%, #0891b2 55%, #38bdf8 100%);
}

.cookie-consent__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d9edf2;
    box-shadow: 0 14px 26px rgba(8, 145, 178, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.cookie-consent__icon img {
    display: block;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.cookie-consent__icon span {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 22px;
    height: 26px;
    border-radius: 12px 12px 14px 14px;
    border: 3px solid #0891b2;
    border-top: 0;
}

.cookie-consent__icon span {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 22px;
    height: 26px;
    border-radius: 12px 12px 14px 14px;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-top: 0;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__content h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.cookie-consent__content p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.cookie-consent__links {
    margin-top: 8px;
}

.cookie-consent__links a {
    color: #0891b2;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cookie-consent__links a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cookie-consent__btn {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 14px 26px rgba(8, 145, 178, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(8, 145, 178, 0.28);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 12px;
        padding: 0 12px;
    }

    .cookie-consent__card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .cookie-consent__icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}