/* fengling: template-owned dialog details. Keep its native body, palette and actions. */
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close) {
  align-items:center;justify-content:center;flex-shrink:0;text-align:center;vertical-align:middle;
  box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;
  padding:0!important;border:0!important;border-radius:0!important;text-decoration:none!important;
  background:transparent!important;box-shadow:none!important;
  color:var(--dialog-close-color,inherit)!important;font-size:24px;line-height:1;font-weight:400;cursor:pointer;
  opacity:.72;transition:opacity .15s;
}
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close):hover {opacity:1;background:transparent!important;box-shadow:none!important}
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close):focus {outline:none}
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close):focus-visible {opacity:1;outline:none!important;text-decoration:none!important;font-weight:700;filter:none}
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close) svg {width:20px;height:20px;flex:none}
body.theme-fengling #storePaymentDialog .sp-header {padding:8px 18px;gap:10px}
body.theme-fengling #storePaymentDialog .sp-channel {gap:10px}
body.theme-fengling #storePaymentDialog #sp-title {font-size:17px;line-height:1.4}
body.theme-fengling #rechargeModal [role="dialog"]>div:first-child {padding:8px 18px!important;gap:10px}
body.theme-fengling .hc-drawer-heading {padding-top:8px;padding-bottom:8px}
body.theme-fengling .default-notice-heading {padding:8px 18px;min-height:52px;gap:10px;align-items:center}
body.theme-fengling .default-notice-heading h2 {margin-top:0;margin-bottom:0;font-size:17px;line-height:1.5}
body.theme-fengling .wind-dialog .wind-section-heading {padding:8px 18px;min-height:52px;gap:10px;align-items:center}
body.theme-fengling .wind-dialog .wind-section-heading h2 {margin-top:0;margin-bottom:0;font-size:17px;line-height:1.5}
body.theme-fengling :is(.default-notice-heading,.bulletin-dialog-heading,.hyper-notice-heading,.oliva-notice-head) small,
body.theme-fengling .tokyo-notice-kicker {display:none}
body.theme-fengling :is(.bulletin-dialog-heading,.hyper-notice-heading) {align-items:center}
body.theme-fengling .bulletin-dialog-heading>.bulletin-icon {width:20px;height:20px;padding:0;background:transparent}
body.fengling-native .mu-dialog-title{padding:12px 24px;font-size:18px;line-height:1.5}
@media(max-width:640px){
body.theme-fengling :is(button[aria-label^="关闭"]:not([class*="backdrop"]):not([class*="shade"]), .sp-close){width:40px;height:40px;min-width:40px;min-height:40px}
body.theme-fengling .default-notice-heading {padding:6px 14px}
body.theme-fengling .wind-dialog .wind-section-heading {padding:6px 14px}
body.theme-fengling #storePaymentDialog .sp-header {padding:6px 14px}
}
body.theme-fengling :is([data-global-popup-box],[data-global-popup]):focus {outline:none}
body.theme-fengling button[aria-label^="关闭"]:focus-visible svg {border:0!important;text-decoration:none!important;stroke-width:3px}

/* Bounded announcement images and a template-owned image reader. */
:is(.announcement,.catalog-bulletin,.shop-bulletin,.hyper-bulletin,.notice-ticker,.default-notice-body,.notice-content,.notice-body,.notice-reading-body,.notice-reader-body,.bulletin-dialog-body,.hyper-notice-body,.oliva-notice-body,.dream-sidebar-notice,.wind-notice-content,.notice-article-body) img,
img:is(.notice-thumbnail,.notice-illustration,.notice-ticker-thumbnail,.notice-reader-image),img[data-notice-image]{box-sizing:border-box;display:inline-block!important;flex:none!important;width:72px!important;height:52px!important;max-width:100%!important;max-height:52px!important;margin:3px 5px 3px 0!important;object-fit:contain!important;vertical-align:middle;border-radius:6px;cursor:zoom-in}
img[data-notice-image]:focus-visible{outline:2px solid var(--c1,#4a6ee0);outline-offset:2px}
:is(.hyper-bulletin,.notice-ticker,[data-notice-scroll],.default-notice-trigger,.oliva-notice-mobile-trigger,.bulletin-snippet) img{width:36px!important;height:28px!important;max-height:28px!important;margin:0 4px!important}
.notice-inline-thumbnail{vertical-align:middle}
body :is(.default-notice-content,.bulletin-body,.acrylic-notice-body,.oliva-bulletin-preview,.bulletin-extra>p,.shop-info .wind-notice-content){height:auto!important;max-height:128px!important;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
body .notice-reader-frame{box-sizing:border-box;height:min(480px,74dvh)!important;max-height:min(480px,74dvh)!important;min-height:0!important;overflow:hidden!important;flex-direction:column}
body .notice-reader-frame:not(dialog),body dialog.notice-reader-frame[open]{display:flex}
body .notice-reader-frame>[data-notice-reader],body .notice-reader-frame [data-notice-reader]{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
body .notice-reader-frame>:not([data-notice-reader]){flex-shrink:0}
body .notice-image-viewer{box-sizing:border-box;position:fixed;inset:0;z-index:2147483647;width:min(920px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(680px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--border,#e2e6ee);border-radius:var(--R,14px);background:var(--card,#fff);color:var(--text,#243247);box-shadow:0 20px 80px #12223b40;font-family:inherit;font-size:14px;line-height:1.5}
body .notice-image-viewer:not([open]){display:none}
body .notice-image-viewer[open]{display:flex;flex-direction:column}
.notice-image-viewer::backdrop{background:#111827a3}
body .notice-image-heading{display:flex;align-items:center;gap:12px;flex:none;height:48px;min-height:48px;padding:0 10px 0 16px;border-bottom:1px solid var(--border,#e2e6ee);font-size:14px;font-weight:500}
body .notice-image-zoom{margin-left:auto;padding:5px 10px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
body .notice-image-close,body .notice-image-close:hover{display:grid;place-items:center;flex:none;width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit;font:28px/1 sans-serif;cursor:pointer}
body .notice-image-viewer button:focus-visible{outline:2px solid var(--c1,currentColor)!important;outline-offset:-2px}
body .notice-image-stage{position:relative;display:grid;place-items:center;flex:1;min-width:0;min-height:0;overflow:auto;padding:12px;overscroll-behavior:contain;background:#80808008}
body .notice-image-stage>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;cursor:zoom-in;border:0;border-radius:0;margin:0}
body .notice-image-stage>img[hidden]{display:none}
body .notice-image-stage.is-original{display:block}
body .notice-image-stage.is-original>img{width:auto;height:auto;max-width:none;max-height:none;cursor:zoom-out}
body .notice-image-status{position:absolute;inset:50% 12px auto;margin:0;text-align:center;font-size:13px;color:inherit}
body .notice-image-status:empty{display:none}
@media(max-width:767px){body :is(.default-notice-content,.bulletin-body,.acrylic-notice-body,.oliva-bulletin-preview,.bulletin-extra>p,.shop-info .wind-notice-content){max-height:112px!important}body .notice-image-stage{padding:8px}}

body .dream-sidebar-notice{max-height:160px;overflow:auto;overscroll-behavior:contain}body .bulletin-extra[open]{max-height:160px;overflow:auto;overscroll-behavior:contain}
