/* Smartphone shell. Desktop layouts and all native forms remain untouched. */
.mt-app-dock,.mt-app-account-toggle{display:none}
@media(max-width:767px){
 html:has(body.mt-mobile-app){scroll-padding-bottom:calc(var(--mt-dock-height,88px) + 20px)}
 body.mt-mobile-app{--mt-dock-height:88px;--mt-app-ink:#071d41;--mt-app-paper:#fffaf3;--mt-app-line:#d4dedf;padding-bottom:var(--mt-dock-height)!important;-webkit-tap-highlight-color:transparent}
 body.mt-mobile-app:not(.logged-in){--mt-dock-height:132px}
 .mt-app-dock,.mt-app-dock *{box-sizing:border-box}
 .mt-app-dock{display:block;position:fixed;z-index:9990;left:0;right:0;bottom:0;background:#fffaf3f5;backdrop-filter:blur(18px);border-top:1px solid #d4dedf;box-shadow:0 -5px 24px #071d410b;padding:6px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));font:500 11px/1.3 Arial,sans-serif;color:#071d41}
 .mt-app-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;max-width:600px;margin:auto}
 .mt-app-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:62px;min-width:0;color:#526777!important;text-decoration:none!important;border-radius:14px;font:600 10px/1.4 Arial,sans-serif!important;letter-spacing:0!important;padding:2px 0!important}
 .mt-app-tab-icon{display:flex;width:42px;height:30px;align-items:center;justify-content:center;border-radius:11px}
 .mt-app-tabs a[aria-current=page]{color:#071d41!important}
 .mt-app-tabs a[aria-current=page] .mt-app-tab-icon{background:#f1beb5}
 .mt-app-tabs a:active .mt-app-tab-icon{background:#e8edef}
 .mt-app-tabs a:after,.mt-app-login:after{display:none!important}
 .mt-app-tabs a:focus-visible,.mt-app-login:focus-visible,.mt-app-account-toggle:focus-visible{outline:3px solid #598aad;outline-offset:-3px}
 .mt-app-login{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:5px 10px 9px;margin-bottom:3px;border-bottom:1px solid #d4dedf;color:#071d41!important;text-decoration:none!important;font-size:11px}
 .mt-app-login span{max-width:180px}.mt-app-login strong{white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
 body.mt-mobile-keyboard .mt-app-dock,body.cigale-menu-open .mt-app-dock,html.mt-dialog-open .mt-app-dock{visibility:hidden;pointer-events:none}
 /* Keep the brand and hamburger; the bottom bar replaces the duplicate quick links. */
 body.mt-mobile-app .et-l--header .et_pb_section:has(.mt-shell-top){display:none!important}
 body.mt-mobile-app .et-l--header .et_pb_section:has(.mt-shell-navigation){padding:12px 0!important}
 body.mt-mobile-app .et-l--header .et_pb_row{width:calc(100% - 32px)!important;padding:0!important}
 body.mt-mobile-app .mt-shell-brand strong{font-size:28px}
 body.mt-mobile-app .mt-shell-brand>span{font-size:8px;letter-spacing:4px;margin-top:5px}
 body.mt-mobile-app .cigale-menu__toggle{min-height:44px}
 body.mt-mobile-app #et-boc .et-l--post .et_pb_section{padding-top:28px!important;padding-bottom:28px!important}
 body.mt-mobile-app #et-boc .et-l--post .et_pb_row{width:calc(100% - 32px)!important;max-width:100%!important;padding-top:0!important;padding-bottom:0!important;row-gap:22px!important}
 body.mt-mobile-app #et-boc .et-l--post .et_pb_column{min-width:0;max-width:100%}
 body.mt-mobile-app #et-boc .et-l--post h1{font-size:clamp(30px,8.6vw,40px)!important;line-height:1.09!important;letter-spacing:-.035em!important;overflow-wrap:break-word}
 body.mt-mobile-app #et-boc .et-l--post h2{font-size:clamp(27px,7.2vw,34px)!important;line-height:1.15!important}
 body.mt-mobile-app #et-boc .et-l--post .et_pb_text{font-size:16px!important;line-height:1.65!important}
 body.mt-mobile-app #et-boc a.et_pb_button,body.mt-mobile-app #et-boc .mt-button,body.mt-mobile-app .woocommerce .button{min-height:52px!important;padding:14px 20px!important;font-size:14px!important;line-height:1.45!important}
 body.mt-mobile-app :is(input,select,textarea){scroll-margin-bottom:calc(var(--mt-dock-height) + 24px)}
 body.mt-mobile-app .woocommerce :is(input.input-text,select,textarea),body.mt-mobile-app .mt :is(select,input[type=date]){font-size:16px!important;min-height:48px}
 body.mt-mobile-app .et-l--footer .et_pb_section{padding:22px 0!important}
 body.mt-mobile-app .et-l--footer .et_pb_row{width:calc(100% - 32px)!important;padding:0!important;row-gap:22px!important}
 body.mt-mobile-app .et-l--footer h3{font-size:22px!important}
 body.mt-mobile-app .mt-shell-links{font-size:14px;gap:0}
 body.mt-mobile-app .mt-shell-links a{min-height:44px;display:flex;align-items:center;padding:8px 0}
 /* One-day calendar and horizontal activity/date controls put sessions within thumb reach. */
 .mt-mobile-app .mt-planning.mt .mt-planning-settings{padding:14px;border-radius:18px;gap:12px;margin-bottom:20px;width:100%}
 .mt-mobile-app .mt-planning.mt .mt-activity-field{width:100%}
 .mt-mobile-app .mt-planning.mt .mt-filter-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;max-width:100%}
 .mt-mobile-app .mt-planning.mt .mt-filter-chips>a{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:10px 13px;font-size:12px}
 .mt-mobile-app .mt-planning.mt .mt-person-compact{padding-top:12px}
 .mt-mobile-app .mt-planning.mt .mt-person-compact select{min-height:48px;margin-top:6px}
 .mt-mobile-app .mt-calendar-grid.mt .mt-heading{gap:12px}
 .mt-mobile-app .mt-calendar-grid.mt .mt-heading h2{font-size:25px!important}
 .mt-mobile-app .mt-calendar-grid.mt .mt-week-nav a{min-height:44px;padding:10px 8px;font-size:12px}
 .mt-mobile-app .mt-calendar-grid.mt .mt-agenda-tools{gap:10px;padding:8px 0 14px}
 .mt-mobile-app .mt-calendar-grid.mt .mt-agenda-tools .mt-day-pills{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;gap:6px;padding:3px 0 6px;scrollbar-width:thin;order:-1}
 .mt-mobile-app .mt-calendar-grid.mt .mt-day-pills>button{flex:0 0 auto;min-height:46px;padding:10px 14px;font-size:12px;border-radius:13px}
 .mt-mobile-app .mt-calendar-grid.mt .mt-day-pills>button[data-calendar-day=""]{display:none}
 .mt-mobile-app .mt-calendar-grid.mt .mt-view-label{display:none}
 .mt-mobile-app .mt-calendar-grid.mt .mt-result-count{font-size:11px}
 .mt-mobile-app .mt-booking-dialog{position:fixed;inset:auto 0 0;margin:0;max-width:none;width:100%;max-height:88dvh;border-radius:24px 24px 0 0;padding:30px 20px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 .mt-mobile-app .mt-booking-dialog .mt-event-detail h4{font-size:28px;line-height:1.15;padding-right:26px}
 .mt-mobile-app .mt-dialog-close{min-width:44px;min-height:44px}
 .mt-mobile-app .mt-formulas .mt-offer-family{border-radius:16px;margin:16px 0}
 .mt-mobile-app .mt-formulas .mt-offer-table tbody tr{padding:14px 12px;gap:10px}
 .mt-mobile-app .mt-formulas .mt-rate-link{min-height:48px}
 /* Account: compact section selector and readable reservations, no wide table. */
 body.mt-mobile-app.woocommerce-account .mt-account-navigation{padding:12px;margin-bottom:20px;border-radius:16px}
 body.mt-mobile-app.woocommerce-account .mt-account-nav-title{padding:0 4px 8px}
 body.mt-mobile-app.woocommerce-account .mt-account-nav-title strong{font:400 22px/1.2 Georgia,serif}
 .mt-app-account-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffaf3;color:#071d41;border:1px solid #cbd8dd;border-radius:12px;padding:12px;width:100%;min-height:48px;text-align:left;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
 .mt-app-account-toggle:after{content:'+';font-size:20px}.mt-app-account-toggle[aria-expanded=true]:after{content:'−'}
 body.mt-mobile-app.woocommerce-account .mt-account-navigation.mt-app-collapsible ul{display:none!important}
 body.mt-mobile-app.woocommerce-account .mt-account-navigation.mt-app-expanded ul{display:grid!important;grid-template-columns:1fr;gap:2px;margin-top:10px!important}
 body.mt-mobile-app.woocommerce-account .mt-account-heading{margin-bottom:22px}
 body.mt-mobile-app.woocommerce-account .mt-account-heading h2{font-size:32px!important}
 body.mt-mobile-app.woocommerce-account .mt-account-heading p{font-size:14px}
 body.mt-mobile-app.woocommerce-account .mt-account-welcome,body.mt-mobile-app.woocommerce-account .mt-account-tile,body.mt-mobile-app.woocommerce-account .mt-member-card,body.mt-mobile-app.woocommerce-account .mt-account-empty{padding:20px;border-radius:18px}
 body.mt-mobile-app.woocommerce-account .mt-account-tile-number{margin-bottom:12px}
 body.mt-mobile-app.woocommerce-account .mt-account-tiles{gap:12px}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table{display:block;min-width:0;border:0;background:none;overflow:visible}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table tbody{display:block}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table tr{display:block;padding:16px;background:#fffaf3;border:1px solid #d4dedf;border-radius:16px;margin-bottom:12px}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table td{display:block;border:0;min-width:0;padding:5px 0;overflow-wrap:anywhere}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#536777;margin-bottom:2px}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table td[data-label=Action]:empty{display:none}
 body.mt-mobile-app.woocommerce-account .mt-account-history .mt-table td[colspan]{padding:4px;font-size:14px}
 body.mt-mobile-app.woocommerce-account .woocommerce .mt-table-scroll{overflow:visible}
 body.mt-mobile-app.woocommerce-account .woocommerce form.login,body.mt-mobile-app.woocommerce-account .woocommerce form.register,body.mt-mobile-app.woocommerce-account .woocommerce form.lost_reset_password{padding:20px;border-radius:18px}
 body.mt-mobile-app.woocommerce-checkout .woocommerce form .form-row,body.mt-mobile-app.woocommerce-cart .woocommerce .coupon{max-width:100%}
 body.mt-mobile-app .woocommerce :is(.col2-set .col-1,.col2-set .col-2){float:none;width:100%;margin-bottom:20px}
}
@media(prefers-reduced-motion:reduce){.mt-app-dock *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:767px){
 body.mt-mobile-app.woocommerce-account #et-boc .et-l--post .et_pb_section:has(h1):not(:has(.woocommerce)){display:none!important}
 .mt-app-tab-icon{position:relative}
 body.logged-in .mt-app-tabs [data-mt-tab=account] .mt-app-tab-icon:after{content:'';position:absolute;right:6px;top:3px;width:6px;height:6px;border:2px solid #fffaf3;background:#398065;border-radius:50%;box-sizing:content-box}
}
