.cookie-banner[hidden],
.cookie-settings-overlay[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 99999;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 650px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

.cookie-banner h2,
.cookie-settings-dialog h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.cookie-banner p,
.cookie-settings-dialog p {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.cookie-button:hover {
    background: #f3f3f3;
}

.cookie-button-primary {
    background: #4294f5;
    color: #ffffff;
    border-color: #4294f5;
}

.cookie-button-primary:hover {
    background: #287edc;
}

.cookie-button-text {
    border-color: transparent;
}

.cookie-settings-overlay {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-settings-dialog {
    width: 100%;
    max-width: 500px;
    padding: 26px;
    background: #ffffff;
    color: #222222;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    font-family: inherit;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.cookie-category strong {
    display: block;
    margin-bottom: 5px;
}

.cookie-always-active {
    flex-shrink: 0;
    color: #287edc;
    font-size: 13px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 48px;
    height: 26px;
}

.cookie-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: #cccccc;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-switch input:checked + .cookie-slider {
    background: #4294f5;
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-slider {
    outline: 3px solid rgba(66, 148, 245, 0.4);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }

    .cookie-settings-dialog {
        padding: 20px;
    }
}

.footer-cookie-settings {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-cookie-settings:hover {
    text-decoration: underline;
}