/**
 * @file
 * MyEvent Comment Wall component.
 *
 * Everything is scoped to the Event Group shoutbox so Drupal's other comment
 * displays and administrative screens retain their existing presentation.
 */

.group.group--full.group--event-group .view-shoutbox {
  --myevent-comment-accent: #743cfb;
  --myevent-comment-accent-dark: #5f2ae5;
  --myevent-comment-accent-soft: #f1ebff;
  --myevent-comment-ink: #292738;
  --myevent-comment-muted: #716d80;
  --myevent-comment-border: #e4dfed;
  --myevent-comment-danger: #cf3f5b;
  background: #fff1d81a;
  margin: 25px;
}

.group.group--full.group--event-group
.view-shoutbox .comment-wrapper {
  box-sizing: border-box;
  margin: clamp(2rem, 4vw, 3.75rem) auto 1.5rem;
  max-width: 1100px;
  padding: 0 clamp(0.25rem, 1.5vw, 1rem);
}

/* Section introduction. */
.group.group--full.group--event-group
.view-shoutbox .myevent-comment-wall__intro {
  margin: 0 auto 1.5rem;
  max-width: 44rem;
  text-align: center;
}

.group.group--full.group--event-group
.view-shoutbox .myevent-comment-wall__title {
  align-items: center;
  color: var(--myevent-comment-ink) !important;
  display: inline-flex;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 750;
  gap: 0.65rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
  text-shadow: none !important;
}

.group.group--full.group--event-group
.view-shoutbox .myevent-comment-wall__title::before {
  background-color: var(--myevent-comment-accent);
  content: "";
  display: block;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.5 9.4 9.4 0 0 1-3.8-.8L3 21l1.7-4.6A8.1 8.1 0 0 1 3 11.5 8.4 8.4 0 0 1 12 3a8.4 8.4 0 0 1 9 8.5Z'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.5 9.4 9.4 0 0 1-3.8-.8L3 21l1.7-4.6A8.1 8.1 0 0 1 3 11.5 8.4 8.4 0 0 1 12 3a8.4 8.4 0 0 1 9 8.5Z'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 1.65rem;
}

.group.group--full.group--event-group
.view-shoutbox .myevent-comment-wall__description {
  color: var(--myevent-comment-muted) !important;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0.6rem 0 0;
}

/* Comment composer. */
.group.group--full.group--event-group
.view-shoutbox .add-comment {
  background: #fff;
  border: 1px solid #ded6f4;
  border-radius: 0.9rem;
  /* box-shadow: 0 0.65rem 1.8rem rgb(65 44 118 / 8%); */
  box-sizing: border-box;
  margin: 0 0 1rem;
  padding: 1.2rem 1.2rem 1.2rem 4.9rem;
  position: relative;
}

.group.group--full.group--event-group
.view-shoutbox .add-comment::before {
  align-items: center;
  background-color: #3b3941;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  border-radius: 50%;
  color: #fff;
  content: "";
  display: flex;
  font-size: 0.95rem;
  font-weight: 750;
  height: 2.8rem;
  justify-content: center;
  left: 1.25rem;
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  width: 2.8rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form,
.group.group--full.group--event-group
.view-shoutbox .comment-form .form-item,
.group.group--full.group--event-group
.view-shoutbox .comment-form .form-textarea-wrapper {
  margin: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form textarea.form-textarea {
  background: #fff;
  border: 1px solid #dcd8e6;
  border-radius: 0.6rem;
  box-shadow: inset 0 1px 2px rgb(31 26 43 / 3%);
  box-sizing: border-box;
  color: var(--myevent-comment-ink);
  display: block;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 5rem;
  padding: 0.9rem 1rem;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form textarea.form-textarea::placeholder {
  color: #8a8596;
  opacity: 1;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form textarea.form-textarea:focus {
  border-color: var(--myevent-comment-accent);
  box-shadow: 0 0 0 3px rgb(116 60 251 / 13%);
  outline: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form .js-filter-wrapper {
  display: none;
}

.group.group--full.group--event-group
.view-shoutbox .myevent-comment-wall__helper {
  color: var(--myevent-comment-muted) !important;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.5rem 0 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0.8rem 0 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form .shoutbox-custom-submit {
  align-items: center;
  background: var(--myevent-comment-accent) !important;
  border: 1px solid var(--myevent-comment-accent) !important;
  border-radius: 0.55rem !important;
  box-shadow: 0 0.4rem 0.9rem rgb(116 60 251 / 18%);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.72rem 1.2rem;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.group.group--full.group--event-group
.view-shoutbox .comment-form .shoutbox-custom-submit:hover,
.group.group--full.group--event-group
.view-shoutbox .comment-form .shoutbox-custom-submit:focus-visible {
  background: var(--myevent-comment-accent-dark) !important;
  border-color: var(--myevent-comment-accent-dark) !important;
  box-shadow: 0 0.55rem 1.1rem rgb(116 60 251 / 24%);
  transform: translateY(-1px);
}

/* Individual comments. */
.group.group--full.group--event-group
.view-shoutbox article.comment {
  background: #fff;
  border: 1px solid var(--myevent-comment-border);
  border-radius: 0.9rem;
  box-shadow: 0 0.45rem 1.35rem rgb(36 28 55 / 6%);
  box-sizing: border-box;
  display: grid !important;
  gap: 0;
  grid-template-columns: 3.05rem minmax(0, 1fr);
  margin: 0 0 0.85rem;
  min-height: 0;
  padding: 1.15rem 1.25rem;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.group.group--full.group--event-group
.view-shoutbox article.comment:hover {
  border-color: #d8cff0;
  box-shadow: 0 0.75rem 1.8rem rgb(36 28 55 / 9%);
  transform: translateY(-1px);
}

.group.group--full.group--event-group
.view-shoutbox .comment__header {
  align-items: center;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 3.05rem minmax(0, 1fr) auto;
  margin: 0;
  min-width: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__picture {
  grid-column: 1;
  grid-row: 1;
}

.group.group--full.group--event-group
.view-shoutbox .comment__avatar {
  align-items: center;
  background: #3b3941;
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.95rem;
  font-weight: 750;
  height: 2.65rem;
  justify-content: center;
  line-height: 1;
  width: 2.65rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__picture img {
  border: 0 !important;
  border-radius: 50% !important;
  height: 2.65rem !important;
  object-fit: cover;
  width: 2.65rem !important;
}

.group.group--full.group--event-group
.view-shoutbox .comment__header-info {
  grid-column: 2;
  min-width: 0;
  padding-right: 0.75rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__author {
  color: var(--myevent-comment-ink) !important;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 0.16rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__author a {
  color: inherit !important;
  text-decoration: none;
}

.group.group--full.group--event-group
.view-shoutbox .comment__author a:hover {
  color: var(--myevent-comment-accent) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.group.group--full.group--event-group
.view-shoutbox .comment__time {
  color: var(--myevent-comment-muted);
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
}

.group.group--full.group--event-group
.view-shoutbox .comment__permalink {
  align-self: start;
  grid-column: 3;
  justify-self: end;
}

.group.group--full.group--event-group
.view-shoutbox .comment__permalink a,
.group.group--full.group--event-group
.view-shoutbox .comment__permalink svg {
  color: #777285;
  display: block;
  fill: currentColor !important;
  height: 1.2rem;
  transition: color 160ms ease;
  width: 1.2rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__permalink:hover a,
.group.group--full.group--event-group
.view-shoutbox .comment__permalink:hover svg {
  color: var(--myevent-comment-accent);
}

.group.group--full.group--event-group
.view-shoutbox .new-comment {
  align-items: center;
  background: var(--myevent-comment-accent-soft);
  border-radius: 999px;
  color: var(--myevent-comment-accent-dark);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.32rem;
  margin-left: 0.55rem;
  padding: 0.25rem 0.55rem;
  position: absolute;
  right: 3.2rem;
  top: 1.15rem;
}

.group.group--full.group--event-group
.view-shoutbox .new-comment.hidden {
  display: none;
}

.group.group--full.group--event-group
.view-shoutbox .new-comment__dot {
  background: var(--myevent-comment-accent);
  border-radius: 50%;
  height: 0.38rem;
  width: 0.38rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__body {
  color: var(--myevent-comment-ink) !important;
  font-size: 1rem;
  grid-column: 2 / -1;
  line-height: 1.65;
  margin: 0.85rem 0 0;
  min-width: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__body p {
  color: inherit !important;
  margin: 0 0 0.75rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__body > :last-child,
.group.group--full.group--event-group
.view-shoutbox .comment__body .field__item > :last-child {
  margin-bottom: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__footer {
  grid-column: 2 / -1;
  margin: 0.95rem 0 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links ul.links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links li {
  margin: 0;
  padding: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action-item--reply {
  order: 1;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action-item--edit {
  order: 2;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action-item--delete {
  order: 3;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5d5868 !important;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.4rem;
  line-height: 1;
  min-height: 2.2rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links a::before {
  background-color: currentColor;
  content: "";
  display: block;
  flex: 0 0 1rem;
  height: 1rem;
  -webkit-mask: var(--comment-action-icon) center / contain no-repeat;
  mask: var(--comment-action-icon) center / contain no-repeat;
  width: 1rem;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action--reply {
  --comment-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 17-5-5 5-5'/%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E");
  background: var(--myevent-comment-accent-soft);
  color: var(--myevent-comment-accent-dark) !important;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action--edit {
  --comment-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action--delete {
  --comment-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v5M14 11v5'/%3E%3C/svg%3E");
  color: var(--myevent-comment-danger) !important;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links a:hover,
.group.group--full.group--event-group
.view-shoutbox .comment__links a:focus-visible {
  background: #f7f5fa;
  border-color: #e2ddea;
  color: var(--myevent-comment-accent-dark) !important;
  outline: 0;
}

.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action--delete:hover,
.group.group--full.group--event-group
.view-shoutbox .comment__links .comment-action--delete:focus-visible {
  background: #fff1f4;
  border-color: #f3ccd5;
  color: #b82f4a !important;
}

/* Threaded replies remain visibly connected without becoming cramped. */
.group.group--full.group--event-group
.view-shoutbox .indented {
  border-left: 2px solid #dfd5fb;
  margin-left: 2.2rem;
  padding-left: 1rem;
}

/* View paging. */
.group.group--full.group--event-group
.view-shoutbox .shoutbox-controls {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin: 1rem 0 0;
}

.group.group--full.group--event-group
.view-shoutbox .shoutbox-controls .button {
  background: #743cfb !important;
  border: 1px solid var(--myevent-comment-border) !important;
  border-radius: 0.55rem !important;
  box-shadow: none;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 2.5rem;
  padding: 0.62rem 0.9rem;
}

.group.group--full.group--event-group
.view-shoutbox .shoutbox-controls .button:not(:disabled):hover,
.group.group--full.group--event-group
.view-shoutbox .shoutbox-controls .button:not(:disabled):focus-visible {
  border-color: #cfc2f5 !important;
  color: var(--myevent-comment-accent-dark) !important;
}

.group.group--full.group--event-group
.view-shoutbox .shoutbox-controls .button:disabled {
  cursor: not-allowed;
  /* opacity: 0.45; */
}

@media (max-width: 47.999rem) {
  .group.group--full.group--event-group
  .view-shoutbox .comment-wrapper {
    margin-top: 2rem;
    padding-inline: 0;
  }

  .group.group--full.group--event-group
  .view-shoutbox .myevent-comment-wall__intro {
    margin-bottom: 1.15rem;
    padding-inline: 0.75rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .myevent-comment-wall__title {
    font-size: 1.55rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .myevent-comment-wall__description {
    font-size: 0.92rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .add-comment {
    padding: 1rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .add-comment::before {
    display: none;
  }

  .group.group--full.group--event-group
  .view-shoutbox article.comment {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    padding: 1rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__header {
    grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__avatar,
  .group.group--full.group--event-group
  .view-shoutbox .comment__picture img {
    height: 2.4rem !important;
    width: 2.4rem !important;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__body,
  .group.group--full.group--event-group
  .view-shoutbox .comment__footer {
    grid-column: 1 / -1;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__footer {
    margin-top: 0.75rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__links ul.links {
    gap: 0.3rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .comment__links a {
    min-height: 2.35rem;
    padding-inline: 0.65rem;
  }

  .group.group--full.group--event-group
  .view-shoutbox .indented {
    margin-left: 0.8rem;
    padding-left: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .group.group--full.group--event-group
  .view-shoutbox article.comment,
  .group.group--full.group--event-group
  .view-shoutbox .comment-form textarea.form-textarea,
  .group.group--full.group--event-group
  .view-shoutbox .comment-form .shoutbox-custom-submit,
  .group.group--full.group--event-group
  .view-shoutbox .comment__links a {
    transition: none;
  }
}
