#templatePayment {

  .email__section--temp {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
  }

  .promotion__detail ul {
    padding-left: 1em;
  }

  .error {
    color: #f22424;
  }

  button:focus {
    outline: none;
  }

  input[readonly]{
    background-color: #f2f2f2;
  }

  font-weight: lighter;

  #form_payment {
    margin: 0 20px;
  }

  .payment__container {
    min-height: 47.7vh;
  }

  .card {
    height: 81vh;
    display: flex;
    justify-content: center;
  }

  .imgbanner {
    width: 100%;
    max-width: 81vh;
    z-index: 0;
    position: relative;

    .edit {
      right: 20px;
      top: 20px;
      z-index: 1;
    }

    .shop__close {
      z-index: 2;
      position: absolute;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
      font-size: 25px;
      font-weight: 500;
    }
  }

  .ltp__action--submit:disabled {
    opacity: 0.25;
  }

  .ltp__action--submit {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: #0166d0;
    border: unset;
    border-radius: 4px;
    padding: 7px 10px;
  }

  .banner {
    height: 100%;
    width: 100%;
    max-width: 81vh;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
  }

  .content {
    background: #fff;
    width: calc(400px + 45px);
    height: 81vh;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
    border-left: 0;
    overflow-y: auto;
    position: relative;

    &__body {
      padding: 20px;
      // overflow-y: auto;
      // height: calc(100% - 115px);
      // padding: 20px;
      // padding-top: 0px;

      .calltoaction {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;

        &__icon {
          width: 25px;
          height: 25px;
          margin-right: 10px;
        }
      }

      .btnRegister__btn {
        .calltoaction {
          margin-top: 0px;
        }
      }
    }
  }

  .header {
    display: flex;
    align-items: center;
    height: 115px;
    width: 100%;
    background: #fff;
    z-index: 9;
    padding: 30px 45px 25px 45px;
    position: relative;

    &__logo {
      height: 60px;
      width: auto;

      img {
        max-height: 100%;
      }
    }

    &__pjname {
      margin-left: 20px;
      font-weight: bold;
      font-size: 16px;
    }

    .lang {
      &__option {
        text-transform: uppercase;
        padding-left: 20px;
        cursor: pointer;
        position: absolute;
        right: 30px;
        top: 20px;

        &--icon {
          width: 10px;
          height: 17px;
        }
      }
    }

    .dropdown_option {
      &--lang {
        display: none;
        position: absolute;
        top: inherit;
        right: 0;
        box-shadow: 1px 1px 1px #ddd;
        z-index: 1;
        background: #fff;

        li {
          display: block;
          background: #fff;
          border-bottom: 1px solid #ddd;
          cursor: pointer;

          a {
            display: block;
            padding: 10px 15px;
          }
        }

        li:hover {
          background: #e7f3fb;
        }

        li.active {
          background: #e7f3fb;
          box-shadow: unset;
        }
      }
    }
  }

  .promotion {
    p {
      margin: 0;
    }

    &__title {
      font-weight: bold;
      font-size: 25px;
      line-height: 1.4em;
      padding: 10px 0;
    }

    &__detail {
      margin-top: 5px;
      padding: 10px 0;
      font-weight: lighter;
      font-size: 18px;
      line-height: 1.4em;
    }
  }

  .thank {
    &__title {
      font-weight: bold;
      font-size: 25px;
      display: flex;
    }

    &__icon {
      margin-left: 10px;
      width: 30px;
    }

    &__detail {
      margin-top: 20px;
      font-weight: lighter;
    }
  }

  .btnRegister {
    position: fixed;
    left: 0;
    width: calc(400px + 45px);
    background: #fff;
    bottom: 0;
    z-index: 10;
    padding: 0px 45px 10px 51px;

    &__btn {
      font-size: 16px;
      font-weight: bold;
      text-align: center;

      background: #c8aa5c;
      border-radius: 3px;
      border-width: 0;
      cursor: pointer;
      padding: 0.5em 0;
    }
  }

  .btnRegister:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 50px;
    top: -50px;
    left: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0), #fff);
  }

  .condition {
    font-size: 10px;
    text-align: center;
    line-height: 18px;
    opacity: 1;
    display: inline-block;
    width: 100%;
    margin-top: 0;
    font-weight: 300;
  }

  .map {
    &__title {
      font-weight: bold;
      font-size: 16px;
      margin: 20px 0;
    }
  }

  .map_guild__title {
    font-weight: bold;
    font-size: 16px;
    margin: 20px 0 10px 0;
  }

  .map_guild {
    line-height: 1.4em;
    // font-size: 15px;
    font-weight: lighter;

    p {
      margin-bottom: 0;
    }
  }

  .information {
    padding: 0 0 30px 0;

    &__title {
      font-weight: bold;
      font-size: 16px;
      margin: 20px 0 10px 0;
    }

    &__info {
      line-height: 2em;
      font-weight: lighter;
    }

    &__social {
      margin-top: 20px;

      &--icon {
        margin-right: 20px;

        img {
          width: 35px;
        }
      }
    }
  }

  .line {
    content: "";
    border-bottom: 1px solid #e5e5e5;
    // position: absolute;
    left: 0;
    width: 100%;
  }

  .ads {
    padding: 30px 0;
  }

  .promotion {
    border-bottom: 1px solid #cdcdcd;
    padding-bottom: 20px;
  }

  .payment__contact,
  .payment__payment,
  .payment__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #cdcdcd;

    &--title {
      font-size: 18px;
      font-weight: 500;
    }
  }

  .payment__line--detail a {
    background: #01b901;
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    padding: 5px 10px;
  }

  .payment__payment--detail {
    text-decoration: underline;
  }

  .payment__contact--detail {
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
  }

  .ltp__action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;

    .ltp__summary {
      line-height: 1.2;

      &--total {
        color: red;
        font-weight: 500;
        font-size: 1.2em;
      }
    }

    .ltp__action--submit {
      background: #0166d0;
      padding: 12px;
      font-weight: 500;
      color: #fff;
      border: 0;
      border-radius: 4px;
      font-size: 20px;
      min-width: 210px;
    }
  }

  .map__box {
    width: 100%;
    height: 17em;
    margin-bottom: 15px;
  }

  .mapeditor__box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 30px 0;

    img.mapeditor__img {
      width: 80%;
      margin: 0 60px 20px;
    }

    .mapeditor__btn {
      border: 2px solid #0166d0;
      border-radius: 3px;
      padding: 5px 22px;
      color: #0166d0;
      font-weight: 500;
      font-size: 12px;
    }
  }

  .mapshow__edit {
    text-align: right;
    margin-bottom: 15px;

    a,
    i {
      font-size: 12px;
      color: #0166d0;
    }

    i {
      margin-right: 5px;
    }

    a {
      text-decoration: underline;
    }
  }

  .mapshow__input--container {
    margin-bottom: 15px;

    input,
    textarea {
      margin-bottom: 15px;
    }
  }

  .branch {
    padding: 15px 0;
    border-bottom: 1px solid #cdcdcd;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &__title {
      &--name {
        font-size: 18px;
        font-weight: 500;
        text-align: left;
      }

      &--time {
        font-size: 12px;
      }
    }

    &__btn {
      display: flex;
      a{
        padding: 6px 10px;
        border: 1px solid #0166d0;
        border-radius: 3px;
        margin-left: 10px;
        display: flex;
        align-items: center;
        img{
          max-width: 16px;
        }
      }
    }
  }

  .social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;

    &__title {
      font-size: 18px;
      font-weight: 500;
      text-align: left;
    }

    .social-box {
      .information__social--icon {
        margin-right: 10px;
        display: inline-block;
      }
    }
  }

  #modal_productdetail,
  #modal_basket {

    .modal-dialog {
      margin: 0;
      float: right;
      width: 375px;
      height: 100%;
    }

    .modal-content {
      border: unset;
    }

    &.modal.fade .modal-dialog {
      transform: translate(25%, 0);
    }

    &.modal.in .modal-dialog {
      transform: translate(0, 0);
    }

    .option,
    .productdetail {
      &__quantity {
        display: flex;
        align-items: center;

        &--input,
        &--delete,
        &--add {
          font-weight: 500;
          line-height: 2;
          text-align: center;
          font-size: 15px;
          padding: 2px 0;
          width: 36px;
        }

        &--input {
          border-radius: 0;
          padding-left: 0;
        }

        &--delete {
          border: 1px solid #ddd;
          border-radius: 4px 0 0 4px;
          margin-right: -1px;
          font-weight: bold;
        }

        &--add {
          border: 1px solid #ddd;
          border-radius: 0 4px 4px 0;
          margin-left: -1px;
          font-weight: bold;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
          -webkit-appearance: none;
          margin: 0;
        }
      }
    }

    .productdetail {
      &__image {
        padding-bottom: 100%;
        position: relative;
        // height: 373px;

        img {
          object-fit: cover;
          height: 100%;
          width: 100%;
          position: absolute;
        }

        ;
      }

      &__option {
        .option {
          &__header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
          }

          &__box {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
          }

          &__name {
            width: 50%;

            .radio,
            .checkbox {
              margin: 0;

              label {
                color: #000;
                font-size: 14px;
                font-weight: lighter !important;
                left: 0;
                right: 0;
                top: 0;
                margin-top: 0;
                padding-left: 30px;
              }

              input[type="radio"],
              input[type="checkbox"] {
                width: 19px;
                height: 19px;
                margin-top: 0px;
                margin-left: -30px;
              }
            }
          }

          &__category {
            font-size: 15px;
            font-weight: 500;
          }

          &__err--msg,
          &__quantitytype {
            font-size: 12px;
            font-weight: lighter;
            color: #808080;
            text-align: right;
            
            &.error {
              color: #f22424;
            }
          }

          &__content {
            margin-top: 15px;
          }
        }
      }

      &__name {
        font-size: 18px;
        font-weight: 500;
      }

      &__box {
        padding: 20px;
        min-height: 38vh;
      }

      &__remark {
        &--title {
          font-size: 15px;
          font-weight: 500;
        }

        &--content {
          textarea {
            padding: 8px 15px;
            font-size: 14px;
            margin-top: 20px;
            font-weight: lighter;
          }
        }
      }
    }

    .option {
      &__detail {
        display: flex;
        align-items: center;
        width: 140px;
        justify-content: space-between;
      }

      &__quantity {

        &--container {
          display: flex;
        }

        &--input,
        &--delete,
        &--add {
          line-height: 1.5;
          padding: 0;
          width: 24px;
        }
      }
    }

    .modal-header {
      position: sticky;
      top: 0;
      z-index: 1;
      color: #fff;
      background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
      border: unset;
      text-align: right;

      .header__pjname {
        font-size: 15px;
        color: #000;
      }

      .cancel {
        img {
          width: 18px;
        }
      }
    }

    .modal-body {
      min-height: calc(100vh - 67px);
      margin-top: -52px;
      padding: 0;
    }

    .modal-footer {
      position: sticky;
      bottom: 0;
      background: #fff;
      display: flex;
      justify-content: space-between;
      border-top: unset;

      &:before,
      &:after {
        content: unset;
      }

      button.basket__add,
      button.basket__delete {
        background: #0066cf;
        border: unset;
        color: #fff;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 500;
        width: 200px;
        padding: 8px 0;

        .productdetail__price {
          font-weight: lighter;
          margin-left: 10px;
        }
      }

      button.basket__delete {
        background-color: #ef4c4d;
      }
    }

    .order__list--title {
      font-size: 20px;
      font-weight: 500;
    }

    .basket__close {
      &--icon {
        width: 16px;
        height: 16px;
        mask-size: contain !important;
        -webkit-mask-size: contain !important;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-position: center;
        background-color: #fff;
        mask-image: url('../../imgs/close_bold.svg');
        -webkit-mask-image: url('../../imgs/close_bold.svg');
        display: inline-block;
      }
    }

    #condition_product {
      position: relative;
      color: red;
      font-size: 12px;
      margin: -14px 0 20px 0px;
    }
  }

  
  #modal_basket {
    .modal-header {
      background-image: unset;
      background: #fff;

      .basket__header {
        display: flex;
        align-items: center;
      }
    }

    .modal-body {
      min-height: calc(100vh - 181px);
      margin: 0 30px;
    }

    .modal-footer {
      .cancel {
        color: #0166d0;
        border: 1px solid #0166d0;
        border-radius: 4px;
        width: 110px;
        text-align: center;
        padding: 8px 0;
        font-weight: 500;
      }

      .basket__submit {
        background: #0166d0;
        border: unset;
        color: #fff;
        font-weight: 500;
        width: 210px;
        border-radius: 4px;
        padding: 8px 0;
        display: flex;
        justify-content: space-evenly;
        align-items: center;

        &:disabled {
          opacity: 0.25;
        }

        &--icon {
          width: 15px;
          height: 15px;
          transform: rotate(180deg);
          mask-size: contain !important;
          -webkit-mask-size: contain !important;
          mask-repeat: no-repeat;
          -webkit-mask-repeat: no-repeat;
          mask-position: center;
          -webkit-mask-position: center;
          background-color: #fff;
          mask-image: url('../../imgs/icon_back.svg');
          -webkit-mask-image: url('../../imgs/icon_back.svg');
        }
      }
    }

    .basket__close {
      &--icon {
        background-color: #000;
      }
    }
  }

  #order__list {
    .order {
      &__detail {
        &--leftbox {
          width: 70%;
          display: flex;
          padding-right: 10px;
          align-items: baseline;
        }

        &--rightbox {
          width: 30%;
          display: flex;
          justify-content: space-between;
        }

        &--namebox {
          width: 100%;
        }

        &--quantity {
          background: #0166d0;
          width: 18px;
          height: 18px;
          border-radius: 50%;
          color: #fff;
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          font-weight: 500;
          margin-right: 10px;
        }

        &--name {
          font-size: 15px;
          font-weight: 500;
        }

        &--option {
          font-size: 12px;
          font-weight: lighter;
          color: #808080;
        }

        &--price {
          font-size: 15px;
          font-weight: 500;
        }

        &--edit {
          a.select__product {
            font-size: 12px !important;
            color: #808080 !important;
            text-decoration: underline;
            border: unset !important;
            font-weight: lighter !important;
            vertical-align: middle;
          }
        }
      }

      &__box {
        &.disabled {
          opacity: 0.25;
        }

        border-top: 1px solid #eee;
        padding: 15px 0;
        display: flex;
        justify-content: space-between;

        &:last-child {
          border-bottom: 1px solid #eee;
        }
      }

    }
  }

  .basket {
    &__action {
      padding: 10px 20px;
      position: sticky;
      bottom: 0;
      background: #fff;
      z-index: 3;
    }

    &__quantity {
      &--box {
        display: flex;
      }

      &--icon {
        width: 16px;
        height: 16px;
        mask-size: contain !important;
        -webkit-mask-size: contain !important;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-position: center;
        background-color: #fff;
        mask-image: url('../../imgs/shopping_bag.svg');
        -webkit-mask-image: url('../../imgs/shopping_bag.svg');
        display: inline-block;
        margin-right: 7px;
      }

      &--total {
        font-size: 14px;
        font-weight: lighter;
      }
    }

    &__price {
      font-size: 14px;
      font-weight: lighter;
    }
  }

  @media only screen and (max-width: 992px) {
    .card {
      height: auto;
      display: block;

      // max-width: 450px;
      max-width: 100%;
      margin: 0 auto;
    }

    .imgbanner {
      max-width: 100%;
    }

    .banner {
      width: 100%;
      max-width: unset;
      box-shadow: none;
    }

    .content {
      background: #fff;
      width: 100%;
      height: unset;
      box-shadow: none;
      overflow-y: unset;

      &__body {
        height: unset;
        padding: 5%;
      }
    }

    .btnRegister {
      width: 100%;
    }

    .promotion {
      margin-top: 0px;
    }

    .thank {
      margin-top: 0px;

      &__title {
        font-size: 20px;
      }
    }

    #modal_productdetail,
    #modal_basket {
      .modal-dialog {
        width: 100%;
      }

      .modal-footer {

        button.basket__add,
        button.basket__delete {
          width: 170px !important;
        }
      }
    }

    .modal-footer {
      .cancel {
        width: 100px !important;
      }

      .basket__submit {
        width: 175px !important;
      }
    }

  }

  @media only screen and (min-width: 400px) and (max-width: 992px) {
    .btnRegister {
      &__btn {
        max-width: 354px;
        margin: 0 auto;
      }
    }
  }

  @media only screen and (width: 1024px) {
    .content {
      &__body {
        padding: 0 30px 30px;
      }
    }

    .header {
      padding: 30px 30px 25px 30px;
    }
  }

  @media only screen and (min-width: 1200px) {}

  @media only screen and (min-width: 1900px) {}
}

.gm-control-active {
  width: 25px !important;
  height: 25px !important;
  margin: 0px auto !important;

  img {
    height: 8px !important;
    width: 8px !important;
    margin: 8px !important;
    transform: translate(0, 0);
    top: 0;
    left: 0;
  }
}

.gm-fullscreen-control {
  margin: 10px !important;

  img {
    height: 15px !important;
    width: 15px !important;
    margin: 5px !important;
  }
}

.gm-bundled-control-on-bottom .gmnoprint div[draggable="false"] {
  width: 25px !important;
  height: 51px !important;

  div {
    margin: 0 2px !important;
    width: 21.5px !important;
  }
}

.gm-bundled-control-on-bottom {
  bottom: 65px !important;
  right: 25px !important;
}

.owl-theme {

  .owl-nav,
  .owl-dots {
    button:focus {
      outline: unset;
    }
  }

  .owl-nav {
    position: absolute;
    margin: 0;
    top: 48%;
    width: 100%;

    span {
      opacity: 0;
    }

    .owl-prev {
      float: left;
      background-image: url(../../imgs/icon_left.svg) !important;
      background-repeat: no-repeat !important;
      background-position: center left 44% !important;
      background-size: 60% !important;
      width: 20px;
      margin: 0 5px;
    }

    .owl-next {
      float: right;
      background-image: url(../../imgs/icon_right.svg) !important;
      background-repeat: no-repeat !important;
      background-position: center left 44% !important;
      background-size: 60% !important;
      width: 20px;
      margin: 0 5px;
    }
  }

  .owl-nav [class*="owl-"]:hover {
    background: transparent;
  }

  .owl-dots {
    position: absolute;
    width: 100%;
    bottom: 0;

    .owl-dot {
      span {
        background: rgba(119, 119, 119, 0.5) !important;
      }
    }
  }

  .owl-dot.active,
  .owl-dot:hover {
    span {
      background: #fff !important;
      box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
  }
}

.alertMessage {
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2000;
  text-align: center;

  &__text {
    margin-bottom: 40px;
  }

  &__submit {
    display: inline-block;
    background: #00bcd4;
    color: #fff !important;
    border-radius: 5px;
    margin-right: 15px;
    padding: 10px;
    width: 35%;
    text-align: center;
  }

  &__cancel {
    display: inline-block;
    background: #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 35%;
    text-align: center;
  }

  .popup {
    width: 400px;
    max-width: 90%;
    background: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 3px;
  }
}

#mapModal {
  .modal-dialog {
    width: 80%;
    height: 100%;
    max-height: 610px;
    max-width: 992px;
    margin: 0 auto;
    padding: 25px 0;
  }

  .modal-content {
    height: 100%;

    .modal__container {
      padding: 30px 50px;
      height: 100%;

      .map__search {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;

        &--title {
          font-size: 20px;
          font-weight: 500;
        }

        &--input {
          width: 70%;
          height: 3em;
        }
      }

      // .map_editor--container {
      //   position: relative;
      // }
      .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: -43px;
        height: 43px;
        width: 27px;
        cursor: pointer;
      }

      #map_editor {
        // width: 100%;
        width: calc(100% + 40px);
        margin-left: -20px;
        height: 80%;
        max-height: 388px;
        margin-bottom: 20px;
      }

      .map__footer {
        display: flex;
        justify-content: space-between;

        &--condition {
          width: 60%;
          color: red;
          font-size: 12px;
        }

        .map__action {
          width: 30%;
          display: flex;
          justify-content: flex-end;
          align-items: center;

          &--submit {
            color: #0166d0;
            background-color: #0166d0;
            border-radius: 3px;
            padding: 8px 22px;
            color: #fff;
            font-weight: 500;
            font-size: 15px;
          }

          &--cancel {
            margin-right: 40px;
            font-weight: lighter;
          }
        }
      }
    }
  }
}

.pac-container {
  z-index: 10000;
}

@media only screen and (max-width: 992px) {
  #mapModal {
    .modal-dialog {
      width: 100%;
      height: 100%;
      max-height: 100%;
      margin: 0;
      padding: 0;

      .modal__container {
        padding: 20px;
        height: 100%;

        .map__search {
          display: block;
        }

        input#pac-input {
          width: 100%;
        }

        .map__search--title {
          margin-bottom: 15px;
        }

        .map__footer {
          display: block;

          &--condition {
            width: 100%;
            text-align: center;
            margin-bottom: 15px;
          }

          .map__action {
            width: 100%;
            justify-content: space-around;
          }
        }
      }
    }
  }
}