import { css } from 'lit'

export default css`
  :host {
    display: flex;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
  }

  .intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;

    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      align-self: stretch;

      .title-large {
        flex: 1 0 0;
        color: var(--md-sys-color-on-surface);
      }

      .inline-help {
        align-self: stretch;
        color: var(--md-sys-color-on-surface);
      }
    }
  }

  .rules {
    align-self: stretch;
  }

  .rule-divider {
    align-self: stretch;
  }

  .rule {
    align-self: stretch;
  }

  .rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    color: var(--md-sys-color-on-surface);

    .actions {
      display: flex;
      align-items: center;
    }
  }

  .rule-explainer {
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-radius: var(--md-sys-shape-corner-medium, 12px);
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
  }

  .domain-input {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;

    .domain-field {
      flex: 1 0 0;
    }
  }

  .email-domains {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
  }

  .resource-owner-details {
    margin-top: 8px;

    .error-message {
      color: var(--md-sys-color-error);
      background-color: var(--md-sys-color-error-container);
      padding: 4px 8px;
      border-radius: var(--md-sys-shape-corner-small, 4px);
      display: flex;
      align-items: center;
      gap: 8px;
    }
  }
`
