/* Górny pasek: zalety sklepu z okienkami, „Dlaczego my?” na telefonie, kontakt. */

.xs-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--xs-radius);
  background: var(--xs-surface);
}

/* ---------- Górny pasek ---------- */
.xs-topbar {
  background: var(--xs-dark);
  color: var(--xs-on-dark);
  font-size: 13px;
}

.xs-topbar a,
.xs-topbar button {
  color: inherit;
}

.xs-topbar a:hover,
.xs-topbar button:hover {
  color: var(--xs-brand);
}

.xs-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.xs-topbar__perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xs-topbar__perks > li + li::before {
  content: "•";
  margin-right: 28px;
  color: #8a8883;
}

.xs-topbar__perks > li {
  display: inline-flex;
  align-items: center;
}

.xs-topbar__stars {
  color: var(--xs-brand);
  font-size: 12px;
  letter-spacing: 1px;
}

.xs-topbar__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.xs-topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Okienka po najechaniu (opinie, wysyłka) — CSS, bez skryptów; działają też z klawiatury. */
.xs-pop {
  position: relative;
}

.xs-pop__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

a.xs-pop__trigger {
  cursor: pointer;
}

.xs-pop__trigger svg {
  opacity: 0.7;
}

.xs-pop__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 40;
  width: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--xs-surface);
  color: var(--xs-text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: var(--xs-shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* Mostek nad okienkiem, żeby dało się na nie przejechać kursorem bez znikania. */
.xs-pop__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.xs-pop__panel::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--xs-surface);
  transform: translateX(-50%) rotate(45deg);
}

.xs-pop:hover .xs-pop__panel,
.xs-pop:focus-within .xs-pop__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.xs-pop__panel--text {
  text-align: center;
  display: block;
}

.xs-pop__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xs-topbar .xs-pop__panel a.xs-pop__more {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--xs-line-soft);
  font-weight: 600;
  color: var(--xs-brand-text);
}

/* „Dlaczego my?” tylko na telefonie */
.xs-why {
  display: none;
  position: relative;
}

.xs-why summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  cursor: pointer;
  list-style: none;
}

.xs-why summary::-webkit-details-marker {
  display: none;
}

.xs-why__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -4px;
  z-index: 40;
  width: 250px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--xs-surface);
  color: var(--xs-text);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: var(--xs-shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xs-topbar .xs-why__panel a {
  color: var(--xs-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .xs-topbar {
    font-size: 12px;
  }

  .xs-topbar__inner {
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .xs-topbar__perks,
  .xs-topbar__email {
    display: none;
  }

  .xs-why {
    display: block;
  }

  .xs-topbar__contact {
    gap: 14px;
  }
}
