/* FK 2027 Mobile UX: opt-in. Changes only apply up to 767px. */
.fk27-mobile-back{display:none!important}
@media (max-width:767px){
  body.fk27-mobile-ux{--fk27-rose:#b33363;--fk27-ink:#282223;--fk27-line:#eae5e3}
  /* Breadcrumb stays in markup for SEO and desktop, but becomes a compact category link. */
  body.fk27-mobile-ux.single-product .fk27-crumb-ready,
  body.fk27-mobile-ux.single-product .woocommerce-breadcrumb:not(.fk27-crumb-ready),
  body.fk27-mobile-ux.single-product nav.breadcrumb:not(.fk27-crumb-ready),
  body.fk27-mobile-ux.single-product nav.breadcrumbs:not(.fk27-crumb-ready){
    display:block!important;max-width:100%!important;margin:0 0 12px!important;
    padding:5px 0!important;white-space:nowrap!important;overflow:hidden!important;
    text-overflow:ellipsis!important;font-size:12px!important;line-height:1.5!important;
  }
  body.fk27-mobile-ux.single-product .fk27-crumb-ready{font-size:0!important;line-height:0!important;min-height:28px}
  body.fk27-mobile-ux.single-product .fk27-crumb-ready > :not(.fk27-mobile-back){display:none!important}
  body.fk27-mobile-ux.single-product .fk27-crumb-ready .fk27-mobile-back{
    display:inline-flex!important;align-items:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;
    white-space:nowrap;color:var(--fk27-ink)!important;font-weight:650!important;
    text-decoration:none!important;font-size:13px!important;line-height:22px!important;
    padding:2px 0!important;gap:6px
  }
  body.fk27-mobile-ux.single-product .fk27-mobile-back:focus-visible{outline:2px solid var(--fk27-rose);outline-offset:2px;border-radius:4px}
  /* Narrow phone: remove the redundant frames around the product gallery. */
  body.fk27-mobile-ux.single-product .fk27-gallery,
  body.fk27-mobile-ux.single-product .fk27-gallery-outer,
  body.fk27-mobile-ux.single-product .woocommerce-product-gallery,
  body.fk27-mobile-ux.single-product [data-product-gallery]{
    float:none!important;width:100%!important;max-width:100%!important;
    padding:0!important;margin-left:0!important;margin-right:0!important;
    border:0!important;box-shadow:none!important;background:transparent!important;
    box-sizing:border-box!important;
  }
  body.fk27-mobile-ux.single-product .fk27-gallery-outer{border-radius:0!important}
  body.fk27-mobile-ux.single-product .fk27-gallery img{max-width:100%;height:auto}
  /* Avoid very deep card-within-card presentation in delivery/trust area. */
  body.fk27-mobile-ux.single-product .fk27-trust-root{
    width:100%!important;max-width:100%!important;margin-inline:0!important;
    padding:0!important;border:0!important;box-shadow:none!important;
    background:transparent!important;border-radius:0!important;
  }
  body.fk27-mobile-ux.single-product .fk27-trust-card,
  body.fk27-mobile-ux.single-product .fk27-trust-frame{
    border:0!important;box-shadow:none!important;background:transparent!important;
    border-radius:0!important;
  }
  body.fk27-mobile-ux.single-product .fk27-trust-card{
    padding:12px 0!important;margin:0!important;
    border-bottom:1px solid var(--fk27-line)!important;
  }
  body.fk27-mobile-ux.single-product .fk27-trust-card:last-child{border-bottom:0!important}
  body.fk27-mobile-ux.single-product .fk27-trust-root .fk27-trust-card :where(div,section,article){
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:transparent!important;padding-left:0!important;padding-right:0!important;
  }
  /* Search: one full-width field, submit beneath. Touch friendly + iOS zoom prevention. */
  body.fk27-mobile-ux .fk27-search-controls{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;align-items:stretch!important;justify-content:stretch!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  body.fk27-mobile-ux .fk27-search-controls > *{
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.fk27-mobile-ux .fk27-search-controls input[type=search],
  body.fk27-mobile-ux .fk27-search-controls input[type=text]{
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:50px!important;font-size:16px!important;box-sizing:border-box!important;
  }
  body.fk27-mobile-ux .fk27-search-controls button[type=submit],
  body.fk27-mobile-ux .fk27-search-controls input[type=submit],
  body.fk27-mobile-ux .fk27-search-submit{
    width:100%!important;max-width:100%!important;min-height:46px!important;
    justify-content:center!important;box-sizing:border-box!important;
  }
  body.fk27-mobile-ux .fk27-search-dialog{
    box-sizing:border-box!important;max-width:calc(100vw - 20px)!important;
    padding-left:16px!important;padding-right:16px!important;
  }
}

/* v0.3.3: Hide only the obsolete product-intro copy, never the selected-package prices. */
@media (max-width:767px) {
  body.fk27-mobile-ux.single-product .fk27-hide-gallery-hint,
  body.fk27-mobile-ux.single-product .fk27-hide-intro-price {
    display:none !important;
  }
  /* Stronger search rules: we style the actual <form> AND the nested flex row. */
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-form,
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-controls {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-auto-flow:row !important;
    gap:10px !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-input-wrap {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    flex:1 1 100% !important;
  }
  body.fk27-mobile-ux .fk27-search-panel input.fk27-search-input {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    font-size:16px !important;
    min-height:50px !important;
  }
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-submit {
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:48px !important;
    box-sizing:border-box !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
  }
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-form > .fk27-search-controls,
  body.fk27-mobile-ux .fk27-search-panel .fk27-search-form > .fk27-search-input-wrap {
    width:100% !important;
  }
}
