.cookie-banner {
 position: fixed;
 inset: auto 0 max(16px, env(safe-area-inset-bottom)) 0;
 z-index: 90;
 display: flex;
 align-items: center;
 gap: 18px;
 width: min(850px, calc(100% - 32px));
 margin-inline: auto;
 padding: 14px 16px;
 border: 1px solid #dce1eb;
 border-radius: 14px;
 background: #fff;
 color: #253047;
 box-shadow: 0 8px 28px #202a461a;
 font: 13px/1.5 Inter, "Segoe UI", sans-serif;
}
.cookie-summary { flex: 1; min-width: 0; color: #46516a; }
.cookie-summary a { margin-inline-start: 5px; white-space: nowrap; }
.cookie-summary .cookie-note { margin: 3px 0 0; color: #555f74; font-size: 12px; }
.cookie-banner a, .cookie-dialog a { color: #394487; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cookie-actions button, .cookie-dialog .plain-button {
 min-height: 44px;
 padding: 7px 12px;
 border: 1px solid #dce1eb;
 border-radius: 8px;
 background: #fff;
 color: #28334d;
 cursor: pointer;
 font: inherit;
 line-height: 1.3;
}
.cookie-actions button:hover, .cookie-dialog .plain-button:hover { background: #f0f2fa; }
.cookie-actions [data-cookie="settings"], .cookie-actions [data-cookie="save"] { background: #eef0fa; color: #303c80; }
.cookie-banner :focus-visible, .cookie-dialog :focus-visible, .cookie-reopen:focus-visible { outline: 2px solid #515bb1; outline-offset: 3px; }
.cookie-dialog {
 box-sizing: border-box;
 z-index: 100;
 width: min(500px, calc(100% - 28px));
 max-height: 85svh;
 overflow: auto;
 padding: 22px;
 border: 1px solid #dce1eb;
 border-radius: 16px;
 background: #fff;
 color: #253047;
 font: 14px/1.5 Inter, "Segoe UI", sans-serif;
}
.cookie-dialog::backdrop { background: #17203963; backdrop-filter: blur(3px); }
.cookie-dialog h2 { margin: 0 42px 8px 0; font-size: 21px; font-weight: 650; }
.cookie-dialog p { margin: 6px 0 10px; color: #555f74; font-size: 13px; }
.cookie-dialog .cookie-category {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 14px;
 padding: 12px 0;
 border-top: 1px solid #e2e6ee;
}
.cookie-category small { display: block; margin-top: 2px; color: #555f74; }
.cookie-category input { flex: none; inline-size: 19px; block-size: 19px; accent-color: #394487; }
.cookie-dialog .cookie-actions { margin: 12px 0; }
.cookie-dialog .cookie-analytics { padding: 11px 0; border-top: 1px solid #e2e6ee; }
.cookie-dialog .cookie-analytics p { margin: 0 0 6px; }
.cookie-close {
 position: absolute;
 inset: 8px 8px auto auto;
 width: 44px;
 height: 44px;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: #46516a;
 font-size: 24px;
 cursor: pointer;
}
.cookie-close:hover { background: #f0f2fa; }
.cookie-reopen {
 position: fixed;
 right: 12px;
 bottom: 9px;
 z-index: 70;
 min-height: 44px;
 padding: 5px 11px;
 border: 1px solid #dce1eb;
 border-radius: 20px;
 background: #fff;
 color: #46516a;
 font: 12px/1.4 Inter, "Segoe UI", sans-serif;
 cursor: pointer;
}
.cookie-banner[hidden], .cookie-reopen[hidden] { display: none !important; }
.cookie-policy { max-width: 900px; margin: 45px auto; padding: 0 25px 80px; font-size: 14px; line-height: 1.9; }
.cookie-policy h1 { font-size: 32px; }
.cookie-policy h2 { font-size: 20px; margin-top: 35px; }
.cookie-policy table { border-collapse: collapse; width: 100%; font-size: 12px; white-space: normal; }
.cookie-policy td, .cookie-policy th { border-bottom: 1px solid #dadde5; padding: 12px; text-align: left; overflow-wrap: anywhere; }
.cookie-policy .table-wrap { overflow-x: auto; }
.cookie-policy code { font-size: 11px; }
@media (max-width: 720px) {
 .cookie-banner { flex-wrap: wrap; gap: 8px; width: calc(100% - 20px); padding: 10px 12px; }
 .cookie-summary, .cookie-banner > .cookie-actions { flex: 1 1 100%; }
 .cookie-banner .cookie-actions button { flex: 1; padding-inline: 6px; }
 .cookie-policy { padding: 0 18px 70px; }
 .cookie-policy h1 { font-size: 26px; }
}
