:host {
  display: block;
  max-width: 440px;
}

mat-dialog-content {
  p {
    margin: 0 0 12px;
  }
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 4px;
}

// Selectable email fallback shown under the email option (mailto: dead-end guard).
.feedback-email {
  align-self: center;
  margin-top: -2px;
  opacity: 0.65;
  user-select: text;
  cursor: text;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;

  &:hover {
    background-color: rgba(127, 127, 127, 0.08);
    border-color: rgba(127, 127, 127, 0.5);
  }

  &:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
  }
}

.action-item-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.action-item-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;

  small {
    font-size: 12px;
    opacity: 0.7;
  }
}

.action-item-trailing {
  flex-shrink: 0;
  font-size: 18px;
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.action-item--primary {
  .action-item-icon {
    color: #f9a825;
    opacity: 1;
    font-variation-settings:
      'FILL' 1,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
  }

  .action-item-text {
    font-weight: 500;
  }
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.spacer {
  flex: 1 1 auto;
}

.opt-out-link {
  font-size: 12px;
  opacity: 0.65;

  &:hover {
    opacity: 1;
  }
}
