/* Mayobook account drawer — native storefront/authentication design language.
   Guest-only enhancement: authentication and recovery remain on canonical pages. */
.mbfe-guest-overlay[hidden],.mbfe-guest-drawer[hidden]{display:none!important}
.mbfe-guest-overlay{
 position:fixed;inset:0;z-index:2147482000;
 background:rgba(3,17,39,.58);backdrop-filter:blur(4px);
 -webkit-backdrop-filter:blur(4px);
}
body.mbfe-guest-drawer-open{overflow:hidden!important}
.mbfe-guest-drawer{
 --mbg-navy:#09264f;--mbg-ink:#123359;--mbg-muted:#657891;--mbg-gold:#e6b56b;
 position:fixed;right:0;top:0;bottom:0;z-index:2147482001;
 display:flex;flex-direction:column;gap:0;
 width:min(100%,420px);max-width:100vw;
 height:100vh;height:100dvh;
 padding:clamp(19px,3vh,29px) clamp(18px,2.3vw,27px) max(18px,env(safe-area-inset-bottom));
 overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
 background:#fff;color:var(--mbg-ink);
 box-shadow:-20px 0 66px rgba(3,17,39,.25);
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 scrollbar-width:thin;scrollbar-color:#d0daea transparent;
}
.mbfe-guest-drawer *{box-sizing:border-box}
/* Do not show guest actions while the live authentication check is pending. */
.mbfe-guest-drawer[aria-busy="true"] .mbfe-guest-actions,
.mbfe-guest-drawer[aria-busy="true"] .mbfe-guest-divider,
.mbfe-guest-drawer[aria-busy="true"] .mbfe-guest-shortcuts,
.mbfe-guest-drawer[aria-busy="true"] .mbfe-guest-foot{
 visibility:hidden!important;pointer-events:none!important;
}
.mbfe-guest-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;margin:0 0 clamp(16px,2.5vh,25px)}
.mbfe-guest-brand{
 color:var(--mbg-navy);font-size:11px;line-height:1.4;
 text-transform:uppercase;letter-spacing:.17em;font-weight:780;
}
.mbfe-guest-close{
 width:38px;height:38px;flex:none;display:grid;place-items:center;
 border:1px solid #d7e1ed;border-radius:50%;padding:0 0 3px;
 background:#f7f9fc;color:var(--mbg-navy);font-size:28px;font-weight:400;line-height:1;
 cursor:pointer;transition:background-color .17s,border-color .17s;
}
.mbfe-guest-close:hover{background:#eaf1f9;border-color:#adc1dc}
.mbfe-guest-hero{
 position:relative;isolation:isolate;display:flex;flex-direction:column;
 align-items:flex-start;justify-content:flex-end;
 min-height:174px;flex:none;
 padding:23px 20px 21px;overflow:hidden;border-radius:16px;
 background:linear-gradient(90deg,rgba(2,16,38,.91),rgba(4,23,51,.50)),
  linear-gradient(0deg,rgba(3,17,35,.67),transparent 75%),
  url('/wp-content/uploads/2026/11/mayobook-auth-lounge-approved-v4.webp') center 48% / cover no-repeat,#09264f;
 color:#fff;
}
.mbfe-guest-hero::after{
 content:"";position:absolute;inset:auto 19px 0 19px;height:2px;
 background:linear-gradient(90deg,var(--mbg-gold),transparent);opacity:.65;pointer-events:none;
}
.mbfe-guest-eyebrow{
 color:#f2ce99;letter-spacing:.18em;font-size:9px;font-weight:790;line-height:1.3;
 margin:0 0 13px;text-transform:uppercase;
}
.mbfe-guest-title{
 color:#fff!important;font-family:Georgia,"Times New Roman",serif!important;
 font-size:clamp(27px,2.2vw,34px)!important;
 font-weight:400!important;letter-spacing:-.035em;line-height:1.08!important;
 text-wrap:balance;margin:0 0 9px!important;padding:0!important;
}
.mbfe-guest-title em{color:#f0c17d;font-style:italic;font-weight:400}
.mbfe-guest-description{
 color:#edf2f9!important;font-size:12px!important;line-height:1.45!important;
 font-weight:400!important;margin:0!important;padding:0!important;max-width:330px;
}
.mbfe-guest-actions{
 flex:none;display:grid;grid-template-columns:1fr;gap:9px;
 margin:clamp(17px,2.5vh,23px) 0 0;padding:0;
}
.mbfe-guest-actions a{
 display:flex;align-items:center;justify-content:center;
 min-height:46px;padding:10px 14px;border-radius:10px;
 text-decoration:none!important;font-size:13px!important;
 line-height:1.3!important;font-weight:720!important;
 letter-spacing:0;text-align:center;cursor:pointer;
 transition:background-color .17s,border-color .17s,box-shadow .17s;
}
.mbfe-guest-login{
 background:var(--mbg-navy)!important;border:1px solid var(--mbg-navy)!important;
 color:#fff!important;box-shadow:0 4px 10px rgba(7,30,62,.10);
}
.mbfe-guest-login:hover{background:#153c77!important;border-color:#153c77!important;color:#fff!important}
.mbfe-guest-register{
 background:#fff!important;border:1px solid #d9b57f!important;color:var(--mbg-navy)!important;
}
.mbfe-guest-register:hover{background:#fff9f0!important;color:var(--mbg-navy)!important}
.mbfe-guest-divider{
 flex:none;display:flex;align-items:center;gap:10px;
 margin:clamp(20px,3.2vh,29px) 0 12px;
 color:#7b8ca0;font-size:10px;line-height:1.2;
 letter-spacing:.16em;font-weight:780;text-transform:uppercase;
}
.mbfe-guest-divider::after{content:"";height:1px;flex:1;background:#e2e8f0}
.mbfe-guest-shortcuts{
 flex:none;display:grid;border:1px solid #dce4ee;border-radius:12px;
 overflow:hidden;background:#fff;
}
.mbfe-guest-shortcut{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 min-height:47px;padding:11px 15px;
 border-bottom:1px solid #e3e9f1;background:#fff;
 font-size:13px!important;line-height:1.35!important;font-weight:650!important;
 color:#183a62!important;text-decoration:none!important;
}
.mbfe-guest-shortcut:last-child{border-bottom:0}
.mbfe-guest-shortcut::after{
 content:"›";color:#b68a4f;font-size:22px;font-weight:400;line-height:1;
}
.mbfe-guest-shortcut:hover{background:#f7f9fc;color:#09264f!important}
.mbfe-guest-foot{
 flex:none;text-align:center;margin:clamp(18px,3vh,27px) 0 0;
 padding-top:15px;border-top:1px solid #e4eaf1;
}
.mbfe-guest-recover{
 color:#315789!important;text-decoration:none!important;font-size:12px!important;
 font-weight:640!important;line-height:1.4!important;
}
.mbfe-guest-recover:hover{text-decoration:underline!important}
.mbfe-guest-drawer :is(a,button):focus-visible{
 outline:3px solid rgba(35,78,153,.42)!important;outline-offset:3px!important;
}
.mbfe-guest-mobile-entry{
 display:block;width:100%;min-height:43px;margin:8px 0 4px;
 padding:10px 14px;border:1px solid #c7d5e8;border-radius:10px;
 background:#f2f5fa;color:#143b71;font-size:13px;
 font-weight:700;text-align:center;cursor:pointer;
}
.mbfe-guest-mobile-entry:hover{background:#e7effa}
.mbfe-guest-mobile-entry:focus-visible{outline:3px solid rgba(35,78,153,.42);outline-offset:3px}
@media(max-width:520px){
 .mbfe-guest-drawer{
  width:min(100vw,420px);padding:calc(18px + env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));
 }
 .mbfe-guest-top{margin-bottom:15px}
 .mbfe-guest-hero{min-height:166px;padding:20px 18px}
 .mbfe-guest-title{font-size:30px!important}
 .mbfe-guest-actions{margin-top:17px}
}
@media(max-width:390px){
 .mbfe-guest-drawer{width:100vw;padding-left:16px;padding-right:16px}
 .mbfe-guest-hero{min-height:145px}
 .mbfe-guest-title{font-size:28px!important}
 .mbfe-guest-divider{margin-top:18px}
 .mbfe-guest-shortcut{min-height:44px}
}
@media(max-height:690px) and (min-width:521px){
 .mbfe-guest-drawer{padding-top:16px;padding-bottom:12px}
 .mbfe-guest-top{margin-bottom:12px}
 .mbfe-guest-hero{min-height:133px;padding:16px 18px}
 .mbfe-guest-eyebrow{margin-bottom:8px}
 .mbfe-guest-title{font-size:27px!important}
 .mbfe-guest-actions{margin-top:13px}
 .mbfe-guest-actions a{min-height:41px}
 .mbfe-guest-divider{margin-top:13px;margin-bottom:9px}
 .mbfe-guest-shortcut{min-height:40px;padding-top:8px;padding-bottom:8px}
 .mbfe-guest-foot{margin-top:13px;padding-top:11px}
}
/* The original account hover menu remains a no-JS fallback only.
   Once the guest dialog is initialized, it must not open behind the dialog. */
.mbfe-account-wrap:has(.mbfe-account-btn[aria-haspopup="dialog"]) .mbfe-account-panel{
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
/* The guest account row opens a dialog directly on mobile. */
.mbfe-mobile-accordion[data-target="mbfe-mobile-account"][aria-haspopup="dialog"] span{
 display:inline-block;transform:rotate(-90deg);transition:none!important;
}
/* Progressive enhancement: do not duplicate sign-in links in the mobile menu. */
#mbfe-mobile-account:has(.mbfe-guest-mobile-entry) > a{
 display:none!important;
}
@media(prefers-reduced-motion:reduce){
 .mbfe-guest-drawer :is(a,button){transition:none!important}
 .mbfe-guest-overlay{backdrop-filter:none;-webkit-backdrop-filter:none}
}