/* Customer contact numbers share one compact row. */
.tk-store .tk-header-phones { display:flex; align-items:center; gap:24px; margin-left:auto; }
.tk-store .tk-business-contact .tk-business-phone {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:24px; gap:6px; color:inherit; line-height:1.4; white-space:nowrap;
}
.tk-store .tk-business-phone small { font-size:12px; font-weight:400; }
.tk-store .tk-business-phone strong { font-size:14px; font-weight:600; }
.tk-store .tk-business-phone .tk-phone-prefix, .tk-store .tk-business-phone .tk-phone-audience { display:inline!important; }
.tk-store .tk-business-phone:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media (max-width:991px) {
  .tk-store .tk-business-contact>.container>span:nth-child(2) { display:none!important; }
}
/* Contact button rests near the viewport edge; mobile clears the cart bar. */
.tk-store #ts-mw-id.ts-mw-button {
  bottom:16px!important;
  bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;
}
.tk-store #ts-mw-id .ts-mw-pulse { pointer-events:none; }
.tk-store .tk-footer-contact-shortcut { display:none; }
@media (max-width:767px) {
  .tk-store .tk-header .tk-utility.tk-business-contact { display:none!important; }
  .tk-store #ts-mw-id.ts-mw-button {
    bottom:66px!important;
    bottom:calc(66px + env(safe-area-inset-bottom, 0px))!important;
  }
  /* Clip only the decorative ripple; the contact menu still opens upward. */
  .tk-store #ts-mw-id .ts-mw-pulse { clip-path:inset(-20px -20px 0 -20px); }
  .tk-store .tk-footer-contact-shortcut { display:list-item; }
  .tk-store .tk-footer-contact-details { display:none; }
}

/* Release69: full-width mobile search, aligned with the page content. */
@media (max-width:768px) {
  .tk-store .tk-header #search .header-search__form { margin:0; }
}
@media (max-width:767px) {
  .tk-store .tk-header .tk-header-row {
    grid-template-columns:44px minmax(0,1fr) 44px;
    grid-template-rows:44px 48px;
    gap:10px 8px!important;
    padding:10px 14px 14px!important;
    min-height:0;
  }
  .tk-store .tk-header .tk-header-row>.tk-brand {
    grid-column:2!important;
    grid-row:1!important;
    display:block;
  }
  .tk-store .tk-header .tk-header-row>.tk-catalog-button {
    grid-column:1!important;
    grid-row:1!important;
    width:44px;
    height:44px;
    min-height:44px;
    padding:10px;
    border-radius:11px;
  }
  .tk-store .tk-header .tk-header-row>.tk-actions {
    grid-column:3!important;
    grid-row:1!important;
    width:44px;
    height:44px;
    align-items:center;
  }
  .tk-store .tk-header .tk-actions #cart>.header-cart__btn {
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
  }
  .tk-store .tk-header .tk-header-row>#search.tk-search {
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%;
    height:48px;
    min-width:0;
    margin:0!important;
  }
  .tk-store .tk-header #search .header-search__form {
    width:100%;
    height:48px;
    min-height:48px;
    border:1px solid #dfe5e8;
    border-radius:12px;
    background:#f5f7f8;
  }
  .tk-store .tk-header #search .header-search { height:48px; }
  .tk-store .tk-header #search .header-search__form:focus-within {
    border-color:var(--tk-accent,#c64720);
    box-shadow:0 0 0 3px rgba(198,71,32,.09);
    background:#fff;
  }
  .tk-store .tk-header #search .header-search__input {
    width:100%;
    min-width:0;
    height:46px;
    padding:0 44px 0 46px!important;
    border:0;
    border-radius:11px;
    background:transparent;
    box-shadow:none;
    font-size:16px;
    text-align:left;
  }
  .tk-store .tk-header #search .header-search__input::placeholder { color:#75818a; opacity:1; }
  .tk-store .tk-header #search .header-search__btn {
    left:1px;
    right:auto;
    top:1px;
    width:44px;
    min-width:44px;
    height:44px;
    padding:11px;
    border-radius:10px;
    color:#65717b;
  }
  .tk-store .tk-header #search .tk38-search-clear {
    left:auto;
    right:1px;
    width:44px;
    height:44px;
    border-radius:10px;
  }
  .tk-store .tk-header #search button:focus-visible {
    outline:2px solid var(--tk-accent,#c64720)!important;
    outline-offset:-3px;
  }
  .tk-store.tk-scrolled .tk-header .tk-header-row {
    grid-template-rows:48px;
    gap:8px!important;
    padding:7px 14px!important;
  }
  .tk-store.tk-scrolled .tk-header .tk-header-row>.tk-brand { display:none!important; }
  .tk-store.tk-scrolled .tk-header .tk-header-row>#search.tk-search {
    grid-column:2!important;
    grid-row:1!important;
  }
  .tk-store.tk-scrolled .tk-header #search .header-search { height:48px!important; }
  .tk-store.tk-scrolled .tk-header #search .header-search__input { height:46px!important; }
  .tk-store.tk-scrolled .tk-header #search .header-search__btn { height:44px!important; }
}

/* Release71: retain the home link in the compact mobile header. */
.tk-store .tk71-back-top { display:none; }
/* Category sorting is meaningful only where the parameter filter is available. */
.tk-store.tk71-category-no-filters .tk-category-page .sorts-block,
.tk-store.tk71-category-no-filters .tk-category-page #content .sorts-block { display:none!important; }
@media (max-width:767px) {
  .tk-store.tk-scrolled .tk-header .tk-header-row {
    grid-template-columns:44px auto minmax(0,1fr) 40px;
    grid-template-rows:48px;
    gap:6px!important;
  }
  .tk-store.tk-scrolled .tk-header .tk-header-row>.tk-brand {
    display:block!important;
    grid-column:2!important;
    grid-row:1!important;
    font-size:20px!important;
    letter-spacing:-.9px;
    line-height:44px;
    min-height:44px;
  }
  .tk-store.tk-scrolled .tk-header .tk-header-row>#search.tk-search {
    grid-column:3!important;
    grid-row:1!important;
  }
  .tk-store.tk-scrolled .tk-header .tk-header-row>.tk-actions {
    grid-column:4!important;
    grid-row:1!important;
    width:40px;
  }
  .tk-store.tk-scrolled .tk-header .tk-actions #cart>.header-cart__btn { width:40px; }
  .tk-store.tk-scrolled .tk-header #search .header-search__input {
    padding-left:34px!important;
    padding-right:32px!important;
  }
  .tk-store.tk-scrolled .tk-header #search .header-search__input:placeholder-shown {
    padding-right:8px!important;
  }
  .tk-store.tk-scrolled .tk-header #search .header-search__btn {
    width:32px;
    min-width:32px;
    padding:7px;
  }
  .tk-store.tk-scrolled .tk-header #search .tk38-search-clear {
    width:32px;
    padding:0;
  }
  .tk-store .tk-header .tk-brand:focus-visible {
    outline:2px solid var(--tk-accent,#c64720)!important;
    outline-offset:3px;
    border-radius:3px;
  }
  .tk-store .tk71-back-top:not([hidden]) {
    position:fixed;
    left:14px;
    bottom:80px;
    bottom:calc(80px + env(safe-area-inset-bottom,0px));
    z-index:1039;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid #dfe5e8;
    border-radius:50%;
    background:#fff;
    color:var(--tk-ink,#232a33);
    box-shadow:0 3px 14px rgba(35,42,51,.14);
  }
  .tk-store .tk71-back-top svg { width:22px; height:22px; pointer-events:none; }
  .tk-store .tk71-back-top:hover { color:var(--tk-accent,#c64720); }
  .tk-store .tk71-back-top:focus-visible {
    outline:2px solid var(--tk-accent,#c64720)!important;
    outline-offset:3px;
  }
  /* The legacy compact rule removed horizontal padding from group headings. */
  .tk-store .tk-filter-dialog .tk-mobile-filter-group { margin-bottom:10px; }
  .tk-store .tk-filter-dialog .tk-mobile-filter-group:last-child { margin-bottom:0; }
  .tk-store .tk-filter-dialog .tk-mobile-filter-group>summary {
    min-height:54px;
    padding:16px;
    line-height:1.4;
    overflow-wrap:anywhere;
  }
  .tk-store .tk-filter-dialog .tk-mobile-filter-group>summary::after {
    flex:none;
    width:20px;
    text-align:center;
    line-height:1;
  }
  .tk-store .tk-filter-dialog .tk-mobile-filter-options { padding:4px 16px 16px; }
  .tk-store .tk-filter-dialog .tk-mobile-filter-choice {
    min-height:44px;
    padding:10px 0;
  }
}
