@import "../../assets/sass/global.scss";

.gtc-rc-modal-container {

  // -------- Header ----------
  .gtc-rc-modal-header {
    box-sizing: border-box;
    display: flex;
    //flex-flow: row wrap;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    height: 48px;
    border: solid 1px #e4e4e4;
    padding: 8px 8px 8px 16px;
    background-color: white;

    .gtc-rc-modal-title {
      box-sizing: border-box;
      margin: 0;
      font-weight: bold;
      font-size: 1rem;
      line-height: 1.5;
      letter-spacing: 0.00938em;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      width: calc(100% - 30px);
    }

    .gtc-rc-modal-close-button {
      box-sizing: border-box;
      margin: 0;
    }
  }

  // -------- Content ----------
  .gtc-rc-modal-content {
    background-color: white;
    height: calc(100% - 108px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  // -------- Footer -----------
  .gtc-rc-modal-footer {
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    background-color: white;
    height: 60px;
    padding: 8px 8px 8px 8px;
    border: solid 1px #e4e4e4;
  }

  // -------- Positions --------
  &.gtc-rc-modal-right {
    left: inherit;
  }

  &.gtc-rc-modal-left {
    right: inherit;
  }

  &.gtc-rc-modal-center {
    height: 300px;
    top: 50%;
    left: 50%;
    margin-top: -150px;
    margin-left: -250px;
  }

  // -------- Sizes ------------
  // extra-small
  .gtc-rc-modal-extra-small {
    width: 300px;
  }

  .gtc-rc-modal-header-extra-small {
    width: 300px;
  }

  .gtc-rc-modal-footer-extra-small {
    width: 300px;
  }

  // small
  .gtc-rc-modal-small {
    width: 450px;
  }

  .gtc-rc-modal-header-small {
    width: 450px;
  }

  .gtc-rc-modal-footer-small {
    width: 450px;
  }

  // medium
  .gtc-rc-modal-medium {
    width: 650px;
  }

  .gtc-rc-modal-header-medium {
    width: 650px;
  }

  .gtc-rc-modal-footer-medium {
    width: 650px;
  }

  // large
  .gtc-rc-modal-large {
    width: 900px;
  }

  .gtc-rc-modal-header-large {
    width: 900px;
  }

  .gtc-rc-modal-footer-large {
    width: 900px;
  }

  //full-screen
  .gtc-rc-modal-full-screen {
    min-width: 100% !important;
    width: 100%;
  }

  .gtc-rc-modal-header-full-screen {
    min-width: 100% !important;
    width: 100%;
  }

  .gtc-rc-modal-footer-full-screen {
    min-width: 100% !important;
    width: 100%;
  }
}