body dialog.bk-notice {
    --bk-nav-height: 0px;
    --bk-extra-height: 0px;
    --bk-panel-height: max(1px, calc(100vh - 26px - 49px - var(--bk-nav-height)));
    --bk-panel-height: max(1px, calc(100dvh - 26px - 49px - var(--bk-nav-height)));
    --bk-dialog-width: 480px;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    box-sizing: border-box;
    width: min(var(--bk-dialog-width), calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #e2ddd4;
    border-radius: 16px;
    background: #fff;
    color: #202823;
    box-shadow: 0 22px 56px #17211e35;
    font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
}

body dialog.bk-notice.bk-notice-multi { --bk-nav-height: 49px; }
body dialog.bk-notice.bk-notice-with-more { --bk-extra-height: 40px; }
body dialog.bk-notice.bk-notice-fit {
    --bk-image-display-width: max(1px, min(var(--bk-image-limit), calc((var(--bk-panel-height) - var(--bk-extra-height)) * var(--bk-image-ratio)), calc(100vw - 26px)));
    --bk-dialog-width: max(212px, calc(var(--bk-image-display-width) + 2px));
}

.bk-notice::backdrop { background: #15211f66; }
.bk-notice [hidden] { display: none !important; }
.bk-notice .bk-notice-frame { display: block; }
.bk-notice .bk-notice-nav,
.bk-notice .bk-notice-footer {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 2px 14px;
    background: #fff;
    color: #202823;
}
.bk-notice .bk-notice-content {
    background: #f5f3ee;
}
.bk-notice .bk-notice-panel {
    box-sizing: border-box;
    max-height: var(--bk-panel-height);
    padding: 12px;
    overflow: auto;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
}
.bk-notice .bk-notice-panel img { max-width: 100%; height: auto; }
.bk-notice .bk-notice-image {
    box-sizing: border-box;
    padding: 0;
    text-align: center;
    line-height: 0;
}
.bk-notice .bk-notice-image :is(p, div, span, a):not(.bk-notice-more) {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bk-notice .bk-notice-image br { display: none; }
.bk-notice .bk-notice-image img {
    display: block;
    width: var(--bk-image-display-width, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}
.bk-notice .bk-notice-more {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    color: #263b31;
    text-decoration: underline;
}
.bk-notice .bk-notice-image .bk-notice-more {
    box-sizing: border-box;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    line-height: 40px;
}
.bk-notice [data-bk-close] { margin-left: auto; }
.bk-notice .bk-notice-nav { border-bottom: 1px solid #eeeae3; }
.bk-notice .bk-notice-footer { border-top: 1px solid #eeeae3; }
.bk-notice .bk-notice-count { color: #4b554d; font-variant-numeric: tabular-nums; }
.bk-notice button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #263b31;
    font: inherit;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}
.bk-notice button span { font-size: 21px; line-height: 1; }
.bk-notice button:hover { background: #f0f3ee; }
.bk-notice :focus-visible { outline: 2px solid #517a61; outline-offset: -2px; }

body dialog.bk-notice:focus { outline: none; }
.bk-notice [data-bk-close]:focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
