/* ===================================================================
 * Tekment.dk – Cookie-samtykke banner (matcher sitets visuelle udtryk)
 * Farver:  --tekment-green: #7dbb4b   |   --tekment-ink: #1f2933
 * Designet som diskret bundbanner – påvirker ikke eksisterende layout.
 * ===================================================================*/

#tekment-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #ffffff;
  color: #1f2933;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.10);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  animation: tcSlide 0.35s ease-out;
}

@keyframes tcSlide {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#tekment-consent .tc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

#tekment-consent .tc-text {
  flex: 1 1 420px;
  min-width: 280px;
}
#tekment-consent .tc-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
#tekment-consent .tc-text p {
  margin: 0;
  color: #37434f;
}
#tekment-consent .tc-text a {
  color: #5a8c36;
  text-decoration: underline;
}
#tekment-consent .tc-text a:hover { color: #426724; }

#tekment-consent .tc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#tekment-consent .tc-btn {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
#tekment-consent .tc-btn:active { transform: translateY(1px); }

#tekment-consent .tc-btn-primary {
  background: #7dbb4b;
  color: #ffffff;
}
#tekment-consent .tc-btn-primary:hover { background: #67a23a; }

#tekment-consent .tc-btn-secondary {
  background: #ffffff;
  color: #1f2933;
  border: 1px solid rgba(0,0,0,0.18);
}
#tekment-consent .tc-btn-secondary:hover {
  background: #f4f7ef;
  border-color: #7dbb4b;
  color: #426724;
}

#tekment-consent .tc-custom {
  flex: 1 1 100%;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
/* Sikrer at detaljerede checkbokse er skjult indtil brugeren klikker "Tilpas" */
#tekment-consent .tc-custom[hidden] {
  display: none !important;
}
#tekment-consent .tc-custom label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  user-select: none;
}
#tekment-consent .tc-custom input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7dbb4b;
}
#tekment-consent .tc-custom .tc-btn {
  margin-left: auto;
}

/* Mobil */
@media (max-width: 640px) {
  #tekment-consent .tc-inner { padding: 14px 16px; }
  #tekment-consent .tc-actions { width: 100%; justify-content: stretch; }
  #tekment-consent .tc-actions .tc-btn { flex: 1 1 auto; text-align: center; }
  #tekment-consent .tc-custom .tc-btn { margin-left: 0; width: 100%; }
}
