*,
*:before,
*:after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

input[type="number"] {
  height: auto;
}

.vi-ui {
  &.menu {
    flex-wrap: wrap;
  }
  &.message{
    &.vifewc_go_to_design{
      text-align: center;
    }
    a{
      color: inherit;
    }
  }

  &.form .fields {
    gap: 10px;
  }
}
.vifewc-success{
  color: green !important;
}
.vifewc-warning{
  color: red !important;
}
.vifewc-warning-wrap{
  border-color: red !important;
}
.vifewc-hidden,
.vifewc-disabled {
  display: none !important;
}

.vifewc-save-wrap {
  position: sticky;
  bottom: 20px;
  display: inline-block;
  z-index: 1;
}

.minicolors{
  &.minicolors-theme-default{
    width: 100% !important;
    .minicolors-input{
      height: auto;
      padding: 0 8px;
    }
  }
  .minicolors-input-swatch{
    display: none !important;
  }
}
.vifewc-placeholder {
  background: white;
  border: 1px dashed rgba(1, 1, 1, .3);
  height: 42px !important;
  line-height: 42px;
  visibility: visible;
}
.fewc-loading-btn{
  .loading{
    background: transparent;
    margin: 30px;
    width: 90%;
    font-size: 20px;
  }
}
.fewc-section-fields-container {
  margin-top: 30px;
  .fewc-section-fields-wrap {
    .fewc-section-fields-action {
      display: inline-flex;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 100%;
    }
    table{
      color: #50575e;
      i.dashicons {
        opacity: 0.95;
        font-size: 16px;
        &:hover{
          opacity: 1;
        }
      }
      .fewc-section-fields-sort{
        .fewc-section-field-wrap{
          cursor: pointer;
          &:not(.fewc-section-field-wrap-enable){
            color: #dbdada;
          }
        }
      }
    }
  }
}
.vifewc-sections-container{
  .item{
    cursor: pointer;
  }
  .vifewc-section{
    display: inline-flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    .vifewc-section-actions{
      display: inline-flex;
      justify-content: end;
      gap: 3px;
    }
    i{
      font-weight: 300;
      opacity: 0.55;
      margin-right: 0;
      font-size: 13px;
      &:hover{
        opacity: 1;
      }
    }
  }
}

.vifewc-popup-wrap {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  z-index: 999999;
  &:not(.vifewc-popup-wrap-show) {
    left: 100%;
  }

  &.vifewc-popup-wrap-loading {
    .vifewc-overlay {
      &.vifewc-overlay-loading {
        left: 0;
      }
    }
  }

  &.vifewc-popup-wrap-hidden {
    left: 100%;
    animation-duration: .35s;
    animation-name: vifewc_hidden_right_out;
  }

  &.vifewc-popup-wrap-show {
    left: 0;
    animation-duration: .35s;
    animation-name: vifewc_hidden_right_in;
  }

  .vifewc-overlay {
    width: 100%;
    height: 100%;
    background: #222;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    &.vifewc-overlay-loading {
      left: 100%;
      z-index: 10;
      background: #fff;
      opacity: .65;

      &:before {
        position: absolute;
        top: 40%;
        left: calc(50% - 25px);
        content: "" !important;
        border: 5px solid #ffffff;
        border-top: 5px solid #1db7b1;
        border-bottom: 5px solid #1db7b1;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: vifewc-spin 1s linear infinite;
      }
    }
  }

  .vifewc-popup {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 99999;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    .vifewc-popup-container-wrap {
      display: flex;
      justify-content: center;
      position: relative;
      max-height: 80%;
      width: 600px;
      max-width: 80%;
      z-index: 2;

      .vifewc-popup-close {
        position: absolute;
        z-index: 1;
        top: -45px;
        right: -35px;
        font-size: 35px;
        line-height: 35px;
        cursor: pointer;
        color: #fff;
        transform: scale(2) rotate(45deg);
        font-family: "Times New Roman";
      }

      .vifewc-popup-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        background: #fff;
        margin: 0;
        overflow: hidden;
        height: auto;
        border-radius: 5px;

        .vifewc-popup-bt {
          margin: auto;
        }

        .vifewc-popup-header-wrap {
          text-align: left;
          font-size: 20px;
          font-weight: 600;
          color: #000000d9;
          padding: 18px;
          border-bottom: 1px solid #e6e6e6;
        }

        .vifewc-popup-content-wrap {
          text-align: left;
          padding: 20px;
          color: #222;
          overflow: auto;
          height: auto;
          max-height: calc(100% - 120px);
          /* scrool bar */
          &::-webkit-scrollbar {
            width: 7px;
          }

          &::-webkit-scrollbar-track {
            background: #f1f1f1;
            margin-top: 2px;
            margin-bottom: 2px;
          }

          &::-webkit-scrollbar-thumb {
            background: #cecece;
            border-radius: 20px;
            &:hover {
              background: #a6a6a6;
            }
          }
          .accordion{
            margin-bottom: 25px;
            .title{
              &.active{
                font-weight: 400;
              }
            }
          }

          .vifewc-popup-content:last-child {
            margin-bottom: 0;
          }

          .vifewc-popup-content {
            display: inline-flex;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 15px;
            width: 100%;
            font-weight: 300 !important;
            .vifewc-popup-content-full-row {
              width: 100%;

              .vifewc-popup-receipt-select-wrap {
                display: grid;
                grid-template-columns: max-content auto;
                grid-gap: 20px;

                div {
                  align-self: center;
                }
              }
            }

            .vifewc-popup-content-half-row {
              width: 50%;
            }

            .vifewc-popup-content-horizontal {
              display: inline-grid;
              justify-content: space-between;
              align-items: center;
              grid-template-columns: 2.5fr 7.5fr;
            }

            .vifewc-popup-content-vertical {
              display: inline-grid;
              justify-content: flex-start;
              align-items: center;
              grid-template-columns: 100%;
              grid-gap: 5px;
            }
            .vifewc-popup-content-value {
              display: inline-flex;
              justify-content: flex-start;
              width: 100%;
              padding-left: 10px;
              gap: 10px;
              &.vifewc-popup-content-field-options{
                padding: 0;
              }
              &:not(.vifewc-color-value)  div{
                width: 100%;
                &.vifewc-edit-field-option-checkbox-wrap{
                  width: auto;
                }
              }
              .vifewc-edit-field-options-wrap{
                margin: 9px 0;
                display: inline-flex;
                flex-direction: column;
                gap: 5px;
                .vifewc-edit-field-option-wrap{
                  background: #f6f7f7;
                  margin: 0;
                  display: inline-flex;
                  justify-content: space-between;
                  align-items: center;
                  padding:5px 0 5px 5px;
                  border-radius: 3px;
                  gap: 5px;
                  .vifewc-edit-field-option-container{
                    justify-content: space-around;
                    display: inline-flex;
                    align-items: center;
                    gap: 5px;
                    input{
                      padding: 0;
                      border-radius: 3px;
                    }
                  }
                  .vifewc-edit-field-option-action{
                    color: #909090;
                    cursor: pointer;
                    &:hover{
                      color: #222;
                    }
                    i{
                      margin: 0;
                    }
                  }
                }
              }
            }
            .vifewc-popup-content-tooltip{
              i{
                margin-left: 6px;
                cursor: pointer;
                font-size: 13px;
                color: #707070;
              }
            }

            input:not([type=checkbox]),textarea {
              padding: 10px 3px;
              border: 1px solid #ccc !important;
              border-radius: 2px;
              padding-left: 8px !important;
              width: 100%;
              line-height: 1;
              &.search{
                border: none !important;
              }
              &:focus, &:active{
                outline: unset;
                box-shadow: none;
              }
              &.vifewc-warning-wrap{
                border: 1px solid red !important;
              }
            }
          }
        }

        .vifewc-popup-footer-wrap {
          text-align: right;
          padding: 14px 18px;
          border-top: 1px solid #e6e6e6;
          .vifewc-popup-wrap-field-info-bt-save{
            background: #2185d0;
            color: #fff;
          }
        }
      }
    }
  }
}
.rtl {
  .vifewc-popup{
    .vifewc-popup-container-wrap{
      .vifewc-popup-container{
        .vifewc-popup-content-wrap{
          text-align: right;
        }
        em{
          font-weight: 500;
        }
      }
    }
  }
}
.vifewc-dropdown-header {
  color: rgba(0, 0, 0, .8);
  font-size: .78571429em;
  padding: 1rem 1.14285714rem .75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #f1f1f1;
  border-bottom: 1px solid rgba(34, 36, 38, .1);
  border-top: 1px solid rgba(34, 36, 38, .1);
  white-space: break-spaces !important;
}
@keyframes vifewc_hidden_right_out {
  from {
    left: 0;
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}

@keyframes vifewc_hidden_right_in {
  from {
    left: 100%;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}
@keyframes vifewc-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}