﻿.cookie-consent-banner,
.cookie-consent-panel {
    box-sizing: border-box;
    color: #252525;
    font-family: Poppins, Arial, sans-serif;
}

.cookie-consent-banner *,
.cookie-consent-panel * {
    box-sizing: border-box;
}

.cookie-consent-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999990;
    width: min(560px, calc(100vw - 32px));
    padding: 18px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.cookie-consent-banner.is-hidden,
.cookie-consent-panel.is-hidden {
    display: none;
}

.cookie-consent-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.cookie-consent-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #4f4f4f;
}

.cookie-consent-text a,
.cookie-policy-page a {
    color: #b21f2d;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cookie-consent-button,
.cookie-policy-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cookie-policy-link-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b21f2d;
    text-decoration: underline;
}

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

.cookie-consent-button-primary {
    border-color: #b21f2d;
    background: #b21f2d;
    color: #fff;
}

.cookie-consent-button-primary:hover,
.cookie-consent-button-primary:focus {
    border-color: #921925;
    background: #921925;
    color: #fff;
}

.cookie-consent-panel {
    position: fixed;
    inset: 0;
    z-index: 99999991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
}

.cookie-consent-dialog {
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .3);
}

.cookie-consent-category {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid #ececec;
}

.cookie-consent-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.cookie-consent-category p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #5f5f5f;
}

.cookie-consent-switch {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    margin-top: 2px;
}

.cookie-consent-switch input {
    position: absolute;
    opacity: 0;
}

.cookie-consent-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c9c9c9;
    cursor: pointer;
}

.cookie-consent-slider:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-slider {
    background: #b21f2d;
}

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

.cookie-consent-switch input:disabled + .cookie-consent-slider {
    cursor: not-allowed;
    opacity: .75;
}

.cookie-policy-page {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.cookie-policy-page p {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.cookie-policy-page h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.cookie-policy-table th,
.cookie-policy-table td {
    vertical-align: top;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .cookie-consent-banner {
        right: 12px;
        bottom: 78px;
        width: calc(100vw - 24px);
        padding: 14px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-button {
        width: 100%;
    }

    .cookie-consent-dialog {
        padding: 16px;
    }
}
