/* Lara Sync — dostupnost po radnjama (kartice + tooltip) */

.larasync-availability {
  margin: 1em 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #f3f3f4;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #333;
}

.larasync-availability h3.larasync-availability__title {
  margin: 0 0 0.85rem 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.larasync-live-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  animation: larasync-live-pulse 1.4s ease-in-out infinite;
}

@keyframes larasync-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.larasync-section {
  margin-bottom: 1rem;
}

.larasync-section:last-child {
  margin-bottom: 0;
}

.larasync-section__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #444;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #dcdcdc;
}

.larasync-section--stefanovic .larasync-section__brand {
  margin-top: 0.35rem;
}

.larasync-empty-availability {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e3e3e5;
  border-radius: 8px;
  color: #4b5563;
  font-size: 0.8125rem;
}

.larasync-store-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.larasync-store-card {
  position: relative;
  margin-bottom: 0.5rem;
}

.larasync-store-card:last-child {
  margin-bottom: 0;
}

.larasync-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e3e3e5;
  border-radius: 8px;
  box-sizing: border-box;
}

.larasync-store-name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #222;
}

.larasync-info-trigger {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #bbdefb;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease;
}

.larasync-info-trigger:hover,
.larasync-info-trigger:focus {
  background: #90caf9;
  outline: none;
}

.larasync-info-trigger:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

.larasync-info-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1;
}

/* Tooltip */
.larasync-tooltip-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  padding: 0;
}

.larasync-tooltip-inner {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  line-height: 1.45;
  color: #424242;
}

.larasync-tooltip-line {
  margin: 0 0 0.35rem 0;
}

.larasync-tooltip-line:last-child {
  margin-bottom: 0;
}

.larasync-tooltip-k {
  font-weight: 600;
  color: #555;
}

.larasync-tooltip-empty {
  margin: 0;
  font-style: italic;
  color: #757575;
}

/*
 * Otvaranje panela:
 * – Na uređajima sa mišem: hover na kartici ili klik na „i“ (klasa --open).
 * – Na telefonu/tabletu nema pouzdanog hovera — samo klik na „i“ dodaje --open.
 * Hover pravilo je ograničeno na (hover: hover) da touch ne dobije „zaglavljen“ :hover.
 */
@media (hover: hover) and (pointer: fine) {
  .larasync-store-card:hover .larasync-tooltip-panel {
    display: block;
  }
}

.larasync-store-card--open .larasync-tooltip-panel {
  display: block;
}
