body.wt-community-tools-route .header .btn--publish,
body.wt-chat-page-body .header .btn--publish {
  display: none !important;
}

body.wt-ad-landing-page .sidebar {
  display: none !important;
}

@media (max-width: 512px) {
  body .wt-chat-app[data-mode="route"],
  body.collapsed .wt-chat-app[data-mode="route"] {
    inset: var(--header-h, 60px) 0 calc(64px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .wt-chat-app[data-mode="route"] .wt-chat-window {
    width: 100%;
    max-width: none;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .wt-chat-window > .wt-chat-inbox,
  .wt-chat-window > .wt-chat-thread,
  .wt-chat-thread__active,
  .wt-chat-thread__header,
  .wt-chat-composer,
  .wt-chat-composer__field {
    min-width: 0;
    max-width: 100%;
  }

  .wt-chat-thread__header {
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }

  .wt-chat-thread__identity {
    min-width: 0;
  }

  .wt-chat-profile-link {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
  }

  .wt-chat-composer {
    gap: 8px;
  }

  .wt-chat-send {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

/* Un único componente para todos los reportes de la plataforma. */
#storyReportBackdrop,
#commentReportBackdrop {
  background: rgba(24, 24, 27, .28);
  backdrop-filter: blur(7px);
}

:is(
  .ts-confession-modal .modal-content.modal-report.wt-report-dialog,
  #storyReportForm.wt-report-dialog,
  #commentReportForm.wt-report-dialog
) {
  box-sizing: border-box;
  width: min(430px, 100%);
  max-width: 430px;
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #e4e4e7;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 28px 78px rgba(24, 24, 27, .18);
  color: #27272a;
  font-family: "Outfit", "DM Sans", sans-serif;
}

.ts-confession-modal .modal-content.modal-report.wt-report-dialog {
  position: relative;
  align-items: stretch;
  gap: 0;
}

#storyReportForm.wt-report-dialog {
  position: absolute;
  z-index: 45;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 32px));
  transform: translate(-50%, -50%);
}

#commentReportForm.wt-report-dialog {
  position: fixed;
  z-index: 10021;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100% - 32px));
  transform: translate(-50%, -50%);
}

.wt-report-dialog .story-modal__report-head {
  display: block;
  padding-right: 42px;
}

.wt-report-dialog .story-modal__report-icon {
  display: none;
}

.wt-report-dialog__eyebrow {
  display: block;
  margin: 0 42px 4px 0;
  color: var(--fuchsia-500, #e0007a);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wt-report-dialog .story-modal__report-head .wt-report-dialog__eyebrow {
  margin-right: 0;
}

.wt-report-dialog.modal-report .wt-report-dialog__title,
.wt-report-dialog.story-modal__report h3 {
  margin: 0;
  color: #27272a;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.wt-report-dialog.modal-report .wt-report-dialog__description,
.wt-report-dialog.story-modal__report .story-modal__report-help {
  margin: 7px 0 18px;
  padding: 0;
  color: #71717a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.wt-report-dialog__close,
.wt-report-dialog.story-modal__report .story-modal__report-close {
  position: absolute;
  top: 10px;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.wt-report-dialog__close:hover {
  background: #f4f4f5;
  color: #27272a;
}

.wt-report-dialog__close svg {
  width: 15px;
  height: 15px;
}

.wt-report-dialog__label {
  display: block;
  margin: 12px 0 6px;
  color: #27272a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.wt-report-dialog__select,
.wt-report-dialog__details,
.wt-report-dialog.story-modal__report textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid #dedee3;
  border-radius: 9px;
  outline: 0;
  background: #fafafa;
  color: #27272a;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  outline: none!important;
}

.wt-report-dialog__details,
.wt-report-dialog.story-modal__report textarea {
  min-height: 96px;
  resize: vertical;
}

.wt-report-dialog__select:focus,
.wt-report-dialog__details:focus,
.wt-report-dialog.story-modal__report textarea:focus {
  border-color: var(--fuchsia-500, #e0007a);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(224, 0, 122, .08);
}

.wt-report-dialog.modal-report .wt-report-dialog__status,
.wt-report-dialog.story-modal__report .wt-report-dialog__status {
  display: block;
  min-height: 16px;
  margin-top: 7px;
  color: #71717a;
  font-size: 10px;
  line-height: 1.4;
}

.wt-report-dialog.modal-report .wt-report-dialog__status.is-error,
.wt-report-dialog.story-modal__report .wt-report-dialog__status.is-error,
.wt-report-dialog.story-modal__report .wt-report-dialog__status.story-modal__report-status--error {
  color: #b42318;
}

.wt-report-dialog .story-modal__report-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 16px;
  margin-top: 7px;
  color: #71717a;
  font-size: 10px;
  line-height: 1.4;
}

.wt-report-dialog .comment-report__target {
  max-height: 82px;
  margin: 0 0 12px;
  padding: 9px 11px;
  overflow: auto;
  border: 1px solid #ececf0;
  border-left: 3px solid #e0007a;
  border-radius: 0 9px 9px 0;
  background: #fafafa;
  color: #52525b;
  font-size: 11px;
  line-height: 1.45;
}

.wt-report-dialog__actions,
.wt-report-dialog.story-modal__report .story-modal__report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}

.wt-report-dialog__actions > button,
.wt-report-dialog.story-modal__report .story-modal__report-actions button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.wt-report-dialog__secondary {
  border: 1px solid #dedee3;
  background: #fff;
  color: #3f3f46;
}

.wt-report-dialog__primary {
  border: 1px solid var(--fuchsia-500, #e0007a);
  background: var(--fuchsia-500, #e0007a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 0, 122, .16);
}

.wt-report-dialog__primary:hover {
  filter: brightness(1.06);
}

.wt-report-dialog__primary:disabled {
  opacity: .52;
  cursor: not-allowed;
  filter: none;
}

.wt-report-dialog :is(button, select, textarea):focus-visible {
  outline: 2px solid var(--fuchsia-500, #e0007a);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .ts-confession-modal:has(.wt-report-dialog) {
    align-items: flex-end;
    padding: 0;
  }

  :is(
    .ts-confession-modal .modal-content.modal-report.wt-report-dialog,
    #storyReportForm.wt-report-dialog,
    #commentReportForm.wt-report-dialog
  ) {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: min(90dvh, 620px);
    padding: 23px 18px max(22px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: none;
  }

  .wt-report-dialog__actions > button,
  .wt-report-dialog.story-modal__report .story-modal__report-actions button {
    flex: 1 1 0;
  }
}
.profile-comment__dropdown,
.confession .more-options,
.wt-action-menu {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 100;
  display: flex;
  width: min(218px, calc(100vw - 32px));
  min-width: 0;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 24, 27, .12);
  backdrop-filter: none;
  animation: none;
}

.profile-comment__dropdown[hidden],
.wt-action-menu[hidden] {
  display: none !important;
}

.profile-comment__dropdown > button,
.confession .more-options > button,
.wt-action-menu > button {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f3f46;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.profile-comment__dropdown > button:hover,
.confession .more-options > button:hover,
.wt-action-menu > button:hover {
  background: #f4f4f5;
  color: #27272a;
}

.profile-comment__dropdown > button:focus-visible,
.confession .more-options > button:focus-visible,
.wt-action-menu > button:focus-visible {
  outline: 2px solid rgba(224, 0, 122, .32);
  outline-offset: -2px;
}

.profile-comment__dropdown > button svg,
.confession .more-options > button svg,
.wt-action-menu > button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-comment__dropdown > :is(.profile-comment__report, .profile-comment__delete),
.confession .more-options > :is(.wt-action-menu__danger, .more-options__danger),
.wt-action-menu > .wt-action-menu__danger {
  color: #dc2626;
}

.profile-comment__dropdown > :is(.profile-comment__report, .profile-comment__delete):hover,
.confession .more-options > :is(.wt-action-menu__danger, .more-options__danger):hover,
.wt-action-menu > .wt-action-menu__danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}
