/* Cookie Consent Banner & Modal - Derbilusa (RGPD / Portugal) */
.cc-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 960px;
  margin: 0 auto;
  background-color: #FFFFFF;
  color: #182026;
  border: 1px solid #CBD5E1;
  border-top: 4px solid #1B4332;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  padding: 1.25rem 1.4rem;
  z-index: 9999;
  display: none;
}

.cc-banner.visible {
  display: block;
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B4332;
  margin: 0;
}

.cc-text {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
}

.cc-cat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.cc-cat-item input {
  margin-top: 0.22rem;
  accent-color: #1B4332;
}

.cc-cat-desc {
  display: block;
  font-size: 0.77rem;
  color: #64748B;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cc-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.52rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #1B4332;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-btn-necessary {
  background-color: transparent;
  color: #1B4332;
}

.cc-btn-necessary:hover {
  background-color: #EFF4F8;
}

.cc-btn-selected {
  background-color: #FFFFFF;
  color: #1B4332;
  border-color: #C59B27;
}

.cc-btn-selected:hover {
  background-color: rgba(197, 155, 39, 0.14);
}

.cc-btn-all {
  background-color: #1B4332;
  color: #FFFFFF;
}

.cc-btn-all:hover {
  background-color: #133124;
}
