/* JBB preview contact / mobile chrome v2 */

/* Preview banner */
.jbb-msg-preview-banner{position:relative;z-index:10050;background:#0045d4;color:#fff;text-align:center;font:600 13px/1.35 system-ui,sans-serif;padding:8px 12px}
.jbb-msg-preview-banner a{color:#ffba24}

/* Sticky tap-to-call top bar (phones) */
@media(max-width:959px){
  .jbb-topbar{
    position:sticky!important;top:0!important;z-index:10030!important;
    display:flex!important;align-items:center;justify-content:space-between;gap:8px;
    box-sizing:border-box;min-height:48px;height:auto!important;line-height:1.2!important;
    padding:8px 10px!important;background:#bc0d06!important;color:#fff!important;
    font-weight:700;text-decoration:none!important;font-size:14px!important;
  }
  .jbb-topbar-call{color:#fff!important;text-decoration:none!important;flex:1 1 auto;text-align:center;font-weight:700}
  .jbb-topbar-lang a,.jbb-topbar .jbb-lang{
    display:inline-flex!important;align-items:center;justify-content:center;gap:4px;
    min-height:40px;padding:4px 10px;border:2px solid #fff!important;border-radius:6px;
    background:rgba(0,0,0,.15)!important;color:#fff!important;font-weight:700!important;
    font-size:14px!important;text-decoration:none!important;white-space:nowrap;
  }
  .jbb-topbar-lang a:hover,.jbb-topbar .jbb-lang:hover{background:#fff!important;color:#bc0d06!important}
  /* hide duplicate lang in mobile header while sticky bar has it */
  .tm-header-mobile .jbb-lang-mobile{display:none!important}
  /* retire old 2-button bottom bar */
  .jbb-mbar{display:none!important}
}

/* Desktop top bar: plain text, not sticky, not a phone dialer */
@media(min-width:960px){
  .jbb-topbar{position:relative!important;pointer-events:none;cursor:default}
  .jbb-topbar-lang{display:none!important}
}

/* Floating message button — desktop only (mobile uses bottom bar) */
.jbb-msg-fab{position:fixed;right:16px;bottom:16px;z-index:10040;display:none;flex-direction:column;gap:10px;align-items:flex-end;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
@media(min-width:960px){
  .jbb-msg-fab{display:flex}
}
.jbb-msg-fab a,.jbb-msg-fab button{appearance:none;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 16px;border-radius:999px;font-weight:700;font-size:15px;line-height:1.2;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.22)}
.jbb-msg-btn-message{background:#bc0d06;color:#fff}
.jbb-msg-btn-text{display:none!important} /* text lives in mobile bottom bar only */
.jbb-msg-fab svg{width:20px;height:20px;flex:0 0 auto}

/* Mobile bottom shortcut bar */
.jbb-bbar{display:none}
@media(max-width:959px){
  .jbb-bbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10035;
    background:#fff;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));
    gap:4px;box-shadow:0 -4px 16px rgba(0,0,0,.22);
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  }
  .jbb-bbar a,.jbb-bbar button{
    flex:1 1 0;min-width:0;appearance:none;border:1px solid #bc0d06;border-radius:10px;
    background:#fff;color:#bc0d06;font-weight:700;font-size:11px;line-height:1.15;
    min-height:56px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    text-decoration:none;cursor:pointer;
  }
  .jbb-bbar .jbb-bbar-primary{background:#bc0d06;color:#fff;border-color:#bc0d06}
  .jbb-bbar svg{width:18px;height:18px;flex:0 0 auto}
  .jbb-bbar span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body{padding-bottom:72px!important}
}

/* Message modal */
.jbb-msg-overlay{position:fixed;inset:0;z-index:10060;background:rgba(0,0,0,.55);display:none;align-items:flex-end;justify-content:center;padding:12px}
.jbb-msg-overlay.is-open{display:flex}
.jbb-msg-panel{position:relative;background:#fff;width:100%;max-width:440px;border-radius:16px 16px 12px 12px;padding:20px 18px 16px;box-shadow:0 20px 50px rgba(0,0,0,.35);max-height:min(92vh,720px);overflow:auto;font-family:system-ui,sans-serif}
.jbb-msg-panel h2{margin:0 36px 6px 0;font-size:1.35rem;color:#111}
.jbb-msg-panel .jbb-msg-sub{margin:0 0 14px;color:#555;font-size:.95rem}
.jbb-msg-close{position:absolute;top:10px;right:10px;width:40px;height:40px;border:0;border-radius:8px;background:#f4f4f4;font-size:22px;cursor:pointer}
.jbb-msg-field{margin:0 0 12px}
.jbb-msg-field label{display:block;font-weight:600;font-size:.9rem;margin:0 0 4px;color:#222}
.jbb-msg-field input,.jbb-msg-field textarea{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:8px;padding:10px 12px;font:inherit;min-height:44px}
.jbb-msg-field textarea{min-height:110px;resize:vertical}
.jbb-msg-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.jbb-msg-note{background:#fff8e6;border:1px solid #f0a400;color:#5a4500;border-radius:8px;padding:10px 12px;font-size:.88rem;margin:0 0 12px}
.jbb-msg-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.jbb-msg-submit{background:#bc0d06;color:#fff;border:0;border-radius:8px;min-height:48px;padding:0 18px;font-weight:700;font-size:1rem;cursor:pointer}
.jbb-msg-submit:disabled{opacity:.6;cursor:not-allowed}
.jbb-msg-cancel{background:#eee;color:#222;border:0;border-radius:8px;min-height:48px;padding:0 16px;font-weight:600;cursor:pointer}
.jbb-msg-status{margin:10px 0 0;font-size:.95rem}
.jbb-msg-status.ok{color:#017443}
.jbb-msg-status.err{color:#a90026}
@media(min-width:640px){
  .jbb-msg-overlay{align-items:center;padding:24px}
  .jbb-msg-panel{border-radius:16px}
}

/* Check-in pages: no pinned bottom chrome covering Submit */
body.jbb-checkin-page .jbb-bbar,
body.jbb-checkin-page .jbb-mbar,
html.jbb-checkin-page .jbb-bbar,
html.jbb-checkin-page .jbb-mbar{display:none!important}
body.jbb-checkin-page{padding-bottom:0!important}
