#model_shop_promotion{
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;

  .popup{
    background: #fff;
    position: relative;
    width: 600px;
    max-width: 90%;
    max-height: 95vh;
    overflow-y: hidden;
    border-radius: 5px;
    &__content{
      padding: 30px 40px 0;
    }

    &__form{
      &--input{
        label{
          width: 100%;
          margin-bottom: 10px;
        }
        input{
          width: 100%;
          padding: 10px;
          border: 1px solid #d9d9d9;
          border-radius: 3px;
          font-size: 20px;
          font-weight: bold;
        }
      }
      &--checkbox{
        font-size: 16px;
        display: flex;
        align-items: center;
        margin-top: 10px;
        .limit__checkbox{
          margin-right: 10px;
        }

        input[type=date],
        input[type=time], 
        input[type=datetime-local], 
        input[type=month]{
          border: 1px solid #e5e5e5;
          border-radius: 4px;
          font-weight: 100;
          padding: 3px 6px;
        }
      }
    }

    &__header{
      padding: 40px 40px 20px;
      border-bottom: 1px solid #ddd;
      &--title{
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 0.3em;
      }
      &--subtitle{
        font-size: 12px;
        font-weight: 100;
      }
    }

    &__footer{
      border-top: 1px solid #ddd;
      padding: 20px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      &--delete{
        color: #ff3535;
        text-decoration: underline;
      }
      &--count{
        font-size: 14px;
        font-weight: 500;
      }
      &--cancel{
        padding: 0.7em 1em;
        background: #f0f0f0;
        border-radius: 3px;
        margin-right: 10px;
      }
      &--submit{
        padding: 0.7em 1em;
        border: 0;
        border-radius: 3px;
        background: #004f9c;
        color: #fff;
      }
    }
  }

  .condition_product{
    margin-top: 20px;
    &__headder{
      display: flex;
      align-items: center;
      justify-content: space-between;
      &--title{
        font-weight: bold;
      }
      &--addProduct{
        padding: 0.5em 1em;
        border: 1px solid #004f9c;
        color: #004f9c;
        border-radius: 3px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        &:after{
          content: '+';
          margin-left: 10px;
          font-size: 1.5em;
          line-height: 0em;
          font-weight: 100;
        }
        &[disabled="disabled"]{
          opacity: 0.5;
        }
      }
    }
    &__body{
      margin: 10px 0 20px 0;
      // max-height: 50vh;
      max-height: 34vh;
      overflow-y: scroll;
      .product_item{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #d9d9d9;

        &__img{
          width: 55px;
          height: 55px;
          background-repeat: no-repeat;
          background-position: center;
          background-size: cover;
          margin-right: 15px;
          background-color: #ddd;
        }
        &__detail{
          width: 50%;
          color: #010101;
          &--category{
            font-size: 12px;
            font-weight: 100;
          }
          &--name{
            font-weight: bold;
          }
          &--original{
            font-weight: 100;
            text-decoration: line-through;
          }
          &--discount{
            color: #f62c2c;
            margin-left: 5px;
            &:before{
              content: '฿';
              margin-right: 5px;
            }
          }
        }
        &__setting{
          width: 30%;
          label{
            font-size: 12px;
          }
          .dropdown{
            display: inline-block;
            border: 1px solid #d9d9d9;
            border-radius: 3px;
            &.open>.dropdown-menu{
              top: -100%;
            }
            .btn-default{
              padding: 0.5em 0.4em;
            }
            span.text{
              padding: 0;
              font-weight: 100;
              text-align: center;
              width: 1.5em;
              display: inline-block;
            }
          }
          input{
            padding: 0.5em;
            border: 1px solid #d9d9d9;
            border-radius: 3px;
            width: 95px;
            text-align: right;
            font-size: 14px;
          }
        }
        &__control{
          width: calc(100% - 70px - 50% - 30%);
          display: flex;
          align-items: center;
          justify-content: center;
          a{
            display: block;
            width: 15px;
            padding-top: 20px;
          }
          img{
            max-width: 100%;
          }
        }

      }
    }
  }

  .add_products{
    &__menu{
      margin-top: 20px;
      .owl-stage{
        min-width: 100%;
      }
      &--item{
        font-weight: 500; 
        margin-right: 20px;
        &.active{
          color: #004f9c;
        }
        a{
          color: inherit;
        }
      }
    }
    .categorytab{
      &__header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        font-size: 13px;
      }
      &__body{
        max-height: 43vh;
        padding-bottom: 20px;
        overflow-y: scroll;
      }
    }
    .styled-checkbox + label:before{
      border: 1px solid #d9d9d9;
    }
    .styled-checkbox:checked+label:after{
      top: 50%;
    }
    .styled-checkbox:disabled + label{
      color: inherit;
      opacity: 0.5;
      &:before{
            background: transparent;
      }
    }
    .product_checkbox{
      padding: 15px 0;
      border-bottom: 1px solid #ddd;
      position: relative;
      &__img{
        width: 50px;
        height: 50px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        margin-right: 15px;
        background-color: #ddd;
      }
      &__name{
        width: 70%;
        font-weight: 100;
        font-size: 14px;
      }
      &__price{
        text-align: right;
        font-size: 14px;
        font-weight: 100;
        width: calc(100% - 95px - 70%);

        &:before{
          content: '฿';
          margin-right: 5px;
        }
      }
    }
  }

  @media only screen and (max-width: 992px) {
    .popup{
      &__header{
        padding: 20px 15px;
      }
      &__content{
        padding: 25px 15px 0;
      }
      &__footer{
        flex-wrap: wrap;
        padding: 20px 15px;
        &--count{
          margin-bottom: 15px;
        }
        .m_full_right{
          width: 100%;
          text-align: right;
        }
      }
    }
    .condition_product{
      &__body{
        .product_item{
          &__detail{
            width: calc(100% - 70px);
          }
          &__setting{
            width: 80%;
          }
          &__control{
            width: 20%;
          }
        }
      }
    }
    .product_checkbox{
      &__name{
        width: calc(100% - 95px) !important;
        font-weight: 500 !important;
      }
      &__price{
        width: 100% !important;
        text-align: left !important;
      }
    }
  }

  .styled-checkbox + label:before {
    border-radius: 4px;
    border: 1px solid #e5e5e5;
  }
  .styled-checkbox + label {
    font-size: 14px;
    font-weight: lighter;
    margin-bottom: 0;
  }
  .styled-checkbox:checked + label:before {
    background: #004f9c;
  }
  .styled-checkbox:checked + label:after {
    background: #fff;
    box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white,
      4px -6px 0 white, 4px -8px 0 white;
  }
}