@use '../../../../../../styles/typography';

:host {
  ng-docs-ref-button {
    margin-left: 0.125rem;
  }

  .services {
    margin: 0.5rem;
    border-radius: 0.375rem;
    background: color-mix(in srgb, var(--senary-contrast) 50%, var(--color-background) 50%);
    overflow: hidden;
  }

  /* FRAGILE */
  ::ng-deep {
    mat-expansion-panel {
      border-radius: unset !important;
    }

    .mat-expansion-panel-body {
      padding: 0;
    }

    .mat-expansion-panel-spacing {
      margin: 0;
    }

    .mat-expansion-panel-header {
      padding: 0 15px;

      .documentation {
        display: flex;
        align-self: center;
        text-decoration: none;
      }

      .docs-link {
        height: inherit;
        width: fit-content;
        font-size: initial;
        padding-left: 0.1rem;

        &:active {
          color: var(--blue-02);
        }
      }
    }

    .mat-expansion-panel-header-title {
      @extend %body-medium-01;
    }

    .mat-expansion-indicator {
      &::after {
        padding: 2.5px;
        margin-bottom: 4.5px;
      }
    }
  }

  .mat-accordion-content:not(:empty):not(:last-child) {
    border-bottom: 1px solid var(--color-separator);
  }
}
