/* App-like navigation and touch layout for phones. Desktop keeps the full weo layout. */
.app-bottom-nav,.customer-app-nav{display:none}
.app-more-dialog{width:min(460px,calc(100% - 28px));max-height:min(78dvh,680px);padding:18px;border:1px solid #b68b59;border-radius:22px;background:#ead1ad;color:#302319;box-shadow:0 24px 80px #1d120d70}
.app-more-dialog::backdrop{background:#24180fcc;backdrop-filter:blur(3px)}
.app-more-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.app-more-heading h2{margin:4px 0 0;font-size:25px;color:#302319}
.app-more-close{width:42px;height:42px;border:1px solid #b68b59;border-radius:50%;background:#fff4df;color:#3e281d;font-size:25px}
.app-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-more-grid button{min-height:94px;display:grid;place-content:center;gap:8px;padding:12px 6px;border:1px solid #b68b59;border-radius:15px;background:#f4e3c7;color:#302319;text-align:center}
.app-more-grid button>span{font-size:24px;color:#435b3e}
.app-more-grid button>b{font-size:12px;line-height:1.25}
.admin-install-trigger{min-height:36px!important;padding:6px 10px!important;border:1px solid #d1ad6f!important;border-radius:20px!important;background:#435b3e!important;color:#fff4df!important;font-size:11px!important;font-weight:700!important}
@media(max-width:760px){
  html{scroll-padding-top:72px;scroll-padding-bottom:82px}
  body:has(#admin-dashboard:not([hidden])){padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  body:has(#admin-dashboard:not([hidden])) .admin-topbar{position:sticky;top:0;z-index:80;min-height:54px;padding:6px 12px!important;display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
  body:has(#admin-dashboard:not([hidden])) .admin-brand{gap:8px;min-width:0}
  body:has(#admin-dashboard:not([hidden])) .admin-mark{width:34px;height:34px;flex:0 0 34px;font-size:16px}
  body:has(#admin-dashboard:not([hidden])) .admin-brand b{font-size:12px;letter-spacing:1px}
  body:has(#admin-dashboard:not([hidden])) .admin-brand small{font-size:8px}
  body:has(#admin-dashboard:not([hidden])) .admin-top-actions{margin-left:auto;gap:5px;white-space:nowrap;font-size:10px}
  body:has(#admin-dashboard:not([hidden])) .admin-top-actions>a{font-size:10px}
  body:has(#admin-dashboard:not([hidden])) #admin-user-name{max-width:60px;overflow:hidden;text-overflow:ellipsis}
  body:has(#admin-dashboard:not([hidden])) .admin-top-actions button{min-height:34px!important;padding:5px 8px!important;font-size:10px!important}
  body:has(#admin-dashboard:not([hidden])) .admin-shell{width:100%!important;max-width:none!important;margin:0!important;padding:12px 10px 22px!important}
  body:has(#admin-dashboard:not([hidden])) .admin-welcome{gap:8px;margin-bottom:9px;padding:0 2px}
  body:has(#admin-dashboard:not([hidden])) .admin-welcome h1{font-size:23px!important;line-height:1.15}
  body:has(#admin-dashboard:not([hidden])) .admin-welcome p{margin:4px 0 0;font-size:11px;line-height:1.35}
  body:has(#admin-dashboard:not([hidden])) #admin-refresh{min-height:35px!important;padding:6px 9px!important;font-size:10px!important}
  body:has(#admin-dashboard:not([hidden])) .admin-install-trigger{min-height:32px!important;padding:5px 8px!important}
  body:has(#admin-dashboard:not([hidden])) .admin-tabs{display:none!important}
  .app-bottom-nav{position:fixed;z-index:100;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #b68b59;background:#f4e3c7;box-shadow:0 -8px 24px #24180f24}
  .admin-app-nav[hidden]{display:none!important}
  .app-bottom-nav button,.customer-app-nav button{position:relative;min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;border:0;border-radius:12px;background:transparent;color:#59402d;font:600 10px/1.1 Arial,sans-serif}
  .app-bottom-nav button>span,.customer-app-nav button>span{position:relative;height:24px;display:grid;place-items:center;font-size:21px;line-height:1;color:#59402d}
  .app-bottom-nav button>span svg,.customer-app-nav button>span svg{width:23px;height:23px;display:block;stroke:currentColor}
  .app-bottom-nav button small,.customer-app-nav button small{font-size:10px;color:inherit}
  .app-bottom-nav button.active,.customer-app-nav button.active{background:#435b3e;color:#fff4df}
  .app-bottom-nav button.active>span,.app-bottom-nav button.active small,.customer-app-nav button.active>span,.customer-app-nav button.active small{color:#fff4df}
  .app-nav-icon-wrap{position:relative}
  .app-nav-icon-wrap b,.customer-cart-icon b{position:absolute;top:-5px;right:-12px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:1px solid #f4e3c7;border-radius:12px;background:#b77e35;color:#fff;font:700 10px/1 Arial,sans-serif}
  .app-more-trigger>span svg{width:21px!important;height:21px!important}
  .app-more-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(520px,100%);max-width:none;max-height:min(78dvh,680px);padding:20px 18px calc(22px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;border-bottom:0;overscroll-behavior:contain}
  .app-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #admin-dashboard[data-role="employee"] .app-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  body:has(#admin-dashboard:not([hidden])) .admin-panel{scroll-margin-top:65px}
  body:has(#admin-dashboard:not([hidden])) .pos-panel{margin-bottom:5px}
  body:has(#admin-dashboard:not([hidden])) .pos-bottom-bar{bottom:calc(62px + env(safe-area-inset-bottom));z-index:20}

  body:has(.site-header){padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  body:has(.site-header) .site-header{position:sticky!important;top:0!important;z-index:80!important}
  body:has(.site-header) .header-inner{min-height:56px!important;height:56px!important;padding:6px 10px!important}
  body:has(.site-header) .brand-symbol{width:36px!important;height:36px!important;flex:0 0 36px!important}
  body:has(.site-header) .header-actions{gap:5px!important}
  body:has(.site-header) .account-trigger{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .customer-app-nav{position:fixed;z-index:100;inset:auto 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #b68b59;background:#f4e3c7;box-shadow:0 -8px 24px #24180f24}
  .customer-app-nav button{min-height:52px}
  .customer-app-nav .customer-cart-icon{position:relative}
  .customer-app-nav .customer-cart-icon svg{width:23px;height:23px}
  body:has(.site-header) .quick-cart-dock{display:none!important}
  body:has(.site-header) .cart-panel{bottom:calc(62px + env(safe-area-inset-bottom))!important}
  body:has(.site-header) .mobile-cart-scrim.show{inset:0 0 calc(62px + env(safe-area-inset-bottom))}
  body:has(.site-header) .featured-menu{scroll-margin-top:70px}
  body:has(.site-header) .floating-contact{right:8px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;gap:6px!important}
  body:has(.site-header) .floating-contact .contact-action{min-height:44px!important}
  body:has(.site-header) .floating-contact .contact-icon{width:44px!important;height:44px!important}
}
@media(max-width:380px){
  body:has(.site-header) .header-actions{gap:4px!important}
  body:has(.site-header) #account-trigger-label{display:none}
  body:has(.site-header) .account-trigger{width:38px;justify-content:center;padding:6px!important}
  body:has(#admin-dashboard:not([hidden])) .admin-top-actions>a{display:none}
  body:has(#admin-dashboard:not([hidden])) #admin-user-name{display:none}
}
@media(min-width:761px){.app-more-dialog{margin:auto}}
