
/* Casa Floresta v0.8.0 | mobile/tablet accessibility + overflow fixes.
   Keep approved desktop layout, colours and animations unchanged. */
.mpcfp-market .mpcfp-page,.mpcfp-market .mpcfp-page *{box-sizing:border-box}
.mpcfp-market .mpcfp-page :is(img,video,svg){max-width:100%}
.mpcfp-market .mpcfp-page :is(h1,h2,h3,p,a,strong,span){overflow-wrap:break-word}
.mpcfp-market .mpcfp-page :is(input,textarea,select,button){max-width:100%;box-sizing:border-box}
.mpcfp-market .mpcfp-page :is(input,textarea,select){min-width:0}
.mpcfp-market .mpcfp-page :is(a,button,input,select,textarea):focus-visible{outline:2px solid #267a3a;outline-offset:3px}
@media (max-width:1024px){
  .mpcfp-market .mpcfp-page :is(.mpcfp-catalogue-layout,.mpcfp-contact-layout,.mpcfp-custom-content,.mpcfp-pdf-editions){min-width:0}
  .mpcfp-market .mpcfp-page :is(.mpcfp-product-grid,.mpcfp-catalogue-results,.mpcfp-pdf-grid)>*{min-width:0}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-dialog{max-width:min(96vw,560px)}
}
@media (max-width:800px){
  .mpcfp-market .mpcfp-page .mpcfp-filters{max-width:100%;min-width:0}
  .mpcfp-market .mpcfp-page :is(.mpcfp-catalogue-toolbar,.mpcfp-pdf-filters){min-width:0;max-width:100%;flex-wrap:wrap}
  .mpcfp-market .mpcfp-page :is(.mpcfp-catalogue-card,.mpcfp-product-card,.mpcfp-pdf-card){min-width:0}
  .mpcfp-market .mpcfp-page :is(.mpcfp-custom-form,.mpcfp-custom-fieldset,.cfm-main,.cfm-side){min-width:0}
  .mpcfp-market .mpcfp-custom-page .cfm-layout{grid-template-columns:minmax(0,1fr)!important}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-dialog{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
}
@media (max-width:600px){
  .mpcfp-market .mpcfp-page :is(.mpcfp-contact-fields-two,.mpcfp-custom-contact-grid){grid-template-columns:minmax(0,1fr)!important}
  .mpcfp-market .mpcfp-page :is(.mpcfp-contact-fields-two,.mpcfp-custom-contact-grid)>*{min-width:0}
  .mpcfp-market .mpcfp-page :is(.mpcfp-contact-form,.mpcfp-contact-info){min-width:0;max-width:100%}
  .mpcfp-market .mpcfp-page :is(.mpcfp-contact-form-bottom,.mpcfp-contact-actions){flex-wrap:wrap;gap:12px}
  .mpcfp-market .mpcfp-page .mpcfp-contact-form-bottom :is(button,small){max-width:100%}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-filters{gap:7px;overflow-x:auto;max-width:100%}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:22px 18px}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-dialog input{width:100%;min-height:43px}
  .mpcfp-market .mpcfp-page .mpcfp-custom-progress ol{min-width:0}
  .mpcfp-market .mpcfp-page .cfm-select-pop{max-width:100%;min-width:0}
}
@media (max-width:420px){
  .mpcfp-market .mpcfp-page .mpcfp-pdf-grid{gap:11px}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-card-copy{padding:12px!important}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-card-copy h3{font-size:14px!important;line-height:1.35!important}
  .mpcfp-market .mpcfp-page .mpcfp-product-grid>*{min-width:0}
  .mpcfp-market .mpcfp-page .mpcfp-room-grid>*{min-width:0}
  .mpcfp-market .mpcfp-page .mpcfp-contact-hero>*{min-width:0}
  .mpcfp-market .mpcfp-page .mpcfp-contact-detail a{overflow-wrap:anywhere}
  .mpcfp-market .mpcfp-page .mpcfp-pdf-submit{max-width:100%;white-space:normal}
}
/* Native WooCommerce product gallery and related-card controls. */
@media (max-width:760px){
  body.single-product.woocommerce :is(.woocommerce-product-gallery,.summary,.related,.products){min-width:0;max-width:100%}
  body.single-product.woocommerce :is(.woocommerce-product-gallery__image img,.flex-control-thumbs img){max-width:100%;height:auto}
  body.single-product.woocommerce .summary :is(a.button,button.button){max-width:100%;white-space:normal;overflow-wrap:anywhere}
  body.single-product.woocommerce .related ul.products li.product{min-width:0}
}
