.cookie-banner,
.cookie-modal,
.cookie-review {
    font-family: inherit;
}

.cookie-banner[hidden],
.cookie-modal[hidden],
.cookie-review[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.cookie-banner__content {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 22px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #111827;
}

.cookie-banner__text p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.cookie-banner__links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cookie-banner__links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-cookie--primary {
    background: #2563eb;
    color: #fff;
}

.btn-cookie--outline {
    background: #fff;
    color: #2563eb;
    border: 1px solid #cbd5e1;
}

.btn-cookie--light {
    background: #f3f4f6;
    color: #111827;
}

.btn-cookie:hover {
    transform: translateY(-1px);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.cookie-modal__dialog {
    position: relative;
    width: min(680px, calc(100% - 32px));
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.cookie-modal__header,
.cookie-modal__footer {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}

.cookie-modal__footer {
    border-top: 1px solid #eef2f7;
    border-bottom: 0;
    text-align: right;
}

.cookie-modal__body {
    padding: 22px;
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal__header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #111827;
}

.cookie-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cookie-option:last-child {
    border-bottom: 0;
}

.cookie-option strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-option p {
    margin: 0;
    color: #6b7280;
}

.switch {
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 30px;
    display: inline-block;
}

.switch input {
    display: none;
}

.switch span {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.2s ease;
}

.switch span::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s ease;
}

.switch input:checked + span {
    background: #2563eb;
}

.switch input:checked + span::before {
    transform: translateX(22px);
}

.cookie-review {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #2563eb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: 0.2s ease;
    padding: 0;
}

.cookie-review:hover {
    transform: translateY(-2px) scale(1.03);
}

.cookie-review i,
.cookie-review span {
    font-size: 22px;
    line-height: 1;
}


@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
    }
}
