/* Основа: окно MAGILANKA, выделено из CSS в самостоятельный компонент. */
.cookie-popup{font: .875rem/1.5 Arial,sans-serif;display:flex;flex-wrap:wrap;justify-content:space-between;position:fixed;bottom:1rem;left:0;padding:.625rem .9375rem;box-shadow:2px 2px 4px #0003;z-index:9999;background:var(--cookie-background,#018667);border-radius:0 10px 10px 0;color:#fff;gap:1rem;align-items:center;width:min(45rem,calc(100vw - 2rem));box-sizing:border-box}
.cookie-popup[hidden]{display:none!important}.cookie-popup>div:first-child{flex:1 1 22rem}.cookie-popup a{color:#fff;text-decoration:underline}.cookie-popup p{margin:0}.cookie-popup-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:.625rem;justify-content:flex-end}.cookie-popup-actions button{font:700 .75rem/1.5 Arial,sans-serif;text-transform:uppercase;padding:9px;border:3px solid var(--cookie-accent,#bfdbe8);background:#f4f0e3;color:#01523f;cursor:pointer}.cookie-popup-actions .cookie-popup-reject{color:#fff;background:transparent;border-color:#f8e19f}.cookie-popup-actions button:hover{text-decoration:underline}.cookie-popup :focus-visible{outline:3px solid #fff;outline-offset:3px}.cookie-popup-status{font-size:.8rem}.cookie-settings-button{font:inherit;cursor:pointer}.privacy-page{font:1rem/1.65 Arial,sans-serif;max-width:58rem;margin:3rem auto;padding:0 1.25rem 10rem;color:#17251e}.privacy-page h1{font-size:2rem;line-height:1.2}.privacy-page h2{font-size:1.3rem;margin-top:2rem}.privacy-page table{border-collapse:collapse;width:100%;overflow-wrap:anywhere}.privacy-page th,.privacy-page td{border:1px solid #d9dfd0;padding:.6rem;text-align:left;vertical-align:top}.privacy-page a{color:#00694e}.privacy-page section{scroll-margin-top:1.5rem}.demo-notice{padding:1rem;border:2px solid #b67700;background:#fff4d6}
@media(max-width:600px){.cookie-popup{left:1rem;right:1rem;width:auto}.cookie-popup>div:first-child,.cookie-popup-actions{flex-basis:100%}.cookie-popup-actions{justify-content:flex-start}.privacy-page table{font-size:.85rem}}

.cookie-popup{--cookie-background:#191930;--cookie-accent:#d4d8ed;max-height:85vh;overflow:auto}.cookie-popup-actions button{color:#191930}.cookie-links{padding:14px;text-align:center;background:#f6f6f6;color:#222;font:14px Arial,sans-serif}.cookie-links a,.cookie-links button{margin:5px;color:#222}.cookie-links button{background:none;border:0;text-decoration:underline;cursor:pointer}.cookie-popup-reject{color:white!important}

/* Читаемый адаптивный шрифт окна cookie */
#cookie-popup {
    font-size: clamp(16px, calc(1rem + 0.4vw), 20px);
    line-height: 1.5;
}

#cookie-popup p,
#cookie-popup a,
#cookie-popup .cookie-popup-status {
    font-size: 1em;
    line-height: inherit;
}

#cookie-popup .cookie-popup-actions button {
    font-size: 1em;
    line-height: 1.4;
}
/* Lift LMS: readable cookie card, 2026-11-22, revision 2.
   em spacing is based on the card font, not the site's small html font. */
#cookie-popup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    inset: auto auto max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    width: min(34em, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    min-width: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    padding: 1.5em;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1em;
    background: #191930;
    color: #f7f7fc;
    box-shadow: 0 .5em 2em rgba(15,18,35,.22);
    font-family: Arial, sans-serif;
    font-size: clamp(16px, calc(1rem + .45vw), 18px);
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
#cookie-popup[hidden] { display: none !important; }
#cookie-popup, #cookie-popup * { box-sizing: border-box; }
#cookie-popup > div:first-child { flex: 0 1 auto; min-width: 0; width: 100%; }
#cookie-popup p {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    overflow-wrap: anywhere;
}
#cookie-popup a {
    display: inline-block;
    max-width: 100%;
    margin-top: .75em;
    font: inherit;
    font-weight: 400;
    color: #e2e8ff;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: .18em;
    overflow-wrap: anywhere;
}
#cookie-popup .cookie-popup-status {
    margin-top: .65em;
    font-size: .9375em;
    line-height: 1.5;
    color: #cbd0e4;
}
#cookie-popup .cookie-popup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 1 auto;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: .75em;
    margin: 1.25em 0 0;
    padding: 0;
}
#cookie-popup .cookie-popup-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 3.2em;
    height: auto;
    margin: 0;
    padding: .8em 1em;
    border: 1px solid #e2e8ff;
    border-radius: .625em;
    background: #eef1ff;
    color: #191930;
    box-shadow: none;
    font-family: inherit;
    font-size: .9375em;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
#cookie-popup .cookie-popup-actions .cookie-popup-reject {
    background: transparent;
    border-color: #858ca8;
    color: #f7f7fc !important;
}
#cookie-popup .cookie-popup-actions button:hover { background: #fff; text-decoration: none; }
#cookie-popup .cookie-popup-actions .cookie-popup-reject:hover { background: #2b2d49; border-color: #b7bfdc; }
#cookie-popup :focus-visible { outline: 3px solid #b8ccff; outline-offset: 3px; }
@media (max-width: 480px) {
    #cookie-popup { padding: 1.25em; border-radius: .875em; }
    #cookie-popup .cookie-popup-actions { grid-template-columns: minmax(0,1fr); }
}
