.comment-action-modal[hidden],
.comment-action-toast[hidden] {
  display: none;
}

body.has-comment-action-modal {
  overflow: hidden;
}

.comment-action-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--badge-alpha-b-60);
}

.comment-action-modal__panel {
  display: flex;
  width: min(400px, 100%);
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--semantic-white);
}

.comment-action-modal__button {
  display: flex;
  width: 100%;
  min-height: 61px;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  border: 0;
  border-bottom: var(--stroke-1) solid var(--semantic-border);
  color: var(--brand-accent-dark);
  background: var(--semantic-white);
  font: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
  cursor: pointer;
}

.comment-action-modal__button:last-child {
  border-bottom: 0;
  color: var(--neutral-tx3-sub);
}

.comment-action-modal__button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

.comment-action-toast {
  position: fixed;
  z-index: 2100;
  top: 50%;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 20px 40px;
  border-radius: var(--radius-full);
  color: var(--semantic-white);
  background: var(--badge-alpha-b-70);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@media (max-width: 479px) {
  .comment-action-toast {
    white-space: normal;
  }
}
