.c-modal

scss
.c-modal {
  background-color: use-color('base', 'true-white');
  border: solid 1px use-color('grey', 'light-i');
  border-radius: 8px;
  box-sizing: border-box;
  // height: 368px;
  height: auto;
  left: 50%;
  max-height: 100%;
  max-width: 90%;
  padding: 16px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  z-index: use-layer('modal-2');

  @include media-breakpoint-up('tablet') {
    box-sizing: unset;
  }

  @include element('close-icon') {
    color: use-color('grey', 'light');
    position: absolute;
    right: 16px;
    text-decoration: none;

    [class^='icon-'],
    [class*=' icon-'] {
      font-size: 16px;
    }
  }

  @include element('header') {
    margin: 32px 0 16px;
    padding: 0 8px;
    width: fit-content;

    @include media-breakpoint-up('tablet') {
      margin: 36px 0 28px;
      padding: 0 24px;
    }

    @include if-block-has-modifier('c-modal', 'small') {
      margin: 16px 0 20px;
      padding: 0 8px;
    }

    &::first-letter {
      text-transform: uppercase;
    }
  }

  @include element('content') {
    height: 68%;
    overflow: hidden;
    overflow-y: scroll;
    padding: 0 8px 8px;

    
    @include media-breakpoint-up('tablet') {
      padding: 0 24px 24px;
    }
    
    @include if-block-has-modifier('c-modal', 'small') {
      padding: 0 8px 8px;
    }
    
    @include if-block-has-modifier('c-modal', 'with-footer') {
      height: 80%;
      margin-bottom: 40px;
    }

    // overrides
    .c-campaign-visibility {
      margin: 0;
      width: 100%;
    }

    .c-indicator-group,
    .c-transferable-user {
      margin: 0 0 16px;
    }
  }

  @include element('footer') {
    background-color: use-color('base', true-white);
    border-radius: 0 0 8px 8px;
    bottom: 0;
    box-shadow: $box-shadow-card-lvl-1;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 16px;
    position: absolute;
    width: 92%;
    z-index: use-layer('modal-3');

    @include media-breakpoint-up('webchat') {
      width: inherit;
    }
    
    @include media-breakpoint-between('webchat', 'tablet') {
      width: 95%;
    }

    .c-button {
      max-width: 270px;
    }
  }

  @include element('overlay') {
    background-color: transparentize($color: use-color('base', 'black'), $amount: 0.2);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: use-layer('modal');
  }

  @include modifier('small') {
    height: fit-content;
    width: 329px;
  }

  @include modifier('auto-height') {
    height: fit-content;
  }

  @include modifier('with-footer') {
    box-sizing: unset;
    height: 90%;
  }
}

TODO: add docs

Examples

html
<div class="u-widget-example-margin"> <!-- this div is just for the example -->

  <div class="c-modal">
    <a href="#" class="c-modal__close-icon">
      <span class="icon-close"></span>
    </a>
  
    <div class="c-modal__header">
      Número de mensajes, por el monto gastado (US$30,000) según el país:
    </div>
  
    <div class="c-modal__content">
      // some content
    </div>
  </div>

  <div class="c-modal__overlay"></div>

</div>
html small
<div class="u-widget-example-margin"> <!-- this div is just for the example -->

  <div class="c-modal c-modal--small">
    <a href="#" class="c-modal__close-icon">
      <span class="icon-close"></span>
    </a>
  
    <div class="c-modal__header">
      Número de mensajes, por el monto gastado (US$30,000) según el país:
    </div>
  
    <div class="c-modal__content">
      // some content
    </div>
  </div>

  <div class="c-modal__overlay"></div>

</div>
html with footer
<div class="u-widget-example-margin"> <!-- this div is just for the example -->

  <div class="c-modal c-modal--with-footer">
    <a href="#" class="c-modal__close-icon">
      <span class="icon-close"></span>
    </a>
  
    <div class="c-modal__header">
      Número de mensajes, por el monto gastado (US$30,000) según el país:
    </div>
  
    <div class="c-modal__content">
      // some content
    </div>

    <div class="c-modal__footer">
      <a class="c-button">
        transferir chat
      </a>
    </div>

  </div>

  <div class="c-modal__overlay"></div>

</div>