/* Phone-only storefront refinements. Desktop and tablet layouts are unchanged. */
@media (max-width: 767px) {
  #tvcms-mobile-view-header form:has(.tvcmssearch-words) {
    display:flex !important; align-items:center !important; position:relative !important;
    width:100% !important; height:46px !important; padding:0 !important;
    border:1px solid #d5e3dc !important; border-radius:14px !important;
    background:#f5f9f6 !important; box-shadow:0 2px 6px rgba(25,65,47,.035) !important;
    overflow:visible !important;
  }
  #tvcms-mobile-view-header form:has(.tvcmssearch-words):focus-within {
    border-color:#18764e !important; box-shadow:0 0 0 3px rgba(24,118,78,.12) !important;
  }
  #tvcms-mobile-view-header .tvheader-top-search,
  #tvcms-mobile-view-header .tvheader-top-search-wrapper-info-box {
    flex:1 !important; min-width:0 !important; width:100% !important;
    height:44px !important; border:0 !important; padding:0 !important; margin:0 !important; background:transparent !important;
  }
  #tvcms-mobile-view-header input.tvcmssearch-words {
    width:100% !important; height:44px !important; min-height:44px !important;
    padding:0 12px !important; border:0 !important; border-radius:14px !important;
    background:transparent !important; box-shadow:none !important; font-size:16px !important;
    line-height:normal !important; color:#213d30 !important; text-overflow:ellipsis;
  }
  #tvcms-mobile-view-header input.tvcmssearch-words::placeholder {color:#718077 !important; font-size:14px !important; opacity:1;}
  #tvcms-mobile-view-header .tvheader-top-search-wrapper {
    position:static !important; flex:0 0 44px !important; width:44px !important;
    height:44px !important; border:0 !important; margin:0 !important; padding:0 !important;
  }
  #tvcms-mobile-view-header .tvheader-search-btn {
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important;
    padding:0 !important; margin:0 !important; border:0 !important; border-radius:0 13px 13px 0 !important;
    background:#e7f1eb !important; color:#166343 !important; box-shadow:none !important;
  }
  #tvcms-mobile-view-header .tvheader-search-btn svg {display:none !important;}
  #tvcms-mobile-view-header .tvheader-search-btn::after {
    content:""; display:block; width:22px; height:22px;
    background:center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166343' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
  }
  body#product.pkm-product-active #wrapper .tvcmscontainer-layout {padding:8px 16px 0 !important;}
  body#product.pkm-product-active #wrapper .container,
  body#product.pkm-product-active #content-wrapper,
  body#product.pkm-product-active .tvproduct-page-wrapper {width:100% !important; max-width:none !important; padding-left:0 !important; padding-right:0 !important;}
  body#product.pkm-product-active #wrapper .row {margin-left:0 !important; margin-right:0 !important;}
  body#product.pkm-product-active .breadcrumb {margin:0 0 8px !important; padding:8px 0 !important;}
  body#product.pkm-product-active .tvprduct-image-info-wrapper {padding-top:0 !important;}
  body#product.pkm-product-active .pkm-static-product-image {
    width:100% !important; min-height:0 !important; height:auto !important;
    margin:0 0 12px !important; padding:0 !important; border:1px solid #e3ebe6; border-radius:14px; background:#fff;
  }
  body#product.pkm-product-active .pkm-static-product-image .theiaStickySidebar,
  body#product.pkm-product-active .pkm-static-product-image .images-container,
  body#product.pkm-product-active .pkm-static-product-image #content,
  body#product.pkm-product-active .pkm-static-product-image .tvvertical-slider,
  body#product.pkm-product-active .pkm-static-product-image .product-images,
  body#product.pkm-product-active .pkm-static-product-image .tvcmsVerticalSlider {
    width:100% !important; height:auto !important; min-height:0 !important; margin:0 !important; padding:0 !important;
    position:static !important; transform:none !important;
  }
  body#product.pkm-product-active .pkm-static-product-image picture {display:flex !important; justify-content:center; align-items:center; width:100%;}
  body#product.pkm-product-active .pkm-static-product-image img {
    display:block !important; max-width:100% !important; width:100% !important; height:100px !important;
    object-fit:contain !important; margin:0 auto !important;
  }
  /* Econet's square asset has generous white margins around its centered logo. */
  body#product.product-id-458 .pkm-static-product-image img {width:280px !important; height:88px !important; object-fit:cover !important;}
  body#product.pkm-product-active .tv-product-page-content {padding:0 !important; width:100% !important;}
  body#product.pkm-product-active .pkm-product-block {margin-top:0 !important;}
  body#product.pkm-product-active .pkm-service-card {padding:12px 14px !important; margin-bottom:12px !important;}
  body#product.pkm-product-active .pkm-account-entry {padding:16px !important; margin-top:12px !important;}
  body#product.pkm-product-active .pkm-account-entry__header {margin-bottom:12px !important;}
  .zb-mobile-app-nav {box-shadow:0 -3px 18px rgba(31,64,47,.07) !important; border-top:1px solid #dce8e1 !important;}
  .zb-mobile-app-nav .zb-nav-icon {display:block !important; width:25px !important; height:25px !important; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round;}
  .zb-mobile-app-nav a {color:#526b5e !important; gap:4px !important;}
  .zb-mobile-app-nav a > span:not(.zb-mobile-app-nav__cart):not(.zb-mobile-app-nav__zimmy) {font-size:11px !important; line-height:14px !important; height:14px !important; font-weight:600 !important; letter-spacing:.15px !important;}
  .zb-mobile-app-nav a[aria-current="page"] {color:#0b7048 !important; background:#eef6f1 !important; border-radius:12px;}
  .zb-mobile-app-nav a:focus-visible {outline:2px solid #137b52 !important; outline-offset:-3px; border-radius:12px;}
  .zb-mobile-app-nav__count {font-size:10px !important; top:-6px !important; right:-9px !important;}
}
@media (max-width:767px) {
  html body#product.pkm-product-active .tv-product-page-image.pkm-static-product-image .product-images .tvcmsVerticalSlider picture img {
    width:100% !important; height:100px !important; max-height:100px !important; min-height:0 !important; object-fit:contain !important;
  }
  html body#product.pkm-product-active.product-id-458 .tv-product-page-image.pkm-static-product-image .product-images .tvcmsVerticalSlider picture img {
    width:280px !important; height:88px !important; max-height:88px !important; object-fit:cover !important;
  }
  html body#product.pkm-product-active .tv-product-page-content .product-information.tvproduct-special-desc {padding-top:0 !important;}
}
@media (max-width:767px) {
  #tvcms-mobile-view-header .tvsearch-top-wrapper,
  #tvcms-mobile-view-header .tvsearch-header-display-wrappper {margin-left:0 !important; margin-right:0 !important; padding-left:0 !important; padding-right:0 !important; width:100% !important; box-sizing:border-box !important;}
  #tvcms-mobile-view-header form:has(.tvcmssearch-words) {box-sizing:border-box !important;}
  html body#product.pkm-product-active .tv-product-page-content .product-information.tvproduct-special-desc {border-top:0 !important;}
}
@media (max-width:767px) {
  /* Product pages use one phone gutter instead of nested desktop grid gutters. */
  html body#product #wrapper .tvcmscontainer-layout {padding:8px 16px 0 !important;}
  html body#product #wrapper .container,
  html body#product #content-wrapper,
  html body#product .tvproduct-page-wrapper {width:100% !important; max-width:none !important; padding-left:0 !important; padding-right:0 !important;}
  html body#product #wrapper .row {margin-left:0 !important; margin-right:0 !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-image {min-height:0 !important; padding:0 !important; margin-bottom:12px !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-image .tvvertical-slider {padding:0 !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-image .product-images {padding-bottom:0 !important; margin:0 !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-image .product-images .tvcmsVerticalSlider {height:auto !important; margin:0 !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-image .product-images .tvcmsVerticalSlider picture,
  html body#product:not(.pkm-product-active) .tv-product-page-image .product-images .tvcmsVerticalSlider picture img {width:100% !important; height:220px !important; max-height:220px !important; object-fit:contain !important;}
  html body#product:not(.pkm-product-active) .tv-product-page-content {padding:0 !important;}
}

/* Reveal the assistant only after the customer opens it from the mobile nav. */
@media (max-width: 767px) {
  html body#product #zb-ai-assistant:has(.zb-ai-panel.open) { display: block !important; }
}

/* Compact phone home: departments, services, then product collections. */
@media (max-width:767px) {
  html body#index #wrapper .tvcmscontainer-layout,
  html body#index #wrapper .container {padding-left:14px !important; padding-right:14px !important;}
  html body#index #content-wrapper {padding:0 !important;}
  html body#index .zb-mobile-quick {margin:16px 0 18px !important; padding:0 !important;}
  html body#index .zb-mobile-quick__eyebrow {font-size:10px !important; letter-spacing:.06em !important;}
  html body#index .zb-mobile-quick > h2 {font-size:21px !important; line-height:1.2 !important; margin-bottom:12px !important;}
  html body#index .zb-mobile-quick__grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important;}
  html body#index .zb-mobile-quick__grid > a {flex-direction:row !important; justify-content:flex-start !important; min-height:48px !important; padding:8px 10px !important; border:1px solid #dce8e1 !important; border-radius:10px !important; box-shadow:none !important; font-size:12px !important; letter-spacing:0 !important; text-align:left !important; gap:6px !important;}
  html body#index .zb-mobile-quick__grid > a:last-child {grid-column:1/-1 !important; width:100% !important; justify-content:center !important; min-height:44px !important;}
  html body#index .zb-mobile-quick__grid > a > span {flex:0 0 25px !important; font-size:21px !important; margin:0 !important;}
  html body#index .zb-mobile-quick__services {margin-top:12px !important; padding:10px !important; border-radius:12px !important; box-shadow:none !important;}
  html body#index .zb-mobile-quick__services-heading {gap:6px !important; margin-bottom:8px !important;}
  html body#index .zb-mobile-quick__services-icon {width:22px !important; height:22px !important; flex-basis:22px !important; background:transparent !important;}
  html body#index .zb-mobile-quick__services-heading strong {font-size:14px !important; letter-spacing:0 !important;}
  html body#index .zb-mobile-quick__services-links a {grid-template-columns:24px minmax(0,1fr) !important; gap:6px !important; padding:8px 6px !important; min-height:62px !important;}
  html body#index .zb-mobile-quick__services-links a > span:first-child {width:24px !important; height:24px !important;}
  html body#index .zb-mobile-quick__services-links b {display:none !important;}
  html body#index .zb-mobile-quick__services-links strong {font-size:12px !important; letter-spacing:0 !important;}
  html body#index .zb-mobile-quick__services-links small {font-size:10px !important; letter-spacing:0 !important;}
  html body#index .zb-home-collections {margin:0 !important; padding:0 !important; width:100% !important;}
  html body#index .zb-home-collection {margin:0 0 24px !important; padding:0 !important;}
  html body#index .zb-home-collection__heading {margin:0 0 10px !important; gap:8px !important; align-items:center !important;}
  html body#index .zb-home-collection__heading h2 {font-size:19px !important; line-height:1.2 !important; margin:0 !important;}
  html body#index .zb-home-collection__view {font-size:12px !important; white-space:nowrap !important;}
  html body#index .zb-home-collection__products {display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; margin:0 !important;}
  html body#index .zb-home-collections .zb-home-product {width:100% !important; min-width:0 !important; margin:0 !important;}
  html body#index .zb-home-product .tvproduct-image img {height:140px !important; width:100% !important; object-fit:contain !important;}
  html body#index .zb-home-product .tvproduct-name h6 {font-size:13px !important; line-height:1.35 !important; letter-spacing:0 !important;}
  html body .zb-mobile-app-nav {display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; align-items:center !important; padding:4px 8px calc(4px + env(safe-area-inset-bottom)) !important; min-height:64px !important; border-radius:0 !important;}
  html body .zb-mobile-app-nav a {height:56px !important; min-height:56px !important; padding:4px 0 !important; gap:3px !important; transform:none !important;}
  html body .zb-mobile-app-nav a::before, html body .zb-mobile-app-nav a::after {display:none !important;}
  html body .zb-mobile-app-nav a[aria-current="page"] {background:transparent !important; color:#08784c !important;}
  html body .zb-mobile-app-nav .zb-mobile-app-nav__zimmy {width:30px !important; height:30px !important; margin:0 !important; padding:0 !important; border:2px solid #e6f1eb !important; box-shadow:none !important; transform:none !important;}
  html body .zb-mobile-app-nav .zb-mobile-app-nav__zimmy img {width:26px !important; height:26px !important;}
  html body .zb-mobile-app-nav .zb-nav-icon {width:24px !important; height:24px !important;}
}
@media (max-width:767px) {
  html body#index #wrapper .tvcmscontainer-layout {padding:8px 14px 0 !important;}
  html body#index #wrapper .tvcmscontainer-layout > .container {padding:0 !important;}
  html body#index #wrapper .tv-left-layout > .row {margin:0 !important;}
  html body#index .zb-mobile-quick__grid {margin:0 !important;}
}
