/* stylelint-enable */

.pf-c-modal-box {
  position: relative;
  z-index: 600;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 1rem - 1rem);
  min-height: calc(2rem + 0.5rem + 0.5rem + 0.5rem + 2rem + 2rem + calc(1rem * 4 * 1.5));
  max-height: calc(100vh - 3rem);
  background-color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 0.1875rem 0.4375rem 0.1875rem rgba(3, 3, 3, 0.13), 0 0.6875rem 1.5rem 1rem rgba(3, 3, 3, 0.12); }
  @media screen and (min-width: 576px) {
    .pf-c-modal-box:not(.pf-m-lg) {
      max-width: 35rem; } }
  @media screen and (min-width: 1200px) {
    .pf-c-modal-box.pf-m-lg {
      max-width: 70rem; } }
  .pf-c-modal-box > :last-child:not(.pf-c-modal-box__footer) {
    padding-bottom: 2rem; }

.pf-c-modal-box__header {
  flex: 0 0 auto;
  padding: 2rem 2rem 0.5rem 2rem; }

.pf-c-modal-box__header-title {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3; }
  @supports (-webkit-line-clamp: var(--pf-c-modal-box--LineClamp)) {
    @media screen and (max-height: var(--pf-c-modal-box--breakpoint-sm--Height)) {
      .pf-c-modal-box__header-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; } }
    @media screen and (min-height: var(--pf-c-modal-box--breakpoint-sm--Height)) and (max-height: var(--pf-c-modal-box--breakpoint-md--Height)) {
      .pf-c-modal-box__header-title {
        /* stylelint-disable */
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        /* stylelint-enable */ } }
    @media screen and (max-width: 576px) and (min-height: var(--pf-c-modal-box--breakpoint-md--Height)) {
      .pf-c-modal-box__header-title {
        /* stylelint-disable */
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        /* stylelint-enable */ } } }
  @supports not (-webkit-line-clamp: var(--pf-c-modal-box--LineClamp)) {
    @media screen and (max-height: var(--pf-c-modal-box--breakpoint-sm--Height)) {
      .pf-c-modal-box__header-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; } } }

.pf-c-modal-box__body {
  flex: 1 1 auto;
  padding: 0.5rem 2rem 0.5rem 2rem;
  margin-top: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  word-break: break-word; }

.pf-c-modal-box__header + .pf-c-modal-box__body {
  margin-top: 0; }

.pf-c-modal-box__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2rem 2rem 2rem 2rem; }
  .pf-c-modal-box__footer > .pf-c-button:first-of-type {
    margin-left: auto; }
  .pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
    margin-right: calc(1rem / 2); }
    @media screen and (min-width: 576px) {
      .pf-c-modal-box__footer > .pf-c-button:not(:last-child) {
        margin-right: 1rem; } }

.pf-c-modal-box__close {
  position: absolute;
  top: 0.5rem;
  right: 1rem; }
