#landing {
  min-width: 993px;
  width: 85%;
  margin: 0 auto;
  max-width: 1600px;
  min-height: 100%;

  #pac-input {
    height: 2.5em;
    line-height: 2.5em;
  }
  .centerMarker {
    position: absolute;
    background: url(https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png) no-repeat;
    top: 50%;
    left: 50%;
    z-index: 1;
    margin-left: -14px;
    margin-top: -23px;
    height: 43px;
    width: 27px;
    cursor: pointer;
  }

  #map_editor {
    width: 50vw;
    height: 50vh;
  }

  .popupModel .popup__contrl--save {
    border: unset;
  }
  // .elehide{
  //   display: none !important;
  // };

  .seton-off__switch {
    display: flex;
    align-items: center;
  }

  .popupModel .popup .popup__type[popup_type="text"] #text-textarea {
    font-size: 18px;
  }

  // Fix style quill
  #promotion__detail ul {
    padding-left: 1em;
  }

  #promotion__detail ol {
    padding-inline-start: 20px;
  }

  .ql-editor,
  .ql-editor ul > li {
    list-style-type: disc !important;
  }
  .ql-editor ul > li::before {
    content: none !important;
  }
  .ql-editor ol li:not(.ql-direction-rtl),
  .ql-editor ul li:not(.ql-direction-rtl) {
    padding-left: 0em !important;
  }
  .ql-editor ol,
  .ql-editor ul {
    padding-left: 1em !important;
  }
  // Fix style quill

  .box {
    position: relative;
    display: flex;
    align-items: center;

    p {
      margin: 0;
    }
  }

  .edit {
    display: flex;
    position: absolute;
    right: -10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    opacity: 1 !important;
    border-radius: 100%;

    img {
      width: 20px;
    }
  }

  .alerttoast {
    position: absolute;
    bottom: 20px;
    background: rgba(234, 67, 53, 0.9);
    padding: 15px 20px;
    color: #fff;
    font-weight: 400;
    display: flex;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-width: 95%;
    font-size: 14px;
    z-index: 9;

    &__link {
      color: #fff;
      text-decoration: underline;
      margin-left: 20px;
    }

    svg {
      width: 18px;
      height: 18px;
      margin-right: 10px;
      fill: #fff;
    }
  }
  .alerttoast.offline {
    background: rgba(234, 67, 53, 0.9);
  }
  .alerttoast.online {
    background: rgba(135, 200, 60, 0.9);
  }

  .tutorial {
    position: absolute;
    padding: 10px 20px;
    background: #fff;
    color: #ea4335;
    font-size: 14px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    top: 0;
    right: 30px;
    width: calc(100% - 0px);

    &__text {
      display: flex;
    }

    svg {
      width: 18px;
      height: 18px;
      margin-right: 10px;
      fill: #ea4335;
    }

    &__close {
      color: #ea4335;
      padding: 2px 10px;
      border: 1px solid #ea4335;
      border-radius: 5px;
      font-weight: 100;
      margin-left: 20px;
    }

    &:after {
      content: "";
      background: url("../../imgs/tutorialbg_after.svg") no-repeat;
      background-size: contain;
      width: 25px;
      height: 25px;
      position: absolute;
      top: 30%;
      right: -24px;
    }
  }

  #imgbanner {
    justify-content: center;
    position: relative;
    display: flex;

    .tutorial {
      top: 10px;
      right: 80px;
      width: unset;
    }
  }

  .elehide {
    opacity: 0.25;
  }

  #template_fullscreen {
    overflow-y: scroll;
    .template-main {
      height: 100vh;
      overflow: scroll;
      .imgbanner {
        position: sticky !important;
        span.edit {
          z-index: 1;
          right: 2rem;
          top: 20px;
        }
      }
    }
    [code="developer"] {
      .edit {
        top: 0;
        right: -25px;
        margin-right: 15%;
      }
    }
    [code="footer"],
    [code="link_out"] {
      display: block;
    }
    [code="link_out"] > .edit {
      top: 0;
    }
    [code="footer"] > .edit {
      top: 10px;
      right: 715px;
    }
    [code="ocpb"] {
      .edit {
        top: 5px;
        right: 36px;
      }
    }
    [code="background"] {
      .edit {
        top: -35px;
      }
    }
  }

  [code="approval"] {
    .edit {
      top: 0px;
      right: -20px;
    }
  }

  @media only screen and (width: 1024px) {
    max-width: 984px;
    margin: 0 auto;

    .edit {
      right: -20px;
    }
  }
  @media only screen and (max-width: 992px) {
    width: 100%;
    min-width: unset;
    #map_editor {
      width: 100%;
      height: 50vh;
    }
    .alerttoast {
      font-size: 12px;
      align-items: center;
      z-index: 9;
    }
    .alerttoast.online {
      // left: 30%;
    }
    .alerttoast.offline {
      // left: 10%;
    }
    .tutorial {
      font-size: 10px;
      padding: 10px;
      right: 20px;
      width: calc(100% - 20px);

      svg {
        width: 15px;
        height: 15px;
      }
    }

    #template_fullscreen {
      .template-main {
        height: auto;
      }
      .edit {
        .dropdown-toggle {
          margin-bottom: 0;
        }
      }
      [code="ocpb"] {
        padding: 2em 10%;
        position: relative;
        .edit {
          right: -30px;
          margin-right: 10%;
        }
      }
      [code="footer"] {
        .edit {
          top: -6px;
          right: -30px;
          margin-right: 10%;
        }
      }
      [code="developer"] {
        .edit {
          top: 10px;
          margin-right: 0;
        }
      }
      .imgbanner span.edit {
        right: -30px !important;
        margin-right: 10%;
        // right: 6% !important;
      }
      .footer {
        padding: 0 10%;
        position: relative;
      }
      #developer_editor,
      #promotion__title_editor {
        margin: 0 auto;
      }
      .policy div {
        margin-bottom: 0;
        padding-bottom: 20px;
      }
    }
  }
}

.popupModel {
  .BGmodel {
    top: 0;
  }

  .popup {
    #popup__gallery {
      display: none;
    }

    &__upload {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 500px;

      &--title {
        width: 45%;
      }

      &--contrl {
        display: flex;
      }

      &--btn {
        color: #fff;
        background: #00bcd4;
        // margin-right: 10px;
        padding: 12px 1.6em;
        border-radius: 3px;
        font-size: $font-size-small;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;

        input[type="file"] {
          border: 0;
          position: absolute;
          right: 0;
          top: 0;
          padding: 0;
          opacity: 0;
          cursor: pointer;
          width: 100%;
          height: 100%;
        }
      }
    }

    &__gallery {
      width: 500px;
      max-width: 100%;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #f3f3f3;

      input[type="radio"] {
        display: none;
      }

      input[type="radio"]:checked + label:before {
        content: "";
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #00bcd4;
        position: absolute;
        z-index: 1;
        right: 14.5px;
        top: 10px;
        box-shadow: 1px 1px 2px #afafaf;
      }

      input[type="radio"]:checked + label:after {
        content: "";
        position: absolute;
        z-index: 1;
        right: 32px;
        top: 28px;
        -moz-transform: scaleX(-1) rotate(135deg);
        -ms-transform: scaleX(-1) rotate(135deg);
        -webkit-transform: scaleX(-1) rotate(135deg);
        transform: scaleX(-1) rotate(135deg);
        -moz-transform-origin: left top;
        -ms-transform-origin: left top;
        -webkit-transform-origin: left top;
        transform-origin: left top;
        border-right: 2px solid #fff;
        border-top: 2px solid #fff;
        height: 15px;
        width: 7px;
      }

      input[type="checkbox"] {
        display: none;
      }

      .image_priority {
        position: absolute;
        z-index: 1;
        right: 14.5px;
        top: 10px;
        width: 35px;
        height: 35px;
        color: #fff;
        border-radius: 50%;
        background: #00bcd4;
        box-shadow: 1px 1px 2px #afafaf;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      label {
        position: relative;
        top: 0;
        left: 0;
        color: #000;
        margin: 0;
        font-size: 12px;
        font-weight: 100;
        overflow-wrap: break-word;
      }
    }

    &__images {
      max-height: 60vh;
      overflow-y: scroll;
      display: flex;
      flex-wrap: wrap;
      margin: 0 -7px;
      padding-top: 20px;

      &--item {
        width: 33.33%;
        padding: 0 7px;
        margin-bottom: 10px;
        position: relative;
      }

      &--img {
        margin-bottom: 5px;
        width: 100%;
      }

      &--delete {
        position: absolute;
        z-index: 2;
        top: 60%;
        right: 21px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        box-shadow: 1px 1px 2px #afafaf;
        cursor: pointer;

        img {
          width: 13px;
        }
      }
    }

    &__contrl {
      &--contrl {
        display: flex;
      }

      &--save,
      &--cancel {
        padding: 12px 2em;
      }

      &--cancel {
        margin-right: 10px;
      }
    }

    @media only screen and (max-width: 992px) {
      input[type="checkbox"].switch + label {
        margin: 0 10px;
        top: 0;
        position: -webkit-sticky;
        position: sticky;
      }
    }

    .have__gallery {
      .popup__upload--title {
        width: unset;
      }

      #popup__gallery {
        display: block;
      }

      .popup__upload--contrl {
        justify-content: flex-end;
        .popup__contrl--cancel {
          display: none;
        }
      }
    }

    .popup__type[popup_type="images"] {
      .popup__contrl {
        justify-content: flex-end;

        &--cancel,
        &--save {
          margin-left: 20px;
        }
      }
    }

    .popup__type[popup_type="text"] {
      #text-textarea {
        width: 300px;
        max-width: 100%;
      }
    }

    .popup__type[popup_type="map"] {
      textarea {
        padding: 12px 15px;
      }
    }

    .popup__type[popup_type="custom"],
    .popup__type[popup_type="button"],
    .popup__type[popup_type="fields_color"] {
      // width: 200px;

      .color_control {
        margin-top: 20px;
      }

      .inputColor {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 0 10px;

        input {
          border: 0px;
          padding: 0;
        }

        &__icon {
          width: 17px;
          height: 17px;
          border-radius: 50%;
          border: 1px solid #dedede;
        }
      }

      .color {
        margin: 10px 0 20px;
        padding: 0;
        display: none;

        .col-xs-2 {
          padding: 5px;
        }

        &__ball {
          content: "";
          width: 20px;
          height: 20px;
          background: red;
          border-radius: 50%;
          cursor: pointer;
          border: 1px solid #dedede;
        }
      }
    }

    .popup__type[popup_type="custom"],
    .popup__type[popup_type="map"],
    .popup__type[popup_type="text_approval"] {
      .seton-off {
        display: flex;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;

        &__title {
          font-weight: bold;
          font-size: 20px;
        }

        &__switch {
          display: flex;
          align-items: center;
          color: #888;
        }
      }

      textarea {
        width: 100%;
        height: 150px;
        // width: 300px;
        max-width: 100%;
      }
    }

    .popup__type[popup_type="custom"],
    .popup__type[popup_type="contact"],
    .popup__type[popup_type="social"],
    .popup__type[popup_type="link_out"] {
      .inputGroup {
        margin-bottom: 10px;
      }

      .inputfield {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 0 10px;

        input {
          border: 0;
          padding: 0;
        }

        ::placeholder {
          font-weight: 100;
          font-style: italic;
        }

        &__clear {
          width: 17px;
          cursor: pointer;
        }
      }

      .notEmpty {
        border-color: #595959;
      }

      .social_icon {
        width: 20px;
        margin-bottom: 5px;
        margin-right: 5px;
      }
    }

    .popup__type[popup_type="social"],
    .popup__type[popup_type="link_out"] {
      position: relative;
      .inputfield {
        // width: 300px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
      }
      .group_input {
        display: flex;
        align-items: center;
      }
      .function_title {
        position: absolute;
        right: 0;
      }
      .function_title:hover span:after {
        content: "Call to action";
        position: absolute;
        top: -120%;
        font-size: 12px;
        left: -120%;
        background: #6b6a6a;
        padding: 3px 5px;
        border-radius: 3px;
        width: 100px;
        text-align: center;
        color: #fff;
      }
      .inputname {
        width: 300px;
        max-width: 100%;
        display: flex;
        align-items: center;
        margin-top: 7px;

        &__title {
          width: 30%;
          text-align: right;
          margin-right: 10px;
        }
      }
      .social__checkbox {
        position: relative;
        margin-left: 15px;

        label {
          left: 0;
          top: 0;
          margin: 0;
        }
        .styled-checkbox + label:before {
          border: 1px solid #ddd;
          margin: 0;
        }
      }
    }

    .popup__type[popup_type="fields"] {
      width: 500px;
      max-width: 100%;
      max-height: 90vh;
      .popup__content {
        max-height: 70vh;
        overflow: scroll;
      }
      .field {
        background: #fff;
        padding: 15px;
        border-radius: 3px;
        border: 1px solid #ddd;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
        font-size: 16px;
        font-weight: 400;

        &__move {
          width: 5%;
          cursor: move;
          svg {
            width: 70%;
            fill: #d9d9d9;
          }
        }
        &__content {
          width: 88%;

          &--title {
            cursor: pointer;
            // display: none;
          }
          &--content {
            display: none;
          }
          &--label {
            font-size: 13px;
            margin-bottom: 5px;
          }
          &--setting {
            display: flex;
            align-items: flex-end;
            margin: 10px 0;
          }
          &--checkbox {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            width: 100%;
          }
          &--checkboxitem {
            position: relative;
            margin: 5px 15px 5px 0;
          }
          &--delete {
            cursor: pointer;
            color: #ff3f3f;
            text-decoration: underline;
            margin: 5px 0;
          }
          input {
            font-size: 16px;
            margin-bottom: 10px;
          }
          .styled-checkbox + label {
            color: #000;
            left: 0;
            top: 0;
            margin: 0px;
          }
          .styled-checkbox + label:before {
            border-radius: 3px;
            border: 1px solid #ddd;
          }
          .input ~ label,
          input:focus ~ label,
          textarea:focus ~ label {
            top: 0px;
            font-size: 13px;
            margin-top: 0px;
          }
          .bootstrap-tagsinput {
            width: 100%;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            .tag {
              padding: 5px;
              display: inline-block;
              margin: 1px;
              color: #000;
              font-size: 13px;
              font-weight: 400;
              font-family: Prompt;
              background: #52cbda;
              border: 1px solid #00899a;
            }
            input {
              margin: 0;
              width: 100px;
            }
          }
        }
        &__collapse {
          width: 7%;
          padding-left: 2%;
          cursor: pointer;
          svg {
            width: 50%;
            fill: #000;
          }
          &.open svg {
            transform: rotate(180deg);
          }
        }
      }

      .popup__contrl {
        flex-wrap: wrap;
        &--addfield,
        &--add {
          border: 1px solid #00bcd4;
          color: #00bcd4;
          padding: 12px 1.6em;
          border-radius: 3px;
          display: flex;
          align-items: center;
          font-size: $font-size-small;
          font-weight: bold;

          cursor: pointer;
          svg {
            width: 10px;
            fill: #00bcd4;
            margin-right: 8px;
          }
        }
        &--contrl {
          display: flex;
          flex-wrap: wrap;
        }
        &--save {
          font-weight: bold;
        }
        .dropdown_fields {
          position: relative;
          display: flex;
        }
        .dropdown_option--addfield {
          display: none;
          position: absolute;
          right: -100%;
          bottom: 20px;
          box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 4px;
          z-index: 10;
          background: rgb(255, 255, 255);

          li {
            display: block;
            background: #fff;
            border-bottom: 1px solid #ddd;
            cursor: pointer;
            padding: 10px 15px;
            &:last-child {
              border-bottom: 0;
            }
            &:hover {
              color: #fff;
              background: #004f9c;
            }
          }
        }
      }

      @media only screen and (max-width: 992px) {
        .field {
          padding: 10px 5px;
          &__move {
            svg {
              width: 80%;
            }
          }
          &__collapse {
            svg {
              width: 70%;
            }
          }
        }
      }
    }

    .popup__type[popup_type="link_out"] {
      position: relative;

      .field__content--title {
        display: flex;
        justify-content: space-between;
        .seton-off {
          margin-top: -6px;
        }
      }

      #link_out_container {
        overflow-y: auto;
        max-height: 60vh;
      }

      .popup__contrl {
        justify-content: flex-end;
        &--save {
          border: unset;
        }
      }
      .link_out{
        &__group{
          padding-bottom: 10px;
        }
      }
    }
    .popup__type[popup_type="text_approval"] {
      width: 100%;
      max-width: 400px;
    }

    .popup__type[popup_type="button"],
    .popup__type[popup_type="contact"],
    .popup__type[popup_type="custom"],
    .popup__type[popup_type="fields_color"],
    .popup__type[popup_type="social"],
    .popup__type[popup_type="link_out"] {
      .popup__contrl {
        justify-content: flex-end;
      }
    }

  }

  @media only screen and (max-width: 992px) {
    .popup {
      padding: 20px 5%;
      max-width: 100%;
      width: 100%;
      max-height: 97vh;
      border-radius: 3px;

      &__contrl {
        font-size: 12px;
      }

      &__upload {
        display: block;

        &--title {
          margin-right: 0px;
          font-size: 12px;
          width: 100%;
        }

        &--contrl {
          margin-top: 20px;
        }

        &--btn {
          font-size: $font-size-small;
        }
      }

      &__gallery {
        font-size: 12px;

        input[type="radio"]:checked + label:before {
          width: 25px;
          height: 25px;
        }

        input[type="radio"]:checked + label:after {
          width: 5px;
          height: 12px;
          top: 24px;
          right: 28px;
        }

        .image_priority {
          width: 25px;
          height: 25px;
        }
      }

      &__images {
        max-height: 55vh;

        &--item {
          width: 50%;
        }

        &--delete {
          width: 25px;
          height: 25px;

          img {
            width: 10px;
          }
        }
      }
    }
  }
}

#cropImgModel {
  // Loading
  $base-line-height: 75px;
  $white: rgb(255, 255, 255);
  $off-white: rgba($white, 0.2);
  $spin-duration: 1s;
  $pulse-duration: 750ms;

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes pulse {
    50% {
      background: $white;
    }
  }

  html {
    height: 100%;
  }

  body {
    @extend html;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #333333;
  }

  .loading {
    border-radius: 50%;
    width: $base-line-height;
    height: $base-line-height;
    border: 0.75rem solid $off-white;
    border-top-color: $white;
    animation: spin $spin-duration infinite linear;
  }

  .loader {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    z-index: 999;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
  }
  // Loading

  z-index: 1000;

  .popup {
    width: 500px;
    padding: 0;
    position: relative;

    &__title {
      padding: 20px 40px;
      margin: 0;
    }

    &__contrl {
      margin: 0;
      padding: 20px 40px;
      justify-content: flex-start;
      position: relative;

      &--save {
        margin-right: 20px;
      }

      &--upload {
        background: #ddd;
        padding: 12px 1.6em;
        border-radius: 3px;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        position: absolute;
        right: 40px;
        font-size: $font-size-small;
        input[type="file"] {
          border: 0;
          position: absolute;
          right: 0;
          top: 0;
          padding: 0;
          opacity: 0;
          cursor: pointer;
          width: 100%;
          height: 100%;
        }
      }
    }

    .croppie-container {
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
      position: relative;

      .cr-viewport {
        border: 0;
        box-shadow: unset;
      }

      .cr-slider-wrap {
        width: 100%;
        margin: 0;
        position: absolute;
        text-align: center;
        bottom: 0;
        z-index: 9;
        padding: 0px 30px;
        background: rgba(229, 229, 229, 0.5);

        .cr-slider {
          border: 0;
          padding: 0;
        }

        .cr-slider:before {
          content: "-";
          color: #504c4c;
          margin-right: 15px;
          font-size: 20px;
          font-weight: lighter;
        }

        .cr-slider:after {
          content: "+";
          color: #504c4c;
          margin-left: 15px;
          font-size: 20px;
          font-weight: lighter;
        }
      }
    }
  }

  @media only screen and (max-width: 992px) {
    .popup {
      &__title {
        font-size: 16px;
        padding: 20px;
      }

      &__contrl {
        padding: 20px;

        &--upload {
          right: 20px;
        }
      }
    }
  }
}

.ql-editor {
  font-family: Prompt;
}
