.yonka-cookie-notice {
    position: fixed;
    z-index: 10020;
    right: 20px;
    /* Leave the site's chat launcher accessible below the notice. */
    bottom: 72px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
    box-sizing: border-box;
    border: 1px solid #ded9e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 28px rgba(53, 42, 75, .2);
    color: #354a54;
    font: 15px/1.5 Arial, sans-serif;
    animation: yonka-cookie-appear .25s ease-out;
}

.yonka-cookie-notice[hidden] {
    display: none;
}

.yonka-cookie-notice__text {
    flex: 1;
    margin: 0;
}

.yonka-cookie-notice__link {
    color: #6b6090;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yonka-cookie-notice__link:hover {
    color: #51456f;
}

.yonka-cookie-notice__accept {
    flex-shrink: 0;
    min-width: 136px;
    min-height: 44px;
    padding: 11px 24px;
    border: 0;
    border-radius: 4px;
    background: #6b6090;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.yonka-cookie-notice__accept:hover {
    background: #51456f;
}

.yonka-cookie-notice__accept:focus-visible,
.yonka-cookie-notice__link:focus-visible {
    outline: 2px solid #51456f;
    outline-offset: 3px;
}

@keyframes yonka-cookie-appear {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .yonka-cookie-notice {
        right: 12px;
        bottom: 72px;
        bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yonka-cookie-notice { animation: none; }
}
