// -----------------------------------------------------------------------------
// This file contains all global styles of a model component.
// -----------------------------------------------------------------------------

/* Modal Component */
// Relative to modal-content
.dismiss-button {
  z-index: 2;
  position: absolute;
  top: 0;
  right: -50px;
  background-color: transparent;
  padding: 8px;
  font-size: 24px;
  border: 0;
  color: $g-white;
  cursor: pointer;
  transition: color 110ms ease-in-out;
  &:hover {
    color: $g-brand-color;
  }
}

// Modal:1 Dashboard Modal Styles
#dash-newsletter {
  .modal-dialog {
    width: 100%;
    max-width: 450px;
  }

  .modal-body {
    padding: rem(30);
  }
}

// Form Buttons (Subscribe - Cancel)
.d-modal__form {
  width: 100%;
  .btn {
    padding: 14px 46px;
    font-size: 12px;
    font-weight: 600;
  }


  a {
    font-size: 15px;
    font-weight: 600;
    color: $g-brand-color;
    transition: color 110ms ease-in-out;
    &:hover {
      color: $g-text-color;
    }
  }
}






// Modal:2 Checkout - Edit Ship Address
// Modal:3 Checkout - Add Ship Address
#edit-ship-address,#add-ship-address {
  .modal-dialog {
    width: 100%;
    max-width: 750px;
  }
  .modal-body {
    padding: rem(30);
  }
}

.checkout-modal1__form,.checkout-modal2__form {
  width: 100%;

  .btn,.input-text,.select-box {
    border-radius: 6px;
  }

  .input-text,.select-box  {
    width: 100%;
  }

  .btn {
    font-weight: 600;
    padding: 16px 46px;
  }
}


// Modal:4 Add to Cart Modal Styles
#add-to-cart {
  .modal-dialog {
    width: 100%;
    max-width: 550px;
  }

  .row {
    align-items: center;
  }
}
.success {
  text-align: center;
  &__text-wrap {
    margin-bottom: 18px;
    i {
      margin-right: 8px;
      font-size: 16px;
      color: $g-brand-color;
    }

    span {
      font-weight: 700;
      font-size: 14px;
      color: $g-brand-secondary-color;
    }

  }

  &__img-wrap {
    display: inline-block;
    vertical-align: middle;
    background-color: $g-card-bg-color;
    width: 120px;
    height: 120px;
    img {
      min-width: 120px;
    }
  }


  &__name {
    display: block;
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: $g-brand-secondary-color;
  }
  &__quantity {
    margin-bottom: 4px;
    display: block;
    font-size: 12px;
    color: #a0a0a0;
  }

  &__price {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: $g-brand-color;
  }

}
.s-option {
  text-align: center;

  &__text {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    color: #a0a0a0;
  }

  &__link-box {
    width: 85%;
    margin: 0 auto;
  }

  &__link {
    margin-bottom: 20px;
    display: block;
    padding: 12px 8px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
  }

}


// Modal:5 Product Quick Look
#quick-look {

  .modal-dialog {
    width: 100%;
    max-width: 991px;
  }

  .modal-body {
    padding: rem(30);
  }
}

// Modal:6 Newsletter Modal

.new-l--center {
  text-align: center;
}

#newsletter-modal {
  .modal-dialog {
    width: 100%;
    max-width: 800px;
  }

  .modal-body {
    padding: 0;
  }

  .new-l__dismiss {
    z-index: 2;
    position: absolute;
    top: 0;
    right: 10px;
    background-color: transparent;
    padding: 8px;
    font-size: 16px;
    border: 0;
    color: #515151;
    cursor: pointer;
  }

  .row {
    align-items: center;
  }
}

.new-l__img-wrap {
  background-color: $g-card-bg-color;
  position: relative;
  &:before {
    transition: all 0.6s linear;
    content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, .4);
  }
}
.new-l__img-wrap:hover {
  &:before {
    opacity: 1;
  }
}


.new-l__h3 {
  font-size: 26px;
  line-height: 1.2;
  color: $g-brand-secondary-color;
}

.new-l__p1 {
  font-size: 14px;
  line-height: 21px;
}

.new-l__p2 {
  font-size: 12px;
  color: #a0a0a0;
}

.new-l__link {
  font-size: 13px;
  color: $g-text-color;
  transition: all .3s;
  &:hover {
    color: $g-brand-color;
    text-decoration: underline;
  }
}

// Newsletter Form Global Style
.new-l__form {
  width: 100%;

  .btn {
    width: 100%;
  }

  .btn {
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 600;
  }
}


.news-l__input {
    width: 100%;
    font-size: 12px;
    padding: 0 18px;
    height: 40px; // default height
    color: $g-brand-secondary-color;
    transition: all 0.6s linear;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background-color: $g-white;
    &:focus {
      border-color: $g-brand-color;
    }
    &:focus {
      outline: 0;
    }
    // IE10+
    &::-ms-clear {
      display: none;
    }
}


@media(max-width:991px) {
  .new-l__col-1 {
    display: none;
  }
}


