/* Toplifikacija — Bočni kontakt tasteri v1.4.0. All selectors scoped. */
.thk-sc {
  position: fixed;
  z-index: 90;
  left: 0;
  top: 52%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.thk-sc__link,
.thk-sc__link:visited {
  box-sizing: border-box;
  width: 194px;
  height: 52px;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  transform: translateX(calc(-100% + 52px));
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--thk-sc-bg, #183e5a);
  color: #fff !important;
  text-decoration: none !important;
  font: 600 13px/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: .005em;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .26s cubic-bezier(.22,.77,.24,1), filter .2s ease, box-shadow .2s ease;
  pointer-events: auto;
  outline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.thk-sc__label {
  padding: 0 8px 0 12px;
  text-align: right;
  white-space: normal;
}
/* The consumer-service label is longer; let it fit without spilling. */
@media (min-width: 768px) {
  .thk-sc__link--call { width: 256px; }
}
.thk-sc__mobile-label { display: none; }
.thk-sc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.thk-sc__icon svg {
  display: block;
  width: 23px;
  height: 23px;
  color: #fff;
  stroke: currentColor;
}
@media (hover: hover) and (min-width: 768px) {
  .thk-sc__link:hover {
    transform: translateX(0);
    filter: brightness(1.055);
    box-shadow: 0 8px 25px rgba(0,0,0,.28);
  }
}
.thk-sc__link:focus-visible,
.thk-sc__link:focus {
  transform: translateX(0);
  outline: 3px solid #ffcf65;
}
@media (max-width: 767px) {
  .thk-sc--desktop-only { display: none !important; }
  .thk-sc {
    left: env(safe-area-inset-left, 0px);
    top: 52%;
    gap: 7px;
  }
  /* Backward-compatible icon-only mode when mobile expansion is switched off. */
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link,
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link:visited {
    width: 46px;
    height: 46px;
    min-height: 46px;
    display: flex;
    transform: none;
    border-radius: 0 11px 11px 0;
  }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__label { display: none; }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__icon { width: 46px; height: 46px; }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__icon svg { width: 21px; height: 21px; }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link:focus-visible,
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link:focus { transform: none; }

  /* Animated slide-out: first tap reveals WHO is being called; second tap follows tel:. */
  .thk-sc--mobile-expand .thk-sc__link,
  .thk-sc--mobile-expand .thk-sc__link:visited {
    width: min(280px, calc(100vw - 12px));
    height: 61px;
    min-height: 61px;
    grid-template-columns: minmax(0, 1fr) 52px;
    transform: translateX(calc(-100% + 52px));
    border-radius: 0 12px 12px 0;
    font-size: 12px;
  }
  .thk-sc--mobile-expand .thk-sc__label { display: none; }
  .thk-sc--mobile-expand .thk-sc__mobile-label {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 5px 8px 5px 12px;
    text-align: left;
  }
  .thk-sc__mobile-title {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .thk-sc__mobile-detail {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    opacity: .94;
  }
  .thk-sc--mobile-expand .thk-sc__icon { width: 52px; height: 61px; }
  .thk-sc--mobile-expand .thk-sc__icon svg { width: 23px; height: 23px; }
  .thk-sc--mobile-expand .thk-sc__link:focus {
    transform: translateX(calc(-100% + 52px));
    outline: none;
  }
  .thk-sc--mobile-expand .thk-sc__link.is-open,
  .thk-sc--mobile-expand .thk-sc__link.is-open:focus {
    transform: translateX(0);
    filter: brightness(1.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .thk-sc--mobile-expand .thk-sc__link:focus-visible {
    transform: translateX(0);
    outline: 3px solid #ffcf65;
    outline-offset: 2px;
  }

  /* v1.3: smaller mobile controls. Minimum visible tappable width remains 44 px. */
  .thk-sc--mobile-compact.thk-sc { gap: 5px; }
  .thk-sc--mobile-compact:not(.thk-sc--mobile-expand) .thk-sc__link,
  .thk-sc--mobile-compact:not(.thk-sc--mobile-expand) .thk-sc__link:visited {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 0 9px 9px 0;
  }
  .thk-sc--mobile-compact:not(.thk-sc--mobile-expand) .thk-sc__icon {
    width: 44px;
    height: 44px;
  }
  .thk-sc--mobile-compact:not(.thk-sc--mobile-expand) .thk-sc__icon svg {
    width: 19px;
    height: 19px;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link,
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link:visited {
    width: min(258px, calc(100vw - 12px));
    height: 48px;
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) 44px;
    transform: translateX(calc(-100% + 44px));
    border-radius: 0 9px 9px 0;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__mobile-label {
    gap: 1px;
    padding: 3px 6px 3px 9px;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__mobile-title {
    font-size: 11px;
    line-height: 1.15;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__mobile-detail {
    font-size: 10px;
    line-height: 1.15;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__icon {
    width: 44px;
    height: 48px;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__icon svg {
    width: 19px;
    height: 19px;
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link:focus {
    transform: translateX(calc(-100% + 44px));
  }
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link.is-open,
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link.is-open:focus,
  .thk-sc--mobile-compact.thk-sc--mobile-expand .thk-sc__link:focus-visible {
    transform: translateX(0);
  }
}
@media (max-width: 767px) and (max-height: 460px) {
  .thk-sc { top: 50%; gap: 4px; }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link,
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__link:visited {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .thk-sc:not(.thk-sc--mobile-expand) .thk-sc__icon { width: 40px; height: 40px; }
  .thk-sc--mobile-expand:not(.thk-sc--mobile-compact) .thk-sc__link,
  .thk-sc--mobile-expand:not(.thk-sc--mobile-compact) .thk-sc__link:visited {
    height: 53px;
    min-height: 53px;
  }
  .thk-sc--mobile-expand:not(.thk-sc--mobile-compact) .thk-sc__icon { height: 53px; }
}
@media (prefers-reduced-motion: reduce) {
  .thk-sc__link { transition: none; }
}
@media print { .thk-sc { display: none !important; } }
