.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: 0;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.16);
    border-radius: 16px;
    padding: 24px;
    z-index: 10000;
    display: none;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent.cookie-consent--visible {
    display: block;
}

.cookie-consent__title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
}

.cookie-consent__description {
    margin: 0;
}

.cookie-consent__description p {
    margin: 0;
}

.cookie-consent__description p + p {
    margin-top: 8px;
}

.cookie-consent__links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
}

.cookie-consent__links a {
    color: #eb1d36;
    text-decoration: underline;
}

.cookie-consent__links a:hover,
.cookie-consent__links a:focus {
    color: #c5172c;
}

.cookie-consent__description a {
    color: #eb1d36;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cookie-consent__btn {
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 29, 54, 0.25);
}

.cookie-consent__btn--primary {
    background-color: #eb1d36;
    color: #ffffff;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus {
    background-color: #c5172c;
}

.cookie-consent__btn--secondary {
    background-color: transparent;
    color: #eb1d36;
    border: 1px solid #eb1d36;
}

.cookie-consent__btn--secondary:hover,
.cookie-consent__btn--secondary:focus {
    background-color: rgba(235, 29, 54, 0.08);
}

.cookie-consent__btn--ghost {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #d9d9d9;
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus {
    border-color: #b3b3b3;
    background-color: #f5f5f5;
}

.cookie-consent__link {
    background: none;
    border: none;
    color: #1a1a1a;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus {
    color: #eb1d36;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.cookie-consent-modal.cookie-consent-modal--visible {
    display: flex;
}

.cookie-consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.4);
}

.cookie-consent-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    max-width: 640px;
    width: calc(100% - 32px);
    max-height: calc(100% - 32px);
    overflow: auto;
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.18);
}

.cookie-consent-modal__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cookie-consent-modal__body {
    margin-top: 8px;
    color: #1a1a1a;
}

.cookie-consent-modal__list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.cookie-consent-modal__item {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 16px;
    background: #fafafa;
}

.cookie-consent-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cookie-consent-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-toggle__control {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #d9d9d9;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.cookie-consent-toggle__control::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.2);
    transition: transform 0.2s ease;
}

.cookie-consent-toggle__input:checked + .cookie-consent-toggle__control {
    background: #eb1d36;
}

.cookie-consent-toggle__input:checked + .cookie-consent-toggle__control::after {
    transform: translateX(20px);
}

.cookie-consent-toggle__input:disabled + .cookie-consent-toggle__control {
    background: #c5c5c5;
}

.cookie-consent-toggle__label {
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-consent-toggle__description {
    margin-top: 12px;
    color: #4a4a4a;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent-modal__footer {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-consent-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
}

.cookie-consent-modal__close::before,
.cookie-consent-modal__close::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    width: 16px;
    height: 2px;
    background: #1a1a1a;
}

.cookie-consent-modal__close::before {
    transform: rotate(45deg);
}

.cookie-consent-modal__close::after {
    transform: rotate(-45deg);
}

.cookie-consent-modal__close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 29, 54, 0.25);
}

@media (max-width: 767px) {
    .cookie-consent {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        max-width: none;
    }

    .cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__btn,
    .cookie-consent__link {
        width: 100%;
        text-align: center;
    }

    .cookie-consent__link {
        order: -1;
    }

    .cookie-consent__links {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-modal__dialog {
        width: calc(100% - 24px);
        padding: 24px;
        border-radius: 16px;
    }
}

.cookie-consent[hidden],
.cookie-consent-modal[hidden] {
    display: none !important;
}

body.cookie-consent-modal-open {
    overflow: hidden;
}
