body {
  margin: 0 auto;
  padding: 0px;

  color: #000;
  font-family: "Prompt";
  font-size: 15px;
  background-color: #e6e6e6;
}

a {
  color: #000;
  border: none;
  outline: none;
  text-decoration: none;
  &:link,
  &:visited {
    outline: none;
    color: #000;
    text-decoration: none;
  }
  &:hover {
    color: #000;
    text-decoration: none;
  }
}

.clear {
  clear: both;
}
.no-padding {
  margin: 0px;
  padding: 0px;
}

.loader {
  background: #000;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 999;
}
.loader::after {
  content: "";
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  position: fixed;
  z-index: 999999999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  &:after {
    content: "";
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: #fff;
    -webkit-mask-image: url("../../imgs/loading.svg");
    mask-image: url("../../imgs/loading.svg");
  }
  &:before {
    content: "";
    display: block;
    position: relative;
    margin: 10% auto;
    width: 60px;
    height: 60px;
    border-radius: 40px 40px 0px 40px;
    -webkit-box-sizing: border-box;
    border: solid 7px rgba(0, 0, 0, 0.3);

    -webkit-animation: loading 1s infinite ease-in-out;
  }

  @-webkit-keyframes loading {
    0% {
      border-color: rgba(0, 0, 0, 0.3);
    }
    25% {
      border-top-color: #fff;
      border-right-color: rgba(0, 0, 0, 0.3);
      border-bottom-color: rgba(0, 0, 0, 0.3);
      border-left-color: rgba(0, 0, 0, 0.3);
    }
    50% {
      border-top-color: #fff;
      border-right-color: #fff;
      border-bottom-color: rgba(0, 0, 0, 0.3);
      border-left-color: rgba(0, 0, 0, 0.3);
    }
    75% {
      border-top-color: #fff;
      border-right-color: #fff;
      border-bottom-color: #fff;
      border-left-color: rgba(0, 0, 0, 0.3);
    }
    100% {
      border-color: #fff;
      border-right-color: #fff;
      border-bottom-color: #fff;
      border-left-color: #fff;
    }
  }
}

#main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}
@media (max-width: 992px) {
  #main {
    display: block;
  }
  #home {
    width: 100vw;
    overflow-x: hidden;
  }
}
@media (width: 1024px) {
  #main {
    padding: 0 20px;
  }
}

// #12c0be
// #9fc628

// iframe[name='google_conversion_frame'] {
//     height: 0 !important;
//     width: 0 !important;
//     line-height: 0 !important;
//     font-size: 0 !important;
//     margin-top: -13px;
//     float: left;
// }
// .google{
//     height: 0 !important;
//     width: 0 !important;
//     line-height: 0 !important;
//     font-size: 0 !important;
// }

#toast {
  position: fixed;
  z-index: 99999;
  top: 12%;
  right: 10%;
  border-radius: 3px;
  min-width: 250px;
  max-width: 80%;
  padding: 10px 20px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  display: none;
}

#toast span {
  max-width: 88%;
}

#toast:before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  background-size: cover;
  background-repeat: no-repeat;
}
#toast.success:before {
  background-image: url("../../imgs/icon_toast_success.svg");
}
#toast.warning:before {
  background-image: url("../../imgs/icon_toast_warning.svg");
}
#toast.error:before {
  background-image: url("../../imgs/icon_toast_error.svg");
}
#toast.condition:before {
  width: 0;
  height: 0;
  margin-right: 0;
}
#toast.success {
  background: #80b435;
}
#toast.warning {
  background: #d5a011;
}
#toast.error {
  background: #da2828;
}
#toast.condition {
  justify-content: inherit;
  background: #0166d0;
  padding-right: 30px;

  a {
    color: #fff;
  }
  span {
    max-width: 100%;
  }
}
#toast .toast-close {
  position: absolute;
  right: 10px;
}

a.orderhistory {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #0166d0;
  border-radius: 50em;
  padding: 9px 10px;
  color: #fff;
  z-index: 10;
  width: 100px;
  max-width: 100px;
  transition: all 0.1s;

  &.sticky {
    .orderhistory__text {
      position: absolute;
      opacity: 0;
    }
    width: 40px;
  }
}
.orderhistory {
  &__box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  &__text {
    line-height: 1;
    font-weight: lighter;
    text-align: center;
    font-size: 12px;
    position: absolute;
    width: 60px;
    left: 6px;
    opacity: 1;
  }
  &__icon {
    img {
      width: 22px;
      height: 22px;
    }
  }
  &__number {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f43636;
    border-radius: 50em;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }
  &__value {
    font-weight: 500;
    font-size: 16px;
  }
  &__title {
    font-size: 12px;
    font-weight: lighter;
  }
  &__list {
    &--box {
      background: #0166d0;
      margin-bottom: 15px;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 15px;
      color: #fff;
      font-weight: lighter;
    }
    &--order {
      display: flex;
      align-items: baseline;
    }
    &--status {
      position: relative;
      font-size: 12px;
      text-align: right;

      a {
        color: #fff;
        text-decoration: underline;
      }

      .success {
        width: 16px;
        height: 16px;
        background: #9bb700;
        display: inline-block;
        margin-right: 10px;
        vertical-align: middle;
      }
    }
    &--detail {
      margin-right: 15px;
    }
  }
  &__myaccount {
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;

    &--box {
      margin-left: 15px;
    }
    &--phone {
      font-size: 20px;
    }
  }
}
.modal-backdrop {
  z-index: 10;
  &.in {
    opacity: 0.75;
  }
}
#orderhistory__mobile {
  max-width: 323px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 0;
  margin-bottom: 0;
  .modal-body {
    padding: 20px 35px;
  }
  .orderhistory {
    &__header {
      font-size: 20px;
      font-weight: 500;
      margin-bottom: 5px;
    }
    &__subheader {
      font-weight: lighter;
      font-size: 14px;
      margin-bottom: 20px;
    }
    &__input {
      font-size: 14px;
      font-weight: lighter;
      margin-bottom: 30px;
    }
    &__action {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    &__submit {
      color: #0166d0;
      border: 1px solid #0166d0;
      border-radius: 2px;
      line-height: 2;
      background: unset;
      min-width: 100px;
      font-size: 15px;
      font-weight: 500;
    }
    &__cancel {
      font-size: 15px;
      font-weight: lighter;
    }
    &__error {
      display: none;
      margin-bottom: 20px;
      text-align: center;
      color: red;
    }
  }
}
#orderhistory__list {
  margin-top: 15px;
  margin-right: 0;
  width: 420px;

  .modal-header {
    border: unset;
    padding: 0 15px;
    text-align: right;
    a {
      color: #fff;
      background: transparent;
      border: unset;
      font-size: 25px;
      margin-right: 5px;
      img {
        width: 14px;
        height: 14px;
      }
    }
  }
  .modal-body {
    padding-top: 0;
  }
  .modal-content {
    background: transparent;
    box-shadow: unset;
    border: unset;
  }
  .orderhistory {
    &__back {
      font-size: 14px;
      font-weight: lighter;
      text-align: right;
      a {
        color: #fff;
        text-decoration: underline;
      }
    }
  }
}

// Validate
.has-error {
  position: relative;
  input {
    border-color: red !important;
  }
}
.help-block.form-error {
  position: absolute;
  bottom: -14px;
  right: 0;
  font-size: 9px;
  color: red;
  margin: 0;
  font-weight: lighter;
}

.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;
  }
}
.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;
}

@media (max-width: 992px) {
  #orderhistory__mobile {
    width: 95%;
    max-width: 95%;
    .modal-content {
      width: 100%;
    }
  }
  #orderhistory__list {
    width: 100%;
    margin: 0px;
    margin-top: 15px;
    .modal-body {
      padding: 15px 10px;
    }
  }

  a.orderhistory {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #0166d0;
    border-radius: 50em;
    padding: 12px;
    color: #fff;
    z-index: 10;
    width: 130px;
    max-width: 130px;
    transition: all 0.1s;
  
    &.sticky {
      .orderhistory__text {
        position: absolute;
        opacity: 0;
      }
      width: 46px;
    }
  }
  .orderhistory__text {
    font-size: 15px;
    left: 11px;
    width: 80px;
  }
  .orderhistory__icon {
    img {
      padding-bottom: 4px;
    }
  }
}
