/* === COMMENT WRAPPER (KEIN RAHMEN) === */
.comment-wrapper {
  margin-top: 2rem;
}

.comment-section {
  /* Kein Styling - clean */
}

/* === KOMMENTARE-BUTTON (ROUNDED PILL) === */
.comment-header {
  margin-bottom: 1rem;
}

.comment-toggle-btn {
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid #6c757d;
  color: #6c757d;
  background-color: transparent;
  transition: all 0.3s ease;
  font-weight: 700 !important;
}

.comment-toggle-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.comment-toggle-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

/* === KOMMENTARINHALT (KEIN RAHMEN) === */
.comment-content {
  /* Kein Styling - clean */
}

.comment-content-body {
  padding-top: 1rem;
}

/* === EINSTELLUNGEN-LINK (KEIN ACCORDION-STYLING) === */
.settings-toggle {
  margin-bottom: 1rem;
}

.settings-link {
  color: #0d6efd;
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.settings-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.settings-link .chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-right: 0.25rem;
}

/* === EINSTELLUNGEN-INHALT === */
.settings-content {
  /* Kein spezielles Styling */
}

.settings-body {
  padding: 1rem 0;
  background-color: var(--salto-community-background-2);
}

/* === CONSENT SWITCH === */
.comment-consent-block {
  padding-bottom: 1rem;
}

.offscreen {
  position: absolute;
  left: -9999px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  background-color: #ccc;
  border-radius: 22px;
  transition: background 0.3s;
  cursor: pointer;
  vertical-align: middle;
}

.switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 22px;
  background-color: #fff;
  top: 1px;
  left: 1px;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

input[type='checkbox']:checked + .switch {
  background-color: #4CAF50;
}

input[type='checkbox']:checked + .switch::after {
  transform: translateX(22px);
}

.switch-text {
  font-size: 1em;
  vertical-align: middle;
  user-select: none;
}

/* === BLUR EFFECT === */
.comment-blur-container.comment-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* === COMMENTS CONTENT === */
.comments-content {
  margin-top: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .comment-toggle-btn {
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
  }
  
  .comment-consent-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  
  .switch-text {
    font-size: 0.9em;
  }
}


/* Additional CSS */
.block-comment-consent-block .btn.btn-outline-secondary.rounded-pill.comment-toggle-btn {
  background-color: var(--salto-community-primary);  
  color: white;
  border-color: var(--salto-community-primary);
}
.block-comment-consent-block a {
  color: var(--salto-community-primary);
}

.block-comment-consent-block .settings-link {
  margin-bottom: 0;
  border-bottom: 1px solid #616971;
  text-decoration: none;
  color: #616971;

}

.block-comment-consent-block .community-explanation {
  font-weight: 700;
  color: var(--salto-community-primary);
}

input[type="checkbox"]:checked + .switch {
  background-color: var(--salto-community-primary);
}

/**
 * Styles for login to comment block
 **/

.login-to-write {
  background-color: var(--salto-community-primary);
  color: #fff;
}

.login-to-write a {
  background-color: var(--salto-community-primary);
  font-weight: 700;
  cursor: pointer;
}

.block-comment-consent-block .btn.btn-outline-secondary.rounded-pill.comment-toggle-btn {
	font-weight: 700;
}


.block.block-comment-consent-block {
  max-width: 720px;
  margin: auto;
}

.block.block-comment-consent-block .btn {
  background-color: var(--salto-community-primary);
  border-radius: 2rem;
  border: none;
  font-weight: 700 !important;
}
