/* Current-site mobile actions: compact header, equal dock cells, deliberate text padding. */
body[data-thaipay-design="2"] .tp-header-inner{gap:24px}
body[data-thaipay-design="2"] .tp-nav{flex:1;min-width:0;justify-content:center;gap:24px;font-size:14px}
body[data-thaipay-design="2"] .tp-nav a.tp-nav-sabai{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;align-self:center;
 min-height:0;padding:10px 14px;gap:2px;line-height:1.3;font-weight:650;
 color:var(--accent);background:var(--light);border:1px solid var(--line);border-radius:12px;
 text-decoration:none;white-space:nowrap;
}
body[data-thaipay-design="2"] .tp-nav-sabai-note{font-size:12px;font-weight:500}
body[data-thaipay-design="2"] .tp-nav a.tp-nav-sabai:hover{border-color:var(--accent)}
body[data-thaipay-design="2"] .tp-nav a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(min-width:901px) and (max-width:1100px){
 body[data-thaipay-design="2"] .tp-header-inner{width:calc(100% - 48px);gap:16px}
 body[data-thaipay-design="2"] .tp-nav{gap:12px;font-size:13px}
 body[data-thaipay-design="2"] .tp-nav a{white-space:normal;min-width:0;text-align:center}
 body[data-thaipay-design="2"] .tp-nav a[href="/agents/"]{flex-shrink:0}
 body[data-thaipay-design="2"] .tp-nav a.tp-nav-sabai{padding:9px 10px;flex-shrink:0}
}
@media(max-width:900px){
 body[data-thaipay-design="2"] .tp-header-inner{width:calc(100% - 32px);padding-top:16px;padding-bottom:12px;gap:0}
 body[data-thaipay-design="2"] .tp-nav{
  flex:0 0 100%;width:100%;order:3;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,.65fr);
  gap:6px;min-height:58px;margin-top:12px;font-size:13px;align-items:stretch;
 }
 body[data-thaipay-design="2"] .tp-nav a{min-height:58px;justify-content:center;text-align:center;padding-inline:3px;line-height:1.25}
 body[data-thaipay-design="2"] .tp-nav a.tp-nav-sabai{align-items:center;align-self:stretch;padding:8px 4px;font-size:12px;min-height:58px;box-sizing:border-box}
 body[data-thaipay-design="2"] .tp-nav-sabai-note{font-size:11px}
 body[data-thaipay-design="2"] .tp-nav a.tp-nav-compare{display:none}
 body[data-thaipay-design="2"] .tp-nav a[aria-current="page"]:after{bottom:2px}
 body[data-thaipay-design="2"][data-page] .tp-contact{
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
  height:44px;min-height:44px;padding:0 12px;gap:7px;
  font-size:14px;line-height:1;font-weight:650;letter-spacing:0;white-space:nowrap;
  /* Override the older shared pill rule, whose :is() contains an ID selector. */
  border-radius:12px!important;
 }
 body[data-thaipay-design="2"][data-page] .tp-contact svg{width:16px;height:16px;flex:0 0 16px}
}
@media(max-width:680px){
 body[data-thaipay-design="2"][data-page] .mobile-dock{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  padding:10px 16px max(10px,env(safe-area-inset-bottom));
 }
 body[data-thaipay-design="2"][data-page] .mobile-dock a{
  display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;
  height:48px;min-height:48px;padding:0 12px;text-align:center;
  font-size:14px;line-height:1.2;font-weight:650;letter-spacing:0;
  border-radius:12px!important;
 }
 body[data-thaipay-design="2"][data-page="customer"] .mobile-dock a{white-space:nowrap}
 body[data-thaipay-design="2"][data-page="customer"] .mobile-dock a:first-child{
  background:var(--accent)!important;color:#fff!important;
 }
}
@media(max-width:360px){
 body[data-thaipay-design="2"] .tp-nav{grid-template-columns:minmax(0,1.05fr) minmax(0,1.8fr) minmax(0,.65fr);font-size:12px}
 body[data-thaipay-design="2"] .tp-nav a{padding-inline:0}
}
