@import '../config/import';

$card-divider: 1px solid var(--body-bg);

.crayons-card {
  border-radius: $br-default;
  background: var(--card-bg);
  color: var(--card-color);

  &--secondary {
    background: var(--card-secondary-bg);
    color: var(--card-secondary-color);
  }

  &__header {
    padding: $su-4 $su-4;
    border-bottom: $card-divider;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  &__subheader {
    padding: $su-2 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &__title {
      color: var(--base-80);
      font-weight: $fw-bold;
    }
  }

  &__title {
    color: var(--card-headline);
    font-weight: $fw-bold;
  }

  &__body {
    padding: $su-4;
  }

  &__inner-section {
    margin-bottom: $su-4;

    &:last-child {
      margin-bottom: 0;
    }

    .crayons-card__section-header {
      padding-top: 0;
    }
  }
}
