/* Shared FLTbet dialog skin. Keep the existing dialog handlers and form fields. */
html.fl-dialog-theme{--fl-dialog-bg:#202228;--fl-dialog-panel:#181a20;--fl-dialog-line:#343741;--fl-dialog-text:#eef1f7;--fl-dialog-muted:#a4adbc;--fl-dialog-blue:#1685ff}
html.fl-dialog-theme .fl-dialog-shell{position:fixed!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:440px!important;max-width:calc(100vw - 32px)!important;margin:0!important;box-sizing:border-box;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--fl-dialog-text);color-scheme:dark;background:var(--fl-dialog-bg)!important;border:0!important;border-radius:18px;overflow:hidden;box-shadow:0 24px 80px #0008!important}
/* artDialog 4.1.7 primes its reusable wrapper at left:-9999em on window load.
   Preserve that internal offscreen state; the centered skin must not expose it.
   Matching the inline sentinel also handles wrappers reused for a real dialog. */
html.fl-dialog-theme .fl-dialog-shell[style*="-9999em"]{position:absolute!important;left:-9999em!important;top:0!important;transform:none!important;visibility:hidden!important;pointer-events:none!important}
html.fl-dialog-theme .fl-dialog-shell *{box-sizing:border-box}
/* Clip every backing layer at the outer radius, overriding .aui_state_lock's
   legacy white rectangle and .aui_state_focus's white table glow. */
html.fl-dialog-theme .fl-dialog-shell .aui_outer,html.fl-dialog-theme .fl-dialog-shell .aui_inner{width:100%!important;max-width:none!important;max-height:none!important;border:0!important;background:var(--fl-dialog-bg)!important;border-radius:18px;overflow:hidden;box-shadow:none!important}
html.fl-dialog-theme .fl-dialog-shell table.aui_border,html.fl-dialog-theme .fl-dialog-shell table.aui_dialog{width:100%!important;margin:0!important;border:0!important;border-collapse:collapse;table-layout:auto;background:transparent!important;box-shadow:none!important}
html.fl-dialog-theme .fl-dialog-shell .aui_nw,html.fl-dialog-theme .fl-dialog-shell .aui_n,html.fl-dialog-theme .fl-dialog-shell .aui_ne,html.fl-dialog-theme .fl-dialog-shell .aui_w,html.fl-dialog-theme .fl-dialog-shell .aui_e,html.fl-dialog-theme .fl-dialog-shell .aui_sw,html.fl-dialog-theme .fl-dialog-shell .aui_s,html.fl-dialog-theme .fl-dialog-shell .aui_se{display:none!important}
html.fl-dialog-theme .fl-dialog-shell .aui_c,html.fl-dialog-theme .fl-dialog-shell .aui_header,html.fl-dialog-theme .fl-dialog-shell .aui_main,html.fl-dialog-theme .fl-dialog-shell .aui_footer{padding:0!important;border:0!important;background:transparent!important}
html.fl-dialog-theme .fl-dialog-shell .aui_titleBar{height:auto!important;min-height:60px;background:transparent!important;color:var(--fl-dialog-text)!important;border-bottom:1px solid var(--fl-dialog-line)}
html.fl-dialog-theme .fl-dialog-shell .aui_title{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;height:auto!important;min-height:60px;line-height:1.5!important;padding:17px 60px 17px 22px!important;background:transparent!important;color:var(--fl-dialog-text)!important;font-size:17px!important;font-weight:650;white-space:normal;overflow:visible;text-shadow:none!important;word-break:normal}
html.fl-dialog-theme .fl-dialog-shell .aui_title>span{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0!important;color:var(--fl-dialog-muted);font-size:12px;font-weight:400;line-height:1.5}
html.fl-dialog-theme .fl-dialog-shell .aui_title img{width:15px!important;height:15px!important;object-fit:contain;opacity:.8}
html.fl-dialog-theme .fl-dialog-shell .gametimes{color:#72b5ff!important;font-size:13px!important;font-variant-numeric:tabular-nums;letter-spacing:.6px}
html.fl-dialog-theme .fl-dialog-shell .aui_close{position:absolute!important;top:13px!important;right:14px!important;display:flex;align-items:center;justify-content:center;width:34px!important;height:34px!important;line-height:1!important;padding:0!important;border:0;border-radius:50%;background:#ffffff09!important;color:#b7bfcd!important;text-decoration:none;font:24px/1 Arial,sans-serif;text-shadow:none!important}
html.fl-dialog-theme .fl-dialog-shell .aui_close:hover{background:#ffffff16!important;color:#fff!important}
html.fl-dialog-theme .fl-dialog-shell .aui_main{width:100%!important;height:auto!important;min-width:0!important;text-align:left!important;vertical-align:middle!important}
html.fl-dialog-theme .fl-dialog-shell .aui_content{display:block!important;width:auto!important;height:auto!important;min-height:0!important;max-height:calc(100vh - 220px)!important;max-height:calc(100dvh - 220px)!important;padding:22px!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;word-break:normal!important;overflow-wrap:anywhere;text-align:left!important;color:var(--fl-dialog-text)!important;font:14px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important;scrollbar-width:thin;scrollbar-color:#4a5160 transparent}
html.fl-dialog-theme .fl-dialog-shell .aui_content p{margin:0 0 10px;line-height:1.75;color:inherit}
html.fl-dialog-theme .fl-dialog-shell .aui_content p:last-child{margin-bottom:0}
html.fl-dialog-theme .fl-dialog-shell .aui_icon{width:66px!important;vertical-align:middle!important;padding:18px 0 18px 22px!important}
html.fl-dialog-theme .fl-dialog-shell .aui_iconBg{width:38px!important;height:38px!important;margin:0!important;background-size:contain;background-repeat:no-repeat;background-position:center}
html.fl-dialog-theme .fl-dialog-success .aui_iconBg,html.fl-dialog-theme .fl-dialog-warning .aui_iconBg{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#183d32!important;color:#61d7a1;border:1px solid #357259;font:bold 23px/1 Arial,sans-serif}
html.fl-dialog-theme .fl-dialog-success .aui_iconBg:before{content:"\2713"}
html.fl-dialog-theme .fl-dialog-warning .aui_iconBg{background:#42331e!important;color:#ffc171;border-color:#735632}
html.fl-dialog-theme .fl-dialog-warning .aui_iconBg:before{content:"!"}
html.fl-dialog-theme .fl-dialog-shell .aui_buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:16px 22px calc(16px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid var(--fl-dialog-line)!important;background:transparent!important;white-space:normal!important}
html.fl-dialog-theme .fl-dialog-shell .aui_buttons button{flex:1;min-width:0;min-height:44px;margin:0!important;padding:10px 18px!important;border:1px solid #414653!important;border-radius:10px!important;background:#2c303a!important;color:#cbd2df!important;font:500 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important;letter-spacing:0!important;text-shadow:none!important;box-shadow:none!important;cursor:pointer}
html.fl-dialog-theme .fl-dialog-shell .aui_buttons button.aui_state_highlight,html.fl-dialog-theme .fl-dialog-shell .aui_buttons button:only-child{background:var(--fl-dialog-blue)!important;border-color:var(--fl-dialog-blue)!important;color:#fff!important}
html.fl-dialog-theme .fl-dialog-shell .aui_buttons button:hover{filter:brightness(1.12)}
html.fl-dialog-theme .fl-dialog-shell .aui_buttons button:disabled{opacity:.45;cursor:not-allowed}
html.fl-dialog-theme .fl-dialog-shell a:focus-visible,html.fl-dialog-theme .fl-dialog-shell button:focus-visible{outline:2px solid #7dbbff!important;outline-offset:3px}
html.fl-dialog-theme .fl-dialog-shell.aui_state_noTitle .aui_titleBar{min-height:0;border:0}
html.fl-dialog-theme .fl-dialog-shell.aui_state_noTitle .aui_close{top:8px!important;right:8px!important}
html.fl-dialog-theme .fl-dialog-shell.fl-dialog-embedded{width:760px!important}
html.fl-dialog-theme .fl-dialog-shell.fl-dialog-embedded .aui_content{padding:0!important}
html.fl-dialog-theme .fl-dialog-shell iframe{max-width:100%;border:0}
/* Order confirmation uses the same markup on desktop and mobile. */
html.fl-dialog-theme .fl-dialog-shell .submitComfire{width:100%!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;color:inherit!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .ui-form{display:flex;flex-direction:column;gap:13px;width:100%!important;padding:0!important;margin:0!important;font-size:14px!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;list-style:none!important;line-height:1.7!important;border:0!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .ui-label{position:static!important;float:none!important;display:inline!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;color:var(--fl-dialog-muted)!important;font-size:13px!important;font-weight:400!important;text-align:left!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .ui-text-info{display:inline!important;margin:0!important;color:var(--fl-dialog-text)!important;font-size:14px!important;font-weight:500!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .textarea,html.fl-dialog-theme .fl-dialog-shell #Orderdetaillist{flex-basis:100%;width:100%!important;height:auto!important;min-height:64px!important;max-height:220px!important;margin:3px 0 0!important;padding:14px!important;overflow:auto!important;border:1px solid var(--fl-dialog-line)!important;border-radius:10px;background:var(--fl-dialog-panel)!important;color:#d8dfec!important;line-height:1.8!important;font-size:13px!important;white-space:normal;overflow-wrap:anywhere}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .mark,html.fl-dialog-theme .fl-dialog-shell #Orderdetailtotalprice{color:#72b5ff!important;font-variant-numeric:tabular-nums}
html.fl-dialog-theme .fl-dialog-shell #Orderdetailtotalprice{font-size:21px!important;font-weight:650!important}
html.fl-dialog-theme .fl-dialog-shell .submitComfire .text-note:empty{display:none!important}
/* Layer alerts and confirmations, including the administration panel. */
html.fl-dialog-theme .layui-layer{border-radius:16px!important;overflow:hidden;box-shadow:0 24px 80px #0007,0 0 0 1px #ffffff14!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important}
html.fl-dialog-theme .layui-layer-dialog,html.fl-dialog-theme .layui-layer-msg{max-width:calc(100vw - 32px)!important;background:var(--fl-dialog-bg)!important;color:var(--fl-dialog-text)!important}
html.fl-dialog-theme .layui-layer-title{height:auto!important;min-height:56px;padding:16px 60px 16px 22px!important;border-bottom:1px solid var(--fl-dialog-line)!important;background:var(--fl-dialog-bg)!important;color:var(--fl-dialog-text)!important;line-height:24px!important;font-size:16px!important}
html.fl-dialog-theme .layui-layer-dialog .layui-layer-content{height:auto!important;max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px);overflow:auto!important;padding:22px!important;font-size:14px;line-height:1.75;overflow-wrap:anywhere;color:var(--fl-dialog-text)!important}
html.fl-dialog-theme .layui-layer-dialog .layui-layer-padding{padding-left:65px!important}
html.fl-dialog-theme .layui-layer-dialog .layui-layer-ico{top:24px!important;left:22px!important}
html.fl-dialog-theme .layui-layer-btn{display:flex;flex-wrap:wrap;gap:12px;padding:16px 22px!important;background:var(--fl-dialog-bg)!important;border-top:1px solid var(--fl-dialog-line)}
html.fl-dialog-theme .layui-layer-btn a{flex:1;min-width:0;height:auto!important;min-height:42px;margin:0!important;padding:10px 18px!important;border:1px solid #414653!important;border-radius:10px!important;background:#2c303a!important;color:#cbd2df!important;font-size:14px!important;line-height:1.5!important;text-align:center;font-weight:500}
html.fl-dialog-theme .layui-layer-btn a.layui-layer-btn0{background:var(--fl-dialog-blue)!important;border-color:var(--fl-dialog-blue)!important;color:#fff!important}
html.fl-dialog-theme .layui-layer-setwin{top:20px!important;right:20px!important;display:flex!important;align-items:center;line-height:1!important}
html.fl-dialog-theme .layui-layer-setwin a{display:block!important}
html.fl-dialog-theme .layui-layer-close{filter:brightness(0) invert(.85)}
/* SUI/Amaze UI mobile message windows; action sheets remain separate. */
html.fl-ui.fl-dialog-theme .modal-inner,html.fl-ui.fl-dialog-theme .am-modal-dialog{background:var(--fl-dialog-bg)!important;color:var(--fl-dialog-text)!important;border-radius:16px 16px 0 0}
html.fl-ui.fl-dialog-theme .modal-title,html.fl-ui.fl-dialog-theme .am-modal-hd{color:var(--fl-dialog-text)!important;font-size:17px}
html.fl-ui.fl-dialog-theme .modal-text,html.fl-ui.fl-dialog-theme .am-modal-bd{color:#c7cfdd!important;overflow-wrap:anywhere;max-height:60vh;overflow:auto;border-color:var(--fl-dialog-line)!important}
html.fl-ui.fl-dialog-theme .modal-button,html.fl-ui.fl-dialog-theme .am-modal-btn{background:#2b303a!important;color:#79b9ff!important;border-color:var(--fl-dialog-line)!important;min-height:44px}
@media(max-width:480px){
  html.fl-dialog-theme .fl-dialog-shell{max-width:calc(100vw - 24px)!important;font-size:14px}
  html.fl-dialog-theme .fl-dialog-shell .aui_title{padding-left:18px!important;padding-right:58px!important;font-size:16px!important;gap:5px 10px}
  html.fl-dialog-theme .fl-dialog-shell .aui_title>span{font-size:11px}
  html.fl-dialog-theme .fl-dialog-shell .aui_content{padding:18px!important;max-height:calc(100vh - 206px)!important;max-height:calc(100dvh - 206px)!important}
  html.fl-dialog-theme .fl-dialog-shell .aui_buttons{padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px))!important;gap:10px}
  html.fl-dialog-theme .fl-dialog-shell .submitComfire .ui-form{gap:12px}
  html.fl-dialog-theme .fl-dialog-shell .aui_icon{padding-left:18px!important;width:58px!important}
}
@media(max-height:460px){html.fl-dialog-theme .fl-dialog-shell .aui_content{max-height:calc(100vh - 165px)!important;max-height:calc(100dvh - 165px)!important}html.fl-dialog-theme .fl-dialog-shell .aui_title{min-height:48px;padding-top:12px!important;padding-bottom:12px!important}html.fl-dialog-theme .fl-dialog-shell .aui_buttons{padding-top:10px!important;padding-bottom:10px!important}}
