/*
 * 2026-10-18 | Service detail (six pages): stores CTA PC + 3-column SP.
 * Loaded only by the six service detail templates. Other pages keep the old 2-column nav.
 * User-provided white ss-icon.png is used unmodified.
 */
body.kt-service-detail-page .kt-shaken-stores-intro {
  display: flow-root;
  position: relative;
}
body.kt-service-detail-page .kt-shaken-stores-primary {
  position: absolute;
  z-index: 3;
  bottom: -8px;
  left: var(--sd-content-pad);
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  width: 216px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 20px;
  background: var(--kt-accent-fill, #1f6fd6);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  transition: background-color .2s ease;
}
body.kt-service-detail-page .kt-shaken-stores-primary:hover {
  background: #1254b2;
  color: #fff;
}
body.kt-service-detail-page .kt-shaken-stores-primary i {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 26px;
}
body.kt-service-detail-page .kt-shaken-stores-primary i::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
body.kt-service-detail-page .kt-shaken-stores-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (min-width: 1024px) {
  body.kt-service-detail-page .kt-shaken-stores-intro .sdi-tx { bottom: 84px; }
}

/* The SP bottom bar always exposes the stores destination: no floating overlap. */
@media (max-width: 1023px) {
  body.kt-service-detail-page .kt-shaken-stores-primary { display: none; }

  body.kt-service-detail-page .kt-sp-cta.kt-sp-cta--stores-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: var(--kt-cta-h-sp, 58px);
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a {
    min-width: 0;
    min-height: var(--kt-cta-h-sp, 58px);
    padding: 0 3px;
    gap: 5px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .02em;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.16);
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a:last-child {
    border-right: 0;
    background: var(--kt-navy, #1e2e4f);
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a::after {
    content: '';
    width: 12px;
    height: 1px;
    margin: 0;
    display: block;
    flex: 0 0 12px;
    background: rgba(255,255,255,.85);
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a.kt-sp-cta__stores {
    gap: 7px;
    /* Existing site's muted blue: distinct from CONTACT (#1F6FD6). */
    background: #2e6ba8;
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a:nth-child(2) {
    /* Keep the existing CONTACT blue independent of unrelated stylesheets. */
    background: var(--kt-accent-fill, #1f6fd6);
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a.kt-sp-cta__stores::after {
    display: none;
    content: none;
  }
  body.kt-service-detail-page .kt-sp-cta__stores-icon {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    object-fit: contain;
  }
  body.kt-service-detail-page .kt-sp-cta__stores-label {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    min-width: 0;
    /* Fit both words in one row when space permits; wrap only between words. */
    white-space: normal;
  }
  body.kt-service-detail-page .kt-sp-cta__stores-label > span {
    white-space: nowrap;
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a:active {
    filter: brightness(.90);
  }
}
@media (max-width: 359px) {
  body.kt-service-detail-page .kt-sp-cta--stores-three > a {
    gap: 3px;
    font-size: 11px;
    letter-spacing: 0;
    padding: 0 2px;
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a::after {
    width: 9px;
    flex-basis: 9px;
  }
  body.kt-service-detail-page .kt-sp-cta--stores-three > a.kt-sp-cta__stores { gap: 5px; }
  body.kt-service-detail-page .kt-sp-cta__stores-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-basis: 18px;
  }
  body.kt-service-detail-page .kt-sp-cta__stores-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body.kt-service-detail-page .kt-shaken-stores-primary { transition: none; }
}
