/* MEISTER Málaga v6.2.2 — Mobile Floating CTA Safe-Area
   Goal: preserve the Master caller CTA without masking headings, copy or collection CTAs.
   Desktop remains untouched. */

@media (max-width: 782px){
  :root{
    --ml-v622-actionbar-h: var(--ml-caller-actionbar-height,var(--ml-static-actionbar-height,58px));
    --ml-v622-caller-gap: 8px;
  }

  /* Theme fallback caller: compact pill anchored directly above the persistent action bar. */
  .ml-caller-fallback__trigger{
    right:8px !important;
    bottom:calc(var(--ml-v622-actionbar-h) + var(--ml-v622-caller-gap) + env(safe-area-inset-bottom)) !important;
    min-height:42px !important;
    height:42px !important;
    max-width:154px !important;
    padding:0 13px !important;
    gap:7px !important;
    border-radius:22px !important;
    font-size:10px !important;
    line-height:1 !important;
    letter-spacing:.055em !important;
    white-space:nowrap !important;
    box-shadow:0 7px 20px rgba(0,0,0,.22) !important;
  }
  .ml-caller-fallback__trigger span{
    font-size:16px !important;
    line-height:1 !important;
    flex:0 0 auto !important;
  }
  .ml-caller-fallback__trigger strong{
    font-size:10px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  /* If the official plugin is present, use the same safe footprint instead of a large floating pill. */
  .meistia-call-root.is-floating{
    right:8px !important;
    bottom:calc(var(--ml-v622-actionbar-h) + var(--ml-v622-caller-gap) + env(safe-area-inset-bottom)) !important;
  }
  .meistia-call-root.is-floating .meistia-call-trigger{
    min-height:42px !important;
    height:42px !important;
    max-width:154px !important;
    padding:0 13px !important;
    border-radius:22px !important;
    font-size:10px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    box-shadow:0 7px 20px rgba(0,0,0,.22) !important;
  }

  /* Modal stays completely above the fixed bottom action bar. */
  .ml-caller-fallback__dialog{
    bottom:calc(var(--ml-v622-actionbar-h) + 18px + env(safe-area-inset-bottom)) !important;
    max-height:calc(100% - var(--ml-v622-actionbar-h) - 54px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  }

  /* Collection editorial copy gets a small right-side breathing zone at the exact viewport band
     where the compact caller may sit. This does not alter desktop or the banner asset itself. */
  .laminate-samples .lam-samples-copy,
  .parquet-samples .parquet-samples-copy,
  .lindura-samples .lind-samples-copy,
  .paneles-luxury-samples .paneles-samples-copy,
  .accessories-samples .accessories-samples-copy,
  .vc-samples .vc-samples-copy{
    padding-bottom:54px !important;
  }
}

@media (max-width: 390px){
  .ml-caller-fallback__trigger,
  .meistia-call-root.is-floating .meistia-call-trigger{
    max-width:138px !important;
    padding-inline:11px !important;
    font-size:9px !important;
  }
  .ml-caller-fallback__trigger strong{font-size:9px !important;}
}
