.cookie-consent,
.cookie-settings {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    inset: 0;
    justify-content: center;
    /* padding: 24px; */
    position: fixed;
    left: 10px;
    top: auto;
    bottom: 10px;
    right: auto;
        width: 400px;
    z-index: 2147483647;
}

.cookie-consent[hidden],
.cookie-settings[hidden] {
    display: none;
}

.cookie-consent__panel,
.cookie-settings__panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    color: #4d5259;
    max-width: none;
        padding: 8px;
    width: 100%;
}

.cookie-consent__header,
.cookie-consent__actions {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: space-between;
}

.cookie-consent__policy-link {
    color: #fd7e14;
    font-size: 0.65rem;
    font-weight: 700;
}

.cookie-consent h2,
.cookie-settings h2 {
    color: #4d5259;
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 8px 0;
}

.cookie-consent p,
.cookie-settings p {
    font-size: 0.65rem;
    /* font-weight: 600; */
    line-height: 1.45;
        margin: 0 0 8px;
}

.cookie-consent button,
.cookie-settings button {
    background: #fd7e14;
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    /* font-weight: 700; */
    min-height: 28px;
        padding: 2px 6px;
}

.cookie-consent__continue {
    white-space: nowrap;
}

.cookie-consent__actions button {
    flex: 1;
    min-height: 36px;
}

.cookie-settings__option {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
    white-space: nowrap;
}

.cookie-settings__option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.cookie-settings__options {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.cookie-settings__switch {
    background: #e1e3e7;
    border-radius: 11px;
        height: 8px;
    position: relative;
    transition: background 0.2s ease;
    width: 30px;
}

.cookie-settings__switch::after {
    background: #cfd2d8;
    border-radius: 50%;
    content: '';
    height: 16px;
    left: 0;
    position: absolute;
    top: -4px;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 16px;
}

.cookie-settings__option input:checked + .cookie-settings__switch {
    background: #fd7e14;
}

.cookie-settings__option input:checked + .cookie-settings__switch::after {
    background: #fd7e14;
    transform: translateX(15px);
}

.cookie-settings__option input:focus-visible + .cookie-settings__switch {
    outline: 3px solid #34383d;
    outline-offset: 4px;
}

.privacy-policy {
    color: #4d5259;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 900px;
    padding: 30px 20px 60px;
}

.privacy-policy h1,
.privacy-policy h2 {
    color: #34383d;
    line-height: 1.25;
}

.privacy-policy h1 {
    font-size: 30px;
}

.privacy-policy h2 {
    font-size: 22px;
    margin-top: 30px;
}

.privacy-policy__settings {
    background: #c70f0c;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 18px;
}

@media (max-width: 680px) {
    .cookie-consent,
    .cookie-settings {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-consent__panel,
    .cookie-settings__panel {
        max-height: calc(100vh - 12px);
        overflow-y: auto;
        padding: 8px;
    }

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

    .cookie-consent__policy-link,
    .cookie-consent h2,
    .cookie-settings h2 {
        font-size: 0.85rem;
            margin: 16px 0 8px;
    }

    .cookie-consent p,
    .cookie-settings p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .cookie-consent button,
    .cookie-settings button {
        border-radius: 5px;
            font-size: 0.95rem;
            min-height: 28px;
    }

    .cookie-consent__actions button {
        min-height: 36px;
    }

    .cookie-settings__options {
        align-items: flex-start;
        gap: 16px;
            margin-bottom: 16px;
    }

    .cookie-settings__option {
        font-size: 0.65rem;
    }
}