/* BG App Menu 1.0.9 – responsive navigation; prevent squeezed desktop links */
.bgam,.bgam *,.bgam-actions,.bgam-actions *{box-sizing:border-box}
.bgam{font-family:inherit;position:relative;z-index:1000;color:#172b27;margin:0 0 12px;width:100%;max-width:100%;min-width:0;display:block;isolation:isolate}
.bgam-head{display:flex;align-items:center;gap:clamp(12px,2vw,28px);padding:12px clamp(12px,2vw,24px);background:#fff;border-bottom:1px solid #e9efed;min-height:104px;width:100%;min-width:0}
.bgam-brand{display:flex;align-items:center;flex:0 1 auto;min-width:0;max-width:var(--bgam-logo-width,360px);text-decoration:none}
.bgam-brand img{display:block;width:var(--bgam-logo-width,360px);height:auto;max-width:100%;max-height:var(--bgam-logo-height,110px);object-fit:contain}
.bgam-brand-text{display:flex;flex-direction:column;text-decoration:none;color:var(--bgam-color);min-width:0}
.bgam-brand-text small{font-size:12px;color:#75827e}
.bgam-desktop{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:1 1 auto;min-width:0;flex-wrap:nowrap}
.bgam-link{display:flex;align-items:center;gap:7px;text-decoration:none!important;color:#243d37!important;padding:10px 9px;border-radius:12px;font-size:clamp(12px,1vw,15px);font-weight:600;white-space:nowrap;transition:.15s}
.bgam-link:hover{background:color-mix(in srgb,var(--bgam-color) 12%,white);color:var(--bgam-color)!important}
.bgam-icon{color:var(--bgam-color);font-size:18px}
.bgam-toggle{display:none;border:0;background:var(--bgam-color);color:#fff;border-radius:14px;padding:10px 14px;font-size:23px;min-width:52px;min-height:52px;cursor:pointer}
.bgam-panel{display:none;position:fixed;left:50%;top:105px;transform:translateX(-50%);width:min(920px,calc(100vw - 28px));max-width:none;z-index:100010;background:#fff;padding:20px;border:1px solid #e5eeeb;border-radius:24px;box-shadow:0 18px 48px rgba(0,0,0,.22);overflow-y:auto;max-height:calc(100vh - 130px);overscroll-behavior:contain}
.bgam-panel.is-open{display:block}
.bgam-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #edf1f0}
.bgam-panel-title{font-size:18px;font-weight:700;color:#173b34}
.bgam-panel-close{border:0;border-radius:12px;background:var(--bgam-color);color:white;width:44px;height:44px;font-size:24px;flex:0 0 44px;cursor:pointer}
.bgam-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bgam-tile{display:flex;align-items:center;gap:12px;border:1px solid #e5eeeb;border-radius:18px;padding:16px;text-decoration:none!important;color:#233b35!important;background:#fff;font-weight:600;min-width:0;overflow-wrap:anywhere}
.bgam-tile:hover{border-color:var(--bgam-color);background:#f5faf9}
.bgam-tile-icon{font-size:26px;color:var(--bgam-color)}
.bgam-actions{display:none}
/* Mid-sized screens: avoid compressing a long list of links into microscopic text. */
@media(max-width:1200px){
 .bgam-head{gap:14px}
 .bgam-desktop{display:none!important}
 .bgam-toggle{display:block;flex:0 0 54px;margin-left:auto}
 .bgam-brand{flex:1 1 auto;max-width:min(var(--bgam-logo-width,360px),75%)}
}
@media(max-width:767px){
 .bgam{margin:0 0 10px}
 .bgam-head{display:flex;width:100%;padding:12px 14px;min-height:116px;gap:12px;align-items:center}
 .bgam-brand{flex:1 1 auto;max-width:none;min-width:0;justify-content:flex-start}
 .bgam-brand img{width:var(--bgam-logo-width,360px);max-width:min(78vw,var(--bgam-logo-width,360px));max-height:min(var(--bgam-logo-height,110px),180px)}
 .bgam-panel{left:12px;right:12px;top:12px;bottom:calc(78px + env(safe-area-inset-bottom));transform:none;width:auto;max-height:none;padding:18px;border-radius:24px}
 .bgam-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .bgam-tile{min-height:116px;padding:16px 12px;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;font-size:15px;line-height:1.35}
 .bgam-tile-icon{font-size:32px;line-height:1}
 .bgam-actions{position:fixed;left:0;right:0;bottom:0;z-index:100005;display:flex;gap:10px;justify-content:center;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e5eae8;box-shadow:0 -4px 14px rgba(0,0,0,.06);width:100%;max-width:100vw}
 .bgam-action-call,.bgam-action-app{display:flex;flex:1;min-width:0;max-width:520px;align-items:center;justify-content:center;gap:10px;padding:13px 14px;border-radius:999px;text-decoration:none!important;color:#fff!important;font-weight:800;font-size:16px;line-height:1.2;box-shadow:0 3px 9px rgba(0,0,0,.16);overflow-wrap:anywhere}
 .bgam-action-call{background:#e11924}.bgam-action-app{background:#0875e8}.bgam-action-icon{font-size:22px;line-height:1}
 body.bgam-has-actions{padding-bottom:86px!important}
}
@media(max-width:390px){.bgam-head{min-height:105px;padding:10px 12px}.bgam-tile{min-height:105px;padding:14px 9px;font-size:14px}}

@media(min-width:768px){.bgam-actions{max-width:720px;left:50%;right:auto;transform:translateX(-50%);border-radius:20px 20px 0 0}.bgam-action-call,.bgam-action-app{font-size:15px}}

/* 1.1.1: Zalo action button */
@media(max-width:767px){.bgam-action-zalo{display:flex;flex:1;min-width:0;max-width:520px;align-items:center;justify-content:center;gap:10px;padding:13px 14px;border-radius:999px;text-decoration:none!important;color:#fff!important;background:#0879c9;font-weight:800;font-size:16px;line-height:1.2;box-shadow:0 3px 9px rgba(0,0,0,.16);overflow-wrap:anywhere}.bgam-action-zalo .bgam-action-icon{font-size:22px;line-height:1}}
@media(min-width:768px){.bgam-action-zalo{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:10px;padding:13px 14px;border-radius:999px;text-decoration:none!important;color:#fff!important;background:#0879c9;font-weight:800;font-size:15px}}
