$black: #2a2d38;
$light_black: #2f333e;
$red: #dd273f;
$gray: #7b7b7c;
$white: #fff;
$pink : #c43a8d;
$green: #25bd6e;
$orange: #e2821e;
$tomato: #e85661;
$blue: #05afe3;
$bcg : $black;
$speed : .3s linear;
$gilroy : 'Gilroy', Sans-Serif;
$media-md : 1600px;
$max-width : 991px;
$media-sm : 768px;
$media-xs : 500px;

.main-container-home {
  height: 100vh;
  grid-template-rows: 74px 1fr minmax(54px, auto);
  @media (max-width: #{$max-width}) {
    height: auto;
  }
  .main-content-home {
    overflow: auto;
    #main-content {
      height: 100%;
      @media (max-width: #{$max-width}) {
        height: auto;
      }
      .portlet-layout {
        height: 100%;
        @media (max-width: #{$max-width}) {
          height: auto;
        }
        .portlet-column.portlet-column-only.span12 {
          height: 100%;
          @media (max-width: #{$max-width}) {
            height: auto;
          }
          .portlet-dropzone.portlet-column-content.portlet-column-content-only {
            height: 100%;
            @media (max-width: #{$max-width}) {
              height: auto;
            }
            .portlet-boundary {
              height: 100%;
              @media (max-width: #{$max-width}) {
                height: auto;
              }
              .portlet-borderless-container {
                height: 100%;
                @media (max-width: #{$max-width}) {
                  height: auto;
                }
                .portlet-body {
                  height: 100%;
                  @media (max-width: #{$max-width}) {
                    height: auto;
                  }
                  .portlet-container {
                    height: 100%;
                    @media (max-width: #{$max-width}) {
                      height: auto;
                    }
                  }
                  .margin-status {
                    font: 700 16px/1.3 "Gilroy",Sans-Serif;
                    min-height: 62px;
                    max-width: 20%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 35px;
                    border: 2px solid #dd273f;
                    background: #dd273f;
                    margin: 30px auto auto auto;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

#exchanger-wrap {
  height: 100%;
  @media (max-width: #{$max-width}) {
    height: auto;
  }
  form {
    height: 100%;
    @media (max-width: #{$max-width}) {
      height: auto;
    }
  }
  .exchange-btn {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
  }
  .small {
    text-align: center;
  }
  h4 {
    color: $gray !important;
    font-weight: 400 !important;
    margin: 0;
  }
  h2 {
    margin: 0;
    @media (max-width: #{$media-sm}) {
      font-size: 24px;
    }
    @media (max-width: #{$media-xs}) {
      margin: 0;
    }
  }
  .wrap-textfield {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    @media (max-width: #{$media-xs}) {
      margin-top: 10px;
    }
    input {
      margin: 0;
    }
    &>span {
      color: $gray;
      font: 400 16px/1.2 $gilroy;
      position: absolute;
      right: 15px;
      @media(max-width: #{$media-md}) {
        font-size: 14px;
      }
    }
    &>input {
      text-overflow: ellipsis;
      padding-right: 90px;
      max-width: 100%;
    }
  }

  .reserve,
  .rateWithCom {
    margin-top: 24px;
    @media (max-width: #{$media-xs}) {
      margin-top: 10px;
    }
  }

}

.select2-container--default {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  @media (max-width: #{$media-sm}) {
    pointer-events: auto;
  }
  .select2-selection--single {
    width: 100%;
    padding: 0;

    height: auto;
    position: relative;
    border-radius: 0;
    border: none;
    background: transparent;
    margin-top: -23px;
    @media(max-width: #{$media-md}) {
      margin-top: -17px;
    }
    @media(max-width: #{$media-sm}) {
      margin-top: 5px;
      border-radius: 6px 6px 0 0;
    }
    .select2-selection__arrow {
      @media(min-width: #{$media-sm}) {
        display: none !important;
      }
    }
    .select2-selection__rendered {
      color: $white;
      font: 700 28px/1.2 $gilroy;
      padding: 0;
      width: 100%;
      transition: .3s;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      @media (max-width: #{$media-md}) {
        font-size: 26px;
      }
      @media(max-width: #{$max-width}) {
        font-size: 24px;
      }
      @media(max-width: #{$media-sm}) {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
      }
      @media(max-width: #{$media-xs}) {
        gap: 10px;
      }
      img {
        width: 100%;
        max-width: 54px;
        height: auto;
        margin-left: 10px;
        @media(max-width: #{$media-md}) {
          max-width: 48px;
        }
        @media(max-width: #{$max-width}) {
          max-width: 46px;
        }
        @media(max-width: #{$media-sm}) {
          max-width: 30px;
          margin-left: 0;
        }
      }
      span {
        overflow: hidden;
        width: 70%;
        text-overflow: ellipsis;
        @media(max-width: #{$media-sm}) {
          width: 88%;
        }
      }
    }
  }
}
.select2-dropdown {
  background-color: $bcg;
  box-shadow: 0 1px 3px $gray;
  border-radius: 6px !important;
  border: none;
  margin-top: 9px;
  margin-bottom: 9px;
}
.select2-results__options {
  border-radius: 6px;
  @media(max-width: #{$media-sm}) {
    max-height: 283px;
  }
  .select2-results__option {
    font: 400 16px/1.2 $gilroy;
    color: $gray;
    cursor: pointer;
    padding: 8px 8px 8px 15px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: $speed;
    @media(max-width: #{$media-md}) {
      font-size: 14px;
    }
    @media(max-width: #{$media-sm}) {
      flex-direction: row-reverse;
      padding: 8px !important;
    }

    span {
      overflow: hidden;
      width: 86%;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    img {
      width: 30px;
      height: auto;
    }

    &[aria-selected=true] {
      color: $white;
      background-color: transparent !important;
    }

    &.select2-results__option--highlighted {
      color: $white !important;
      background-color: transparent !important;
    }

    &:before {
      content: none !important;
    }
  }
}
.select2-container--disabled .select2-selection--single{
  background-color: transparent !important;
}
.card-monetary-in,
.card-monetary-out {
  height: 100%;
  @media (max-width: #{$media-sm}) {
    height: auto;
  }
}
.card-monetary-out {
  @media (max-width: #{$media-sm}) {
    margin-top: 10px;
  }
}
.card-monetary-out-list,
.card-monetary-in-list {
  max-width: 50% !important;
  flex: 0 0 50%;
  @media (max-width: #{$media-sm}) {
    display: none;
  }
  .card {
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 15px !important;
    padding-left: 0 !important;
    height: 100%;
    @media (max-height: 780px) {
      padding-top: 10px;
      padding-bottom: 10px;
    }
  }
}
.card-monetary-in,
.card-monetary-out {
  max-width: 50% !important;
  flex: 0 0 50%;
  @media (max-width: #{$media-sm}) {
    max-width: 100% !important;
    flex: 0 0 100%;
  }
}
.card-monetary-in-list {
  padding-right: 10px;
}
.card-monetary-out-list {
  padding-left: 10px;
}
.card-monetary-in {
  padding-right: 10px;
  @media (max-width: #{$media-sm}) {
    padding: 0;
  }
}
.card-monetary-out {
  padding-left: 10px;
  @media (max-width: #{$media-sm}) {
    padding: 0;
  }
}
.card-text {
  margin-top: 15px !important;
  .card {
    padding: 20px;
    svg {
      width: 38px;
      height: auto;
      fill: $red;
      margin-right: 35px;
    }
    &.card-automatic-exchanger {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      p {
        color: $red;
        span {
          display: inline-block;
          margin-left: 10px;
        }
      }
    }
    &.js-card-text {
      margin-top: 10px;
      li,
      p {
        color:$gray;
        font: 400 14px/1.3 $gilroy;
        &:first-child {
          margin-top: 0;
        }
      }
    }
  }
}

.monetary-out-list,
.monetary-in-list {
  height: 100%;
  overflow: auto;
  li {
    color: $gray;
    font: 400 16px/1.2 $gilroy;
    cursor: pointer;
    padding: 11px 13px 11px 20px!important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: $speed;
    margin-top: 0;
    span.title {
      overflow: hidden;
      width: 60%;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: auto;
      margin-left: 15px;
    }
    span.title-small {
      color: $gray;
    }
    img {
      width: 25px;
      height: auto;
    }
  }
  li.selected,
  li:hover {
    color: $white;
    span.title-small {
      color: $white;
    }
  }
  li:before {
    content: none !important;
    display: none !important;
  }
}
.exchange-sections {
  display: grid;
  grid-gap: 10px 20px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  grid-template-rows: 240px calc(100% - 250px);
  align-content: start;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  grid-template-areas:
  "monetarys monetarys request"
  "monetary_lists monetary_lists request";
  @media (max-width: #{$media-md}) {
    grid-template-rows: 227px calc(100% - 247px);
  }
  @media (max-width: #{$max-width}) {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    grid-template-rows: auto 322px auto;
    grid-template-areas:
    "monetarys monetarys"
    "monetary_lists monetary_lists"
    "request request";
    height: auto;
    max-height: none;
    overflow: auto;
  }
  @media (max-width: #{$media-sm}) {
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    grid-gap: 20px 0;
    grid-template-areas:
    "monetarys"
    "request";
  }
  @media (max-width: #{$media-xs}) {
    grid-gap: 10px 0;
  }
  .container-request {
    grid-area: request;
    overflow: auto;
  }
  .container-monetarys {
    grid-area: monetarys;
    display: flex;
    @media (max-width: #{$media-sm}) {
      display: block;
    }
  }
  .container-monetary-lists {
    grid-area: monetary_lists;
    align-content: stretch;
    display: flex;
  }
}
.js-wrap-address {
  position: relative;
  .js-address-length {
    position: fixed;
    right: -10000px;
    height: 10px;
    opacity: 0;
    z-index: -1;
    overflow: hidden;
  }
  .js-error-message {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 15px;
    max-width: 70%;

    padding: 7px;
    margin: 0;
    border-radius: 6px;
    align-items: flex-start;
    justify-content: space-between;
    background: $tomato;
    &:after {
      content: '';
      display: block;
      position: absolute;
      bottom: -10px;
      left: 13px;
      border: 5px solid transparent;
      border-top-color: $tomato;
    }
    p {
      font: 400 11px/1.2 $gilroy;
      color: $white;
      margin: 0;
    }
  }
}
.js-wrap-address.active-error {
  input {
    border: 1px solid $tomato !important;
    color: #eb6459!important;
    transition: .5s;
  }
  .js-error-message {
    display: inline-flex;
  }
}

.bank-card{
  position: relative;
}

.bank-card-wrapper{
  position: relative;
}

#additional-card-info-icon{
  float:right;
  height: 14px;
  width: 14px;
  margin: 11px 5px 0 auto;
  z-index: 11;
}

.additional-card-plus-icon{
  float:right;
  height: 18px;
  width: 18px;
  margin: 9.4px 5px 0 auto;
}

.additional-card-minus-icon {
  position: absolute;
  right: -20px;
  margin: 34px;
  height: 15px;
  width: 15px;
  display: none;
}

#additional-card-info-icon:hover {
  cursor: pointer;
}

.additional-card-info{
  width:400px;
  height:150px;
  margin:15px 0 0 15px;
  position: absolute;
  top:0;
  left:0;
  z-index:11;
  background: #2F333E;
  display:none;
  color: #747376;
  border-width: 1px;
  border-color: black;
  border-radius: 2%;
  padding: 5px 0 0 5px;
  font: 400 14px/1.3 "Gilroy",Sans-Serif;
}