@import "govuk_publishing_components/individual_component_support";
@import "govuk/components/summary-list/summary-list";

.gem-c-summary-list {
  border-bottom: 1px solid $govuk-border-colour;

  @include govuk-font(19);
  @include govuk-responsive-margin(6, "top");

  &:nth-of-type(1) {
    margin-top: govuk-spacing(0);
  }

  &:nth-last-of-type(1) {
    border-bottom: 0;
  }

  .govuk-summary-list {
    clear: both;
  }
}

.gem-c-summary-list__group-title {
  @include govuk-media-query($from: tablet) {
    display: inline-block;
    margin-right: govuk-spacing(3);
  }
}

.gem-c-summary-list__group-actions-list {
  margin-bottom: govuk-spacing(3);

  @include govuk-media-query($from: tablet) {
    float: right;
    width: auto;
  }
}

.gem-c-summary__block {
  @include govuk-responsive-margin(6, "bottom");
}

.gem-c-summary-list--wide-title {
  @include govuk-media-query($from: "tablet") {
    .govuk-summary-list__key {
      width: 60%;
    }

    .govuk-summary-list__value {
      width: 20%;
    }
  }
}
