/**
 * Terson: wstazki przy prawej krawedzi.
 * Zakladka ma ksztalt chorągiewki z grotem po lewej i dopasowuje szerokosc
 * do dlugosci napisu, w jednej linii, do 280 px. Karta z opisem wysuwa sie
 * po najechaniu. Na telefonach wstazki sa ukryte.
 */

.terson-wstazki {
  position: fixed;
  top: 34%;
  right: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
}

.terson-wstazka {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.terson-wstazka__uchwyt {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 280px;
  height: 38px;
  padding: 0 14px 0 26px;
  overflow: hidden;
  background: #018FBC;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
}

.terson-wstazka--petrol .terson-wstazka__uchwyt {
  background: #0D2F40;
}

.terson-wstazka--alarm .terson-wstazka__uchwyt {
  background: #A32017;
}

/* Karta stoi po lewej stronie zakladki i nie wplywa na jej szerokosc. */
.terson-wstazka__karta {
  position: absolute;
  right: 100%;
  top: 0;
  width: 290px;
  padding: 16px 18px;
  background: #0D2F40;
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.terson-wstazka--petrol .terson-wstazka__karta,
.terson-wstazka--alarm .terson-wstazka__karta {
  background: #071820;
}

.terson-wstazka:hover .terson-wstazka__karta,
.terson-wstazka:focus-within .terson-wstazka__karta {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.terson-wstazka__tytul {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.terson-wstazka__tekst {
  margin: 0 0 12px;
  color: #B4C1C6;
  font-size: 13px;
  line-height: 1.5;
}

.terson-wstazka__link {
  display: inline-block;
  padding: 8px 14px;
  background: #018FBC;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.terson-wstazka--alarm .terson-wstazka__link {
  background: #A32017;
}

.terson-wstazka__link:hover,
.terson-wstazka__link:focus {
  background: #FFFFFF;
  color: #0D2F40;
}

@media (max-width: 991px) {
  .terson-wstazki {
    display: none;
  }
}

@media print {
  .terson-wstazki {
    display: none;
  }
}
