/* Shared small-screen improvements; the app reads the same live page assets. */
@media (max-width:767px) {
 .afinsex-page :where(section,article,.grid>*,fieldset),.elementor-widget-shortcode :where(fieldset,.flex>*){min-width:0}
 .afinsex-page :where(h1,h2,h3,p,a),.elementor-widget-shortcode :where(h1,h2,h3,p){overflow-wrap:break-word}
 .elementor-widget-shortcode .afinsex-chat-wrapper{max-height:55dvh;min-height:180px}
 #afinsex-chat-messages{overflow-wrap:anywhere}
 #afinsex-profile-modal>.relative,#afinsex-selection-modal>.relative,#afinsex-answer-modal>.relative,#afinsex-boost-modal>.relative{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;margin-top:12px;margin-bottom:12px}
 [data-afinsex-navbar]{padding-left:10px;padding-right:10px}
 [data-afinsex-navbar]>div:first-child,[data-afinsex-navbar]>div:first-child>div{min-width:0}
 [data-afinsex-navbar]>div:last-child{gap:8px;flex-shrink:0}
 .elementor-widget-shortcode .flex.items-center.justify-between:has(>.rounded-full){flex-wrap:wrap;gap:8px}
 .elementor-widget-shortcode a,.afinsex-page a{touch-action:manipulation}
 [data-afinsex-navbar] :where(button,a.sm\:hidden){min-width:44px;min-height:44px}
 .elementor-widget-shortcode :where(input[type=checkbox],input[type=radio]){scroll-margin:20px}
 .elementor-widget-shortcode table{display:block;max-width:100%;overflow:auto}
}
/* Native navigation replaces the theme header only inside the Android app. */
body.afinsex-android-app #masthead,body.afinsex-android-app #wpadminbar,body.afinsex-android-app [data-afinsex-navbar]{display:none!important}
html:has(body.afinsex-android-app){margin-top:0!important}
body.afinsex-android-app{min-height:100dvh;overscroll-behavior-y:contain}
body.afinsex-android-app #content{padding-top:0}
body.afinsex-android-app .af-mobile-commerce{padding:24px 20px;max-width:680px;margin:auto}
body.afinsex-android-app .af-mobile-commerce h1{font-size:32px;line-height:1.15}
body.afinsex-android-app .af-mobile-commerce button{width:100%;min-height:48px;border-radius:14px;background:#ff4949;color:white;padding:12px;margin-top:12px}
body.afinsex-android-app .af-mobile-commerce .af-mobile-notice{padding:24px;margin:24px 0;background:#f9fafb;border-radius:24px}
body.afinsex-android-app .af-mobile-commerce h2{font-size:20px;line-height:1.3;margin:0 0 12px}
.af-mobile-notice{margin:12px 0;padding:12px;border:1px solid #e5e7eb;border-radius:12px;line-height:1.5}
