/* Shop Mattey Phase 11.2 - critical interaction and content corrections */
.sm-box-builder-controls [hidden],
.sm-box-builder-controls .sm-button[hidden],
.sm-box-builder-controls button[hidden]{
  display:none!important;
}

.woocommerce-checkout .woocommerce-billing-fields h3{
  font-size:1.72rem!important;
  line-height:1.12!important;
}
.woocommerce-checkout .woocommerce-billing-fields h3:after{
  content:none!important;
}
.sm-checkout-section-copy{
  margin-top:-4px!important;
}
.sm-checkout-section-copy p{
  margin:0!important;
}

.sm-cart-drawer-trust span{
  position:relative;
}
.sm-cart-drawer-shell:not(.is-open){
  pointer-events:none;
}
.sm-cart-drawer-shell.is-open{
  pointer-events:auto;
}

.sm-footer-logo{
  max-width:138px!important;
  max-height:82px!important;
  height:auto!important;
  object-fit:contain!important;
}
.sm-footer-brand p{
  max-width:28rem;
}
.sm-footer-grid{
  grid-template-columns:minmax(180px,.9fr) repeat(3,minmax(140px,.55fr))!important;
  gap:28px!important;
}
.sm-footer-contact{
  display:none!important;
}

@media(max-width:767px){
  .sm-builder-page-body{
    --sm-builder-summary-height:58px;
    --sm-builder-controls-height:70px;
  }
  .sm-box-builder-app{
    padding-bottom:calc(var(--sm-nav-bottom-height,72px) + var(--sm-builder-summary-height) + var(--sm-builder-controls-height) + var(--sm-nav-safe-bottom,env(safe-area-inset-bottom)) + 34px)!important;
  }
  .sm-box-summary{
    pointer-events:none;
    bottom:calc(var(--sm-nav-bottom-height,72px) + var(--sm-nav-safe-bottom,env(safe-area-inset-bottom)) + 8px)!important;
  }
  .sm-box-summary-toggle,
  .sm-box-summary-content,
  .sm-box-summary.is-open:before{
    pointer-events:auto;
  }
  .sm-box-builder-controls{
    position:sticky!important;
    bottom:calc(var(--sm-nav-bottom-height,72px) + var(--sm-nav-safe-bottom,env(safe-area-inset-bottom)) + var(--sm-builder-summary-height) + 16px)!important;
    z-index:10001!important;
    grid-template-columns:1fr 1fr!important;
    align-items:stretch!important;
    margin:20px -4px 0!important;
  }
  .sm-box-builder-controls .sm-box-next:not([hidden]),
  .sm-box-builder-controls .sm-box-submit:not([hidden]){
    grid-column:1 / -1!important;
  }
  .sm-box-builder-controls .sm-button{
    min-height:50px!important;
  }
  .sm-builder-page-body .sm-whatsapp-fab{
    bottom:calc(var(--sm-nav-bottom-height,72px) + var(--sm-nav-safe-bottom,env(safe-area-inset-bottom)) + var(--sm-builder-summary-height) + var(--sm-builder-controls-height) + 26px)!important;
  }
  body.sm-box-summary-open .sm-builder-page-body .sm-whatsapp-fab,
  body.sm-box-summary-open .sm-whatsapp-fab{
    display:none!important;
  }

  .woocommerce-checkout .woocommerce-billing-fields h3{
    font-size:1.42rem!important;
  }
  .woocommerce-checkout .woocommerce-billing-fields h3:after{
    content:none!important;
  }

  .sm-footer{
    padding-top:28px!important;
    padding-bottom:calc(var(--sm-nav-bottom-height,72px) + var(--sm-nav-safe-bottom,env(safe-area-inset-bottom)) + 18px)!important;
  }
  .sm-footer-grid{
    grid-template-columns:1fr 1fr!important;
    gap:16px 20px!important;
  }
  .sm-footer-logo{
    max-width:88px!important;
    max-height:58px!important;
  }
  .sm-footer-bottom{
    gap:8px!important;
    margin-top:14px!important;
  }
}

@media(max-width:380px){
  .sm-box-builder-controls{
    grid-template-columns:1fr!important;
  }
  .sm-box-builder-controls .sm-box-next:not([hidden]),
  .sm-box-builder-controls .sm-box-submit:not([hidden]){
    grid-column:auto!important;
  }
  .sm-footer-grid{
    grid-template-columns:1fr!important;
  }
}
