.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    z-index: 9999;
}

.cookie-consent-overlay.is-hidden {
    display: none;
}

.cookie-consent-dialog {
    width: min(430px, calc(100vw - 28px));
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    position: relative;
}

.cookie-consent-top-link,
.cookie-consent-policy {
    color: #4d4d4d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-top-link:hover,
.cookie-consent-policy:hover {
    color: #1f1f1f;
}

.cookie-consent-content {
    padding: 12px 14px 7px;
}

.cookie-consent-title {
    margin: 2px 0 2px;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    color: #010101;
}

.cookie-consent-subtitle {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: #010101;
}

.cookie-consent-text {
    margin: 8px 0 6px;
    font-size: 13px;
    line-height: 1.35;
    color: #2d2d2d;
    max-width: 66%;
}

.cookie-consent-brand {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 6px 12px;
    text-align: center;
    color: #646464;
    font-size: 11px;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cookie-consent-btn {
    border: 0;
    background: #f5f5f5;
    color: #212121;
    padding: 9px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-consent-btn + .cookie-consent-btn {
    border-left: 1px solid #e4e4e4;
}

.cookie-consent-btn:hover {
    background: #ececec;
}

.cookie-consent-btn.primary {
    background: #d0a165;
    color: #111;
    font-weight: 700;
}

.cookie-consent-btn.primary:hover {
    background: #bf9052;
}

.cookie-consent-illustration {
    position: absolute;
    right: 0;
    top: 30px;
    width: 122px;
    height: 58px;
    background: radial-gradient(circle at 26% 50%, #f6e5ca 0%, #f0d2a0 42%, #d0a165 100%);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #231f20;
    pointer-events: none;
    font-size: 26px;
    line-height: 1;
}

.cookie-consent-close {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #c8984b;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cookie-consent-close::before,
.cookie-consent-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #ffffff;
}

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

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

.cookie-preferences-panel {
    margin: 5px 8px 8px;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 8px 8px 7px;
    background: #fafafa;
    display: none;
}

.cookie-preferences-panel.is-open {
    display: block;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #ededed;
}

.cookie-pref-item:last-of-type {
    border-bottom: 0;
}

.cookie-pref-item h4 {
    font-size: 12px;
    margin: 0 0 2px;
    color: #111;
}

.cookie-pref-item p {
    font-size: 10px;
    margin: 0;
    color: #525252;
}

.cookie-switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 0;
    position: relative;
    background: #c5c5c5;
}

.cookie-switch::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: left 0.2s ease;
}

.cookie-switch[aria-checked="true"] {
    background: #3ea067;
}

.cookie-switch[aria-checked="true"]::after {
    left: 23px;
}

.cookie-switch.is-required {
    background: #d0a165;
}

.cookie-pref-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.cookie-pref-actions .cookie-consent-btn {
    flex: 1;
    font-size: 11px;
    padding: 7px 8px;
}

.cookie-manage-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(10, 11, 14, 0.92);
    color: #fff;
    font-size: 13px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: none;
}

.cookie-manage-btn.is-visible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 12px;
    }

    .cookie-consent-content {
        padding: 10px 11px 6px;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-subtitle {
        font-size: 20px;
    }

    .cookie-consent-text {
        font-size: 12px;
        max-width: 100%;
    }

    .cookie-consent-illustration {
        width: 94px;
        height: 48px;
        top: 22px;
        font-size: 22px;
    }

    .cookie-consent-btn {
        font-size: 12px;
        padding: 8px 9px;
    }

    .cookie-consent-close {
        width: 36px;
        height: 36px;
        left: 8px;
        bottom: 8px;
    }

    .cookie-manage-btn {
        right: 12px;
        bottom: 82px;
        font-size: 12px;
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-overlay {
        padding: 8px;
    }

    .cookie-consent-dialog {
        width: min(100%, calc(100vw - 16px));
    }

    .cookie-consent-content {
        padding: 9px 10px 5px;
    }

    .cookie-consent-title {
        font-size: 15px;
    }

    .cookie-consent-subtitle {
        font-size: 18px;
    }

    .cookie-consent-text {
        font-size: 11px;
        margin: 6px 0 5px;
    }

    .cookie-consent-top-link,
    .cookie-consent-policy {
        font-size: 12px;
    }

    .cookie-consent-brand {
        font-size: 10px;
    }

    .cookie-consent-illustration {
        width: 84px;
        height: 42px;
        top: 18px;
        font-size: 20px;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent-btn + .cookie-consent-btn {
        border-left: 0;
        border-top: 1px solid #e4e4e4;
    }
}
