.email-send-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-send-modal {
  background: var(--c-card-bg, #fff);
  border-radius: 8px;
  width: 580px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border, #e0e0e0);

    h3 {
      margin: 0;
      font-size: 15px;
    }
  }

  &__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--c-text-muted, #888);
    padding: 0 4px;

    &:hover {
      color: var(--c-text, #333);
    }
  }

  &__body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
  }

  &__field {
    margin-bottom: 10px;

    label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--c-text-muted, #666);
    }

    .input {
      width: 100%;
    }
  }

  &__actions-top {
    margin-bottom: 10px;
  }

  &__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--c-border, #e0e0e0);
  }
}

.email-send-preview {
  border: 1px solid var(--c-border, #e0e0e0);
  border-radius: 4px;
  padding: 12px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--c-bg, #fafafa);

  &__subject {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border, #e0e0e0);
  }

  &__body {
    font-size: 13px;
    line-height: 1.5;

    p { margin: 0 0 8px; }
  }

  &__attachments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--c-border, #e0e0e0);
    font-size: 12px;
    color: var(--c-text-muted, #666);
  }
}
