/* jednoduché štýly pre porovnanie */
#mp-floating-compare a {
    color: #fff;
    font-weight:600;
}

/* Prázdna stránka */
.mp-compare-empty {
    text-align:center;
    padding:20px;
}

.mp-compare-empty .mp-backlink {
    display:inline-block;
    margin-top:10px;
    padding:10px 20px;
    background:#05141F;
    color:#fff;
    text-decoration:none;
    border-radius: 10px;
}

.mp-compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mp-compare-table {
    width:max-content;
    min-width: 100%;
    border-collapse:collapse;
    overflow-x:auto;
    display:table;
    border-radius: 10px;
}

.mp-compare-table th,
.mp-compare-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.mp-compare-table th:first-child,
.mp-compare-table td:first-child {
    position: sticky;
	color: #ffffff;
    left:0;
    background:#05141F;
    z-index:2;
	border:none;
    min-width: 220px;
    width: 220px;
    max-width: 220px;
}

.mp-compare-table tr:first-child td {
	background: #05141F;
    border: none;
}

/* Obrázky v bunkách */
.vehicle-image-row img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Zvyšné stĺpce (produkty) */
.mp-compare-table th:not(:first-child),
.mp-compare-table td:not(:first-child) {
    min-width: calc((100% - 220px) / 3); /* rozdelí zvyšnú šírku */
    width: calc((100% - 220px) / 3);
    max-width: 1fr;
    text-align: center;
}

/* Ak sú menej ako 3 produkty, rozložíme ich dynamicky */
.mp-compare-table tr > td:not(:first-child):only-child,
.mp-compare-table tr > td:not(:first-child):nth-child(3):last-child {
    width: calc((100% - 180px) / 1);
}

.mp-compare-table tr > td:not(:first-child):nth-child(4):last-child {
    width: calc((100% - 180px) / 2);
}

.floatCompareButton {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  
  /* Začneme s "neviditeľnosťou" pod obrazovkou */
  transform: translate(-50%, 100px); /* trochu pod obrazovkou */

  animation: floatInBounce 0.8s ease-out forwards;
}

@keyframes floatInBounce {
  0% {
    opacity: 0;
    transform: translate(-50%, 100px); /* pod obrazovkou */
  }
  60% {
    opacity: 60;
    transform: translate(-50%, -10px); /* preskočí cieľ */
  }
  80% {
    transform: translate(-50%, 5px); /* jemne sa vráti naspäť */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0); /* finálna pozícia */
  }
}
