:root {
    --cookie-primary: #3438f3;
    --cookie-primary-dark: #1728a8;
    --cookie-cyan: #2fc4e3;
    --cookie-ink: #0c1733;
    --cookie-text: #526078;
    --cookie-soft: #f4f7ff;
    --cookie-border: #dfe6f2;
    --cookie-white: #ffffff;
    --cookie-success: #0a9f70;
    --cookie-shadow: 0 24px 70px rgba(8, 28, 52, 0.22);
}

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

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

.torevya-cookie-consent,
.torevya-cookie-consent *,
.torevya-cookie-policy,
.torevya-cookie-policy * {
    box-sizing: border-box;
}

.torevya-cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
}

.torevya-cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 35, 0.5);
    backdrop-filter: blur(4px);
}

.torevya-cookie-consent__panel {
    position: relative;
    width: min(100%, 920px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    color: var(--cookie-ink);
    background: var(--cookie-white);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--cookie-shadow);
}

.torevya-cookie-consent__summary,
.torevya-cookie-consent__preferences {
    padding: clamp(24px, 4vw, 42px);
}

.torevya-cookie-consent__heading,
.torevya-cookie-consent__preferences-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.torevya-cookie-consent__heading {
    margin-bottom: 18px;
}

.torevya-cookie-consent__icon {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    color: var(--cookie-white);
    background: linear-gradient(135deg, var(--cookie-primary), var(--cookie-cyan));
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(52, 56, 243, 0.25);
}

.torevya-cookie-consent__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-cookie-consent__eyebrow,
.torevya-cookie-policy__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--cookie-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.torevya-cookie-consent h2 {
    margin: 0;
    color: var(--cookie-ink);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
}

.torevya-cookie-consent__summary > p {
    margin: 0;
    color: var(--cookie-text);
    font-size: 15px;
    line-height: 1.75;
}

.torevya-cookie-consent a {
    color: var(--cookie-primary);
    font-weight: 700;
}

.torevya-cookie-consent__actions,
.torevya-cookie-consent__preferences-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.torevya-cookie-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: var(--cookie-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.torevya-cookie-button:hover {
    transform: translateY(-2px);
}

.torevya-cookie-button:focus-visible,
.torevya-cookie-consent button:focus-visible,
.torevya-cookie-policy button:focus-visible,
.torevya-cookie-policy a:focus-visible {
    outline: 3px solid rgba(47, 196, 227, 0.45);
    outline-offset: 3px;
}

.torevya-cookie-button--primary {
    color: var(--cookie-white);
    background: linear-gradient(135deg, var(--cookie-primary), #236fc8);
    box-shadow: 0 10px 24px rgba(52, 56, 243, 0.2);
}

.torevya-cookie-button--secondary {
    color: var(--cookie-ink);
    background: var(--cookie-soft);
    border-color: var(--cookie-border);
}

.torevya-cookie-button--text {
    color: var(--cookie-primary);
}

.torevya-cookie-consent__preferences-header {
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cookie-border);
}

.torevya-cookie-consent__back {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--cookie-primary);
    cursor: pointer;
    background: var(--cookie-soft);
    border: 1px solid var(--cookie-border);
    border-radius: 50%;
}

.torevya-cookie-consent__back svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-cookie-consent__categories {
    display: grid;
    gap: 0;
}

.torevya-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cookie-border);
}

.torevya-cookie-category__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.torevya-cookie-category h3 {
    margin: 0;
    color: var(--cookie-ink);
    font-size: 17px;
}

.torevya-cookie-category__title span {
    padding: 5px 9px;
    color: var(--cookie-success);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(10, 159, 112, 0.1);
    border-radius: 999px;
}

.torevya-cookie-category p {
    margin: 7px 0 0;
    color: var(--cookie-text);
    font-size: 13px;
    line-height: 1.6;
}

.torevya-cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 30px;
    cursor: pointer;
}

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

.torevya-cookie-switch > span:first-of-type {
    position: absolute;
    inset: 0;
    background: #cbd4e2;
    border-radius: 999px;
    transition: background-color 180ms ease;
}

.torevya-cookie-switch > span:first-of-type::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    content: "";
    background: var(--cookie-white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(8, 28, 52, 0.2);
    transition: transform 180ms ease;
}

.torevya-cookie-switch input:checked + span {
    background: var(--cookie-primary);
}

.torevya-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.torevya-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(47, 196, 227, 0.45);
    outline-offset: 3px;
}

.torevya-cookie-switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.7;
}

.torevya-cookie-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.torevya-cookie-policy {
    color: var(--cookie-ink);
}

.torevya-cookie-policy__summary {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.torevya-cookie-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    background: var(--cookie-white);
    border: 1px solid var(--cookie-border);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15, 38, 75, 0.12);
}

.torevya-cookie-summary__icon,
.torevya-cookie-type-card__icon,
.torevya-cookie-article__icon {
    display: grid;
    place-items: center;
    color: var(--cookie-primary);
    background: linear-gradient(145deg, #eef0ff, #e9fbff);
}

.torevya-cookie-summary__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.torevya-cookie-summary__icon svg,
.torevya-cookie-type-card__icon svg,
.torevya-cookie-article__icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torevya-cookie-summary h2,
.torevya-cookie-heading h2 {
    margin: 0 0 10px;
    color: var(--cookie-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.torevya-cookie-summary p,
.torevya-cookie-heading p {
    margin: 0;
    color: var(--cookie-text);
    font-size: 15px;
    line-height: 1.75;
}

.torevya-cookie-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.torevya-cookie-type-card {
    height: 100%;
    padding: 26px;
    background: var(--cookie-white);
    border: 1px solid var(--cookie-border);
    border-radius: 20px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.torevya-cookie-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 38, 75, 0.1);
}

.torevya-cookie-type-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.torevya-cookie-type-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.torevya-cookie-type-card__icon svg {
    width: 29px;
    height: 29px;
}

.torevya-cookie-status {
    padding: 6px 10px;
    color: var(--cookie-primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: #eef0ff;
    border-radius: 999px;
}

.torevya-cookie-type-card h3 {
    margin: 0 0 10px;
    color: var(--cookie-ink);
    font-size: 21px;
}

.torevya-cookie-type-card p {
    margin: 0;
    color: var(--cookie-text);
    font-size: 14px;
    line-height: 1.7;
}

.torevya-cookie-navigation {
    position: sticky;
    top: 120px;
    padding: 28px;
    background: linear-gradient(145deg, #171eaa, #236fc8);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(23, 30, 170, 0.2);
}

.torevya-cookie-navigation .torevya-cookie-policy__eyebrow {
    color: var(--cookie-cyan);
}

.torevya-cookie-navigation h2 {
    margin: 0 0 20px;
    color: var(--cookie-white);
    font-size: 24px;
}

.torevya-cookie-navigation nav {
    display: grid;
    gap: 7px;
}

.torevya-cookie-navigation a {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.torevya-cookie-navigation a:hover {
    color: var(--cookie-white);
    background: rgba(255, 255, 255, 0.1);
}

.torevya-cookie-article {
    display: grid;
    gap: 24px;
}

.torevya-cookie-article > article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: clamp(24px, 4vw, 34px);
    scroll-margin-top: 120px;
    background: var(--cookie-white);
    border: 1px solid var(--cookie-border);
    border-radius: 20px;
}

.torevya-cookie-article__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

.torevya-cookie-article__icon svg {
    width: 27px;
    height: 27px;
}

.torevya-cookie-article h2 {
    margin: 4px 0 14px;
    color: var(--cookie-ink);
    font-size: clamp(22px, 3vw, 30px);
}

.torevya-cookie-article p {
    margin: 0 0 14px;
    color: var(--cookie-text);
    font-size: 15px;
    line-height: 1.8;
}

.torevya-cookie-table-wrap {
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid var(--cookie-border);
    border-radius: 14px;
}

.torevya-cookie-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.torevya-cookie-table th,
.torevya-cookie-table td {
    padding: 15px 16px;
    color: var(--cookie-text);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    border-bottom: 1px solid var(--cookie-border);
}

.torevya-cookie-table th {
    color: var(--cookie-ink);
    font-weight: 800;
    background: var(--cookie-soft);
}

.torevya-cookie-table tr:last-child td {
    border-bottom: 0;
}

.torevya-cookie-table code {
    color: var(--cookie-primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.torevya-cookie-note {
    padding: 15px 17px;
    color: var(--cookie-primary-dark) !important;
    background: #f1f4ff;
    border-left: 4px solid var(--cookie-primary);
    border-radius: 0 10px 10px 0;
}

.torevya-cookie-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
}

.torevya-cookie-contact > div {
    padding: 16px;
    background: var(--cookie-soft);
    border-radius: 12px;
}

.torevya-cookie-contact dt {
    margin-bottom: 6px;
    color: var(--cookie-text);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.torevya-cookie-contact dd {
    margin: 0;
    color: var(--cookie-ink);
    font-size: 13px;
    font-weight: 700;
}

.torevya-cookie-contact a {
    color: var(--cookie-primary);
}

@media (max-width: 991.98px) {
    .torevya-cookie-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .torevya-cookie-summary > .torevya-cookie-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .torevya-cookie-navigation {
        position: static;
    }

    .torevya-cookie-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .torevya-cookie-consent {
        padding: 10px;
    }

    .torevya-cookie-consent__panel {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .torevya-cookie-consent__heading {
        align-items: flex-start;
    }

    .torevya-cookie-consent__icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .torevya-cookie-consent__icon svg {
        width: 28px;
        height: 28px;
    }

    .torevya-cookie-consent__actions,
    .torevya-cookie-consent__preferences-actions {
        display: grid;
    }

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

    .torevya-cookie-category {
        align-items: flex-start;
        gap: 14px;
    }

    .torevya-cookie-policy__summary {
        margin-top: -30px;
    }

    .torevya-cookie-summary {
        grid-template-columns: 1fr;
    }

    .torevya-cookie-summary__icon {
        width: 60px;
        height: 60px;
    }

    .torevya-cookie-summary > .torevya-cookie-button {
        grid-column: auto;
        justify-self: stretch;
    }

    .torevya-cookie-article > article {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .torevya-cookie-button,
    .torevya-cookie-type-card,
    .torevya-cookie-switch > span:first-of-type,
    .torevya-cookie-switch > span:first-of-type::after {
        transition: none !important;
    }
}
