.kangen-cookie {
    position: fixed;
    z-index: 9900;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: min(420px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 17px;
    border: 1px solid #d7e8ef;
    border-radius: 20px;
    background: #f5fbfe;
    color: #143654;
    box-shadow: 0 12px 40px rgb(9 43 76 / 12%);
    font-size: 13px;
    line-height: 1.5;
}
.kangen-cookie[hidden] { display: none; }
.kangen-cookie p { margin: 0 0 8px; }
.kangen-cookie a { color: #155e7a; text-underline-offset: 3px; }
.kangen-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kangen-cookie__actions button {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #09234b;
    border-radius: 28px;
    background: transparent;
    color: #09234b;
    font: inherit;
    font-weight: 650;
    line-height: 1.35;
    cursor: pointer;
}
.kangen-cookie__actions .kangen-cookie__accept { background: #09234b; color: #fff; }
.kangen-cookie__actions button:hover { border-color: #147b91; }
.kangen-cookie__actions button:disabled { opacity: .55; cursor: default; }
.kangen-cookie :is(a, button):focus-visible { outline: 2px solid #147b91; outline-offset: 3px; }
.kangen-cookie .kangen-cookie__status { margin: 12px 0 0; font-size: 12px; }
.kangen-cookie__status:empty { display: none; }
body.partner-modal-open .kangen-cookie, body.site-menu-open .kangen-cookie { visibility: hidden; }
.kangen-cookie-noscript { padding-block: 12px; font-size: 13px; }
.site-footer [data-cookie-open] { display: inline-flex; align-items: center; min-height: 44px; color: #c5dce8; font-size: 12px; text-underline-offset: 3px; }
.site-footer [data-cookie-open]:hover { color: #fff; }
.site-footer [data-cookie-open]:focus-visible { outline: 2px solid #8bc7d7; outline-offset: 3px; }
@media (max-width: 540px) {
    .kangen-cookie { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 10px; border-radius: 18px; font-size: 13px; line-height: 1.4; }
    .kangen-cookie__actions button { flex-basis: 120px; }
}

.kangen-cookie-shade { position: fixed; inset: 0; z-index: 9899; background: rgb(0 0 0 / 18%); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.kangen-cookie-shade.is-visible { opacity: 1; }
.kangen-cookie-shade[hidden] { display: none; }
body.partner-modal-open .kangen-cookie-shade, body.site-menu-open .kangen-cookie-shade { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .kangen-cookie-shade { transition: none; } }
