html.kke-popup-open { overflow: hidden; }
#kke-popup {
    box-sizing: border-box;
    width: min(560px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #292126;
    box-shadow: 0 20px 70px #0005;
    overflow: hidden;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}
#kke-popup:not([open]) { display: none; }
#kke-popup::backdrop { background: rgb(25 10 18 / 60%); }
#kke-popup .kke-popup-layout { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
#kke-popup h2 { flex: none; margin: 0; padding: 24px 24px 12px; color: #570a29; font-size: 24px; line-height: 1.3; }
#kke-popup-message { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }
#kke-popup .kke-popup-actions { display: flex; flex: none; gap: 12px; padding: 16px 24px; background: #f2dce5; }
#kke-popup .kke-popup-actions > * { box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 48px; padding: 10px 12px; border: 2px solid #570a29; border-radius: 8px; background: #570a29; color: #fff; font: inherit; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
#kke-popup .kke-popup-actions button { background: #fff; color: #570a29; }
#kke-popup .kke-popup-actions > *:focus-visible { outline: 3px solid #570a29; outline-offset: 3px; }
@media (max-width: 380px) {
    #kke-popup h2 { padding: 18px 16px 12px; font-size: 21px; }
    #kke-popup-message { padding: 0 16px 18px; }
    #kke-popup .kke-popup-actions { padding: 12px; gap: 8px; }
}
