/**
 * AI Visibility Top Bar Styles - ZOPTYMALIZOWANE DLA STANDARD DOM
 */

/* Wrapper styles */
.topbar-wrapper {
  width: 100%;
  position: relative;
  z-index: 9999;
  /* Nowa zasada: Usuwamy animację, jeśli była w wrapperze, lub upewniamy się, że działa */
  animation: slideDown 0.4s ease-out; /* Działa w Standard DOM */
}

/* Uproszczone style kontenera (bez fallbacków) */
.topbar-container {
  background-color: #000000;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}

/* Zwiększenie specyficzności dla tekstu, aby zresetować style motywu (p) */
.topbar-wrapper .topbar-text {
  font-size: 14px;
  line-height: 1.4 !important; /* Użyj !important, aby nadpisać style 'p' z motywu */
  margin: 0 !important;
  color: #ffffff !important;
  /* Resetowanie globalnych stylów */
  font-family: inherit;
  font-weight: normal;
}

.topbar-cta {
  font-weight: 700;
  color: #ffffff;
}

/* Zwiększenie specyficzności dla przycisku (a) */
.topbar-wrapper .topbar-button {
  background-color: #ffffff;
  color: #000000 !important; /* Użyj !important dla koloru tekstu w linku */
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important; /* Użyj !important dla usunięcia podkreślenia linku */
  display: inline-block;
  white-space: nowrap;
}

.topbar-wrapper .topbar-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Zmieniono cień na czarny, dla kontrastu z białym tłem */
}

/* Styl dla przycisku zamykania */
.topbar-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.topbar-close:hover {
  opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Usuwamy niepotrzebne :not(:defined) i [data-no-shadow] z media queries */
  .topbar-container {
    padding: 12px 15px;
    gap: 15px;
  }

  .topbar-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .topbar-wrapper .topbar-text {
    font-size: 13px;
  }

  .topbar-wrapper .topbar-button {
    font-size: 13px;
    padding: 8px 20px;
  }
}

/* Animacja i style drukowania bez zmian */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar-wrapper {
  animation: slideDown 0.4s ease-out;
}

@media print {
  .topbar-wrapper {
    display: none !important;
  }
}
