/* cookie-banner.css */

/* Glavni baner pri dnu stranice */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: none; /* prikazuje ga JS (flex) */
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.875rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

#cookie-banner .cb-text a {
  color: var(--fertico-green, #72BC23);
  text-decoration: underline;
}

#cookie-banner .cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

#cookie-banner .cb-btn {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8125rem;
}

#cookie-banner .cb-btn.primary {
  background: var(--fertico-green, #72BC23);
  border-color: var(--fertico-green, #72BC23);
  color: #fff;
}

#cookie-banner .cb-btn:hover {
  opacity: 0.9;
}

/* Modal sa detaljnim podešavanjima */
#cookie-settings-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1051;
  background: rgba(0, 0, 0, 0.6);
}

#cookie-settings {
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
}

#cookie-settings h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--fertico-green, #72BC23);
}

#cookie-settings p {
  margin-bottom: 1rem;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.cookie-row span {
  flex: 1;
}

.cookie-row input[type="checkbox"] {
  flex: 0 0 auto;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 767.98px) {
  #cookie-banner {
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  #cookie-banner {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
