/* PA ethics selector viewport layer: keep the chooser out of table/cell layout on every device. */
body.pa-standalone:has(.paeth-core-menu.open){overflow:hidden!important}
body.pa-standalone:has(.paeth-core-menu.open)::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:2147483000;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
body.pa-standalone .paeth-core-menu.open{display:flex!important;position:fixed!important;left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(720px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;height:min(720px,calc(100dvh - 64px))!important;max-height:calc(100dvh - 64px)!important;margin:0!important;border:1px solid #cbd5e1!important;border-radius:20px!important;background:#fff!important;box-shadow:0 28px 80px rgba(15,23,42,.38)!important;overflow:hidden!important;z-index:2147483001!important;isolation:isolate!important;contain:layout paint!important}
body.pa-standalone .paeth-core-menu.open .paeth8-head{position:relative!important;flex:0 0 auto!important;padding:16px 72px 12px 18px!important;background:#fff!important;border-bottom:1px solid #e2e8f0!important;z-index:3!important}
body.pa-standalone .paeth-core-menu.open .paeth8-head strong{font-size:18px!important;line-height:1.35!important}
body.pa-standalone .paeth-core-menu.open .paeth8-head span{font-size:13px!important;line-height:1.4!important;margin-top:3px!important}
body.pa-standalone .paeth-core-menu.open .paeth8-autoclose{position:absolute!important;right:14px!important;top:12px!important;width:42px!important;height:42px!important;border:0!important;border-radius:999px!important;background:#dc2626!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font:900 29px/1 system-ui,-apple-system,"Noto Sans Thai",sans-serif!important;box-shadow:0 6px 18px rgba(220,38,38,.28)!important;z-index:5!important}
body.pa-standalone .paeth-core-menu.open .paeth8-options{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 12px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;background:#fff!important}
body.pa-standalone .paeth-core-menu.open .paeth8-options label{display:grid!important;grid-template-columns:30px 36px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;padding:12px 10px!important;border-radius:12px!important}
body.pa-standalone .paeth-core-menu.open .paeth8-options input{width:20px!important;height:20px!important;margin:4px 0 0!important}
body.pa-standalone .paeth-core-menu.open .paeth8-options b{width:32px!important;height:32px!important;border-radius:9px!important;font-size:12px!important}
body.pa-standalone .paeth-core-menu.open .paeth8-options span{font-size:14px!important;line-height:1.55!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.pa-standalone .paeth-core-menu.open .paeth8-actions{position:relative!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:58px!important;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #e2e8f0!important;background:#fff!important;z-index:3!important}
body.pa-standalone .paeth-core-menu.open .paeth8-actions button{min-height:40px!important;padding:0 14px!important}
body.pa-standalone .paeth-core-menu.open .paeth8-actions span{font-size:13px!important;line-height:1.35!important;min-width:0!important;overflow-wrap:anywhere!important}
body.pa-standalone .paeth-core-menu.open .paeth-core-error{flex:0 0 auto!important;background:#fff!important;padding:0 14px 10px!important}
@media (max-width:1024px),(pointer:coarse),(hover:none){
 body.pa-standalone .paeth-core-menu.open{left:50%!important;top:auto!important;bottom:0!important;transform:translateX(-50%)!important;width:min(760px,100vw)!important;max-width:100vw!important;height:min(86dvh,760px)!important;max-height:min(86dvh,760px)!important;border-radius:22px 22px 0 0!important;border-bottom:0!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head{padding:15px 68px 11px 16px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head strong{font-size:17px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options{padding:8px 10px 12px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options label{grid-template-columns:28px 34px minmax(0,1fr)!important;gap:8px!important;padding:11px 9px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options input{width:21px!important;height:21px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options span{font-size:14px!important}
}
@media (max-width:600px){
 body.pa-standalone .paeth-core-menu.open{width:100vw!important;height:min(90dvh,780px)!important;max-height:min(90dvh,780px)!important;border-radius:18px 18px 0 0!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head{padding:14px 64px 10px 14px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head strong{font-size:16px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head span{font-size:12px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-autoclose{right:12px!important;top:10px!important;width:40px!important;height:40px!important;font-size:28px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options{padding:7px 8px 10px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options label{grid-template-columns:26px 32px minmax(0,1fr)!important;gap:7px!important;padding:10px 7px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options b{width:30px!important;height:30px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options span{font-size:13px!important;line-height:1.5!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-actions{gap:6px!important;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;flex-wrap:wrap!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-actions span{font-size:12px!important;flex:1 1 180px!important}
}
@media (max-height:560px) and (orientation:landscape){
 body.pa-standalone .paeth-core-menu.open{top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(760px,calc(100vw - 24px))!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:16px!important;border:1px solid #cbd5e1!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-head{padding-top:10px!important;padding-bottom:8px!important}
 body.pa-standalone .paeth-core-menu.open .paeth8-options label{padding-top:8px!important;padding-bottom:8px!important}
}
