.oknotek-consent-open {
    overflow: hidden;
}

.oknotek-consent-overlay[hidden] {
    display: none !important;
}

.oknotek-consent-overlay {
    position: fixed;
    z-index: 2147483000;
    right: 0;
    bottom: 24px;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 0 18px;
    pointer-events: none;
}

.oknotek-consent {
    width: min(655px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px 28px 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .24);
    pointer-events: auto;
}

.oknotek-consent.is-scroll-bumped {
    animation: oknotek-consent-bump .38s cubic-bezier(.2, .8, .25, 1);
}

.oknotek-consent h2 {
    max-width: 590px;
    margin: 0 0 6px;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.12;
    color: #050505;
}

.oknotek-consent p {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.35;
}

.oknotek-consent__status {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #475569;
}

.oknotek-consent__status:empty {
    display: none;
}

.oknotek-consent__actions {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.oknotek-consent__button {
    min-height: 52px;
    padding: 10px 28px;
    border: 2px solid #ff6200;
    border-radius: 9px;
    background: #ff6200;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.oknotek-consent__button:last-child {
    border-color: #0f172a;
    background: #fff;
    color: #0f172a;
}

.oknotek-consent__button:hover {
    transform: translateY(-1px);
}

.oknotek-consent__button.is-accept-pulsed {
    animation: oknotek-accept-pulse 2.4s ease-in-out;
}

.oknotek-consent__button:focus-visible,
.oknotek-consent__policy:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.oknotek-consent__more {
    margin-top: 14px !important;
}

.oknotek-consent__policy {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes oknotek-consent-bump {
    0%, 100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(-16px);
    }
}

@keyframes oknotek-accept-pulse {
    0% {
        transform: scale(1);
    }

    41.666% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 620px) {
    .oknotek-consent-overlay {
        bottom: 12px;
        padding: 0 10px;
    }

    .oknotek-consent {
        max-height: calc(100vh - 24px);
        padding: 20px 18px;
        border-radius: 14px;
    }

    .oknotek-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .oknotek-consent__button {
        width: 100%;
    }
}

/* ОкноТэк: оформление по цветам и типографике сайта. */
.oknotek-consent-overlay {
    top: 0;
    bottom: 0;
    align-items: end;
    padding: 20px;
}

.oknotek-consent,
.oknotek-consent * {
    box-sizing: border-box;
}

.oknotek-consent {
    width: min(680px, 100%);
    padding: 28px 32px;
    border: 1px solid #dcebf1;
    border-top: 4px solid #19bae2;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: var(--font-primary, Arial, sans-serif);
    box-shadow: 0 12px 40px rgba(21, 78, 148, .18);
}

.oknotek-consent h2 {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #154e94;
}

.oknotek-consent p {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.oknotek-consent__actions {
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.oknotek-consent__button {
    flex: 1;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #19bae2;
    border-radius: 8px;
    background: #19bae2;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    transition: background .2s;
}

.oknotek-consent__button:last-child {
    border-color: #2395d2;
    background: #fff;
    color: #154e94;
}

.oknotek-consent__button:hover {
    background: #154e94;
    border-color: #154e94;
    color: #fff;
    transform: none;
}

.oknotek-consent__policy {
    color: #1b6eae;
    font-size: 14px;
}

.oknotek-consent__button:focus-visible,
.oknotek-consent__policy:focus-visible {
    outline-color: #154e94;
}

@media (max-width: 620px) {
    .oknotek-consent-overlay {
        bottom: 0;
        padding: 12px;
    }

    .oknotek-consent {
        padding: 22px 20px;
        max-height: calc(100dvh - 24px);
        border-radius: 8px;
    }

    .oknotek-consent h2 {
        font-size: 21px;
    }

    .oknotek-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .oknotek-consent__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oknotek-consent.is-scroll-bumped,
    .oknotek-consent__button.is-accept-pulsed {
        animation: none;
    }
}