/* Phone and tablet layout. Everything here applies only while the menu button is showing (html.vipx-m),
 * so the desktop design is untouched. */
html.vipx-m { scroll-padding-top: calc(var(--vipx-head, 110px) + 14px) !important; }
html.vipx-m [id], html.vipx-m .cal-month, html.vipx-m .cal-month h3 { scroll-margin-top: calc(var(--vipx-head, 110px) + 14px) !important; }
html.vipx-m, html.vipx-m body { overflow-x: clip; max-width: 100%; }

/* --- header: compact, and the contact strip folds away once the page is scrolled --- */
/* no blur on the header here: a blurred header becomes the frame for the menu inside it, and the menu could no longer fill the screen */
html.vipx-m .site-head { padding-top: env(safe-area-inset-top, 0px); z-index: 60; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; transform: none !important; }
html.vipx-m .site-head.solid, html.vipx-m.menu-open .site-head { background: #0d0c0b !important; }
html.vipx-m .site-head.solid .topbar, html.vipx-m.menu-open .site-head .topbar { background: #090807 !important; }
html.vipx-m .site-head .topbar { max-height: 60px; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
html.vipx-m .site-head .topbar .wrap { min-height: 42px !important; padding-top: 4px !important; padding-bottom: 4px !important; padding-left: max(14px, env(safe-area-inset-left)) !important; padding-right: max(14px, env(safe-area-inset-right)) !important; }
/* The phone, e-mail and live chat row stays in view while scrolling. */
html.vipx-m .site-head.solid .topbar { max-height: 60px !important; opacity: 1 !important; visibility: visible !important; }
html.vipx-m.menu-open .site-head .topbar { max-height: 60px; opacity: 1; }
html.vipx-m .site-head > .wrap { min-height: 60px !important; padding-top: 7px !important; padding-bottom: 7px !important; padding-left: max(16px, env(safe-area-inset-left)) !important; padding-right: max(16px, env(safe-area-inset-right)) !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.vipx-m .site-head .brand-logo { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
html.vipx-m .site-head .brand-logo img { display: block; width: auto !important; height: 36px !important; max-width: min(62vw, 230px) !important; object-fit: contain; object-position: left center; }
html.vipx-m .site-head .burger { flex: none; margin-left: auto; width: 44px !important; height: 44px !important; }
@media (max-width: 350px) { html.vipx-m .site-head .brand-logo img { height: 30px !important; } }

/* --- menu: fills the screen below the header, scrolls inside itself, page behind is held still --- */
html.vipx-m.menu-open, html.vipx-m.menu-open body { overflow: hidden !important; overscroll-behavior: none; }
html.vipx-m.menu-open body.vipx-locked { position: fixed; left: 0; right: 0; width: 100%; }
html.vipx-m #mainnav.open { position: fixed !important; left: 0; right: 0; top: var(--vipx-head, 110px) !important; bottom: 0 !important; height: auto !important; max-height: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-top: 14px !important; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important; background-color: #0d0c0b; }
html.vipx-m #mainnav.open .nav-welcome { display: none !important; }
html.vipx-m.menu-open .chat-fab { opacity: 0 !important; pointer-events: none !important; }
.vipx-sub-tog[aria-expanded="true"] span { transform: rotate(45deg); }
.vipx-sub.is-open { display: block; }
html.vipx-m #mainnav .vipx-sub a { display: block !important; min-height: 0 !important; margin: 0 !important; padding: 11px 0 11px 16px !important; border: 0 !important; border-left: 1px solid rgba(226, 202, 150, .4) !important; font-family: var(--body, "Jost", system-ui, sans-serif) !important; font-size: .98rem !important; font-weight: 400 !important; line-height: 1.3 !important; letter-spacing: .02em !important; text-transform: none !important; color: #e9dfca !important; text-decoration: none; }
html.vipx-m #mainnav .vipx-sub a::after, html.vipx-m #mainnav .vipx-sub a::before, html.vipx-m #mainnav .vipx-sub-row > a::after { content: none !important; display: none !important; }
html.vipx-m #mainnav .vipx-sub a small { display: block; margin-top: 3px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #cdb47c; }
html.vipx-m #mainnav .vipx-sub a.all { color: #f1dca6 !important; }
html:not(.vipx-m) .vipx-sub, html:not(.vipx-m) .vipx-sub-tog { display: none !important; }
html:not(.vipx-m) .vipx-sub-row { display: contents; }

/* --- calendar rows --- */
html.vipx-m .cal-row a { display: grid !important; grid-template-columns: 52px 60px minmax(0, 1fr) 18px !important; align-items: center !important; gap: 12px !important; padding: 12px 2px !important; min-height: 76px; }
html.vipx-m .cal-row a:hover { padding-left: 2px !important; }
html.vipx-m .cal-row .cal-date { width: 52px; align-self: center; }
html.vipx-m .cal-row .cal-thumb { display: block !important; width: 60px; height: 60px; }
html.vipx-m .cal-row .cal-txt { min-width: 0; }
html.vipx-m .cal-row .cal-txt strong { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; line-height: 1.22; }
html.vipx-m .cal-row .cal-go { display: block !important; font-size: 0 !important; letter-spacing: 0 !important; text-align: right; color: #e2ca96; }
html.vipx-m .cal-row .cal-go::after { content: "\2192"; font-size: 1.05rem; }
html.vipx-m .cal-month h3 { position: static !important; }
@media (max-width: 350px) { html.vipx-m .cal-row a { grid-template-columns: 46px 50px minmax(0, 1fr) 14px !important; gap: 9px !important; } html.vipx-m .cal-row .cal-date { width: 46px; } html.vipx-m .cal-row .cal-thumb { width: 50px; height: 50px; } }

/* --- floating chat: clear of the browser's own controls, small, and never over the last line of a page --- */
html.vipx-m .chat-fab { right: max(12px, env(safe-area-inset-right)) !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; width: 48px !important; height: 48px !important; z-index: 55 !important; transition: opacity .3s ease, transform .3s ease; }
html.vipx-m.vipx-fab-away .chat-fab { opacity: 0; transform: translateY(16px); pointer-events: none; }
html.vipx-m body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
html.vipx-m #chat.chat { max-height: calc(100dvh - var(--vipx-head, 110px) - 12px); bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: reduce) { html.vipx-m .site-head .topbar, .vipx-sub-tog span, html.vipx-m .chat-fab { transition: none; } }

/* the smallest phones: the contact strip keeps the phone number and chat, the mail shows as its icon */
@media (max-width: 350px) { .site-head .topbar .topbar-mail .mail-txt { display: none !important; } .site-head .topbar .topbar-tel:not(.topbar-mail) .tb-txt { font-size: .76rem !important; } .site-head .topbar .topbar-chat { font-size: .62rem !important; padding: 7px 7px !important; } }

/* --- menu rows: one layout for every top-level item, expandable or not --- */
.vipx-sub { display: none; }
.vipx-sub.is-open { display: block; }
html.vipx-m #mainnav.open > a:not(.btn) { display: flex; align-items: center; justify-content: space-between; }
html.vipx-m #mainnav.open > a:not(.btn), html.vipx-m #mainnav .vipx-sub-row { min-height: 52px !important; box-sizing: border-box; }
html.vipx-m #mainnav .vipx-sub-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; width: auto; margin: 0 !important; padding: 0 !important; border: 0 !important; border-top: var(--vipx-nav-line, 1px solid rgba(212, 188, 144, .32)) !important; outline: 0 !important; box-shadow: none !important; background: none !important; }
html.vipx-m #mainnav .vipx-sub-row > a { display: flex !important; align-items: center !important; justify-content: flex-start !important; min-height: 0 !important; height: auto !important; width: auto !important; margin: 0 !important; padding-left: var(--vipx-nav-pl, 2px) !important; padding-right: 0 !important; border: 0 !important; outline: 0; box-shadow: none !important; white-space: nowrap; }
html.vipx-m #mainnav .vipx-sub-tog { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; width: 44px; min-height: 50px; padding: 0 var(--vipx-nav-pr, 2px) 0 0; color: #e2ca96; font: 300 24px/1 var(--body, "Jost", system-ui, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.vipx-m #mainnav .vipx-sub-tog:focus-visible { outline: 2px solid #e2ca96; outline-offset: -4px; }
html.vipx-m #mainnav .vipx-sub-tog span { display: flex; justify-content: center; width: 7px; overflow: visible; transition: transform .3s ease; }
html.vipx-m #mainnav .vipx-sub-tog[aria-expanded="true"] span { transform: rotate(45deg); }
html.vipx-m #mainnav .vipx-sub { margin: 0 !important; padding: 0 0 12px !important; border: 0 !important; }
html.vipx-m #mainnav .vipx-sub a:first-child { margin-top: 2px !important; }
/* --- the three buttons at the foot of the menu: one size, one width --- */
html.vipx-m #mainnav.open > a.btn, html.vipx-m #mainnav.open .nav-foot > a { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; min-width: 0 !important; height: 56px !important; min-height: 56px !important; margin: 0 !important; padding: 0 12px !important; }
html.vipx-m #mainnav.open > a.btn { margin-top: 16px !important; }
html.vipx-m #mainnav.open .nav-foot { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; margin: 10px 0 0 !important; padding: 0 !important; width: auto !important; border: 0 !important; }

/* Menu open: nothing of the page may show above or around the header (phone status-bar area, rubber-band scrolling, toolbar resizing). */
html.vipx-m.menu-open { background: #0d0c0b !important; overscroll-behavior: none; }
html.vipx-m.menu-open body::before { content: ""; position: fixed; left: 0; right: 0; top: -200px; bottom: -200px; background: #0d0c0b; z-index: 59; pointer-events: none; }
html.vipx-m.menu-open .site-head { padding-top: env(safe-area-inset-top, 0px); }

/* Contact row: same side margins as the logo row, equal space above and below, and equal gaps between the three items. */
html.vipx-m .site-head .topbar .wrap { padding: 9px 16px !important; min-height: 52px !important; box-sizing: border-box; }
html.vipx-m .site-head .topbar, html.vipx-m .site-head.solid .topbar, html.vipx-m.menu-open .site-head .topbar { max-height: 72px !important; }
html.vipx-m .site-head .topbar .topbar-actions { display: flex !important; justify-content: space-between !important; align-items: center !important; flex-wrap: nowrap !important; width: 100%; gap: 6px !important; margin: 0 !important; }
html.vipx-m .site-head .topbar .topbar-actions > * { margin: 0 !important; }
