.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255,255,255,0.9);
  width: 100%;
  height: 103vh;
  z-index: 10001;
  transition: 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.is-show {
  opacity: 1;
  visibility: visible;
}

.modal-gift {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
}

.modal-gift.is-show {
  opacity: 1;
  visibility: visible;
}

.modal-gift > .modal {
  background-color: #fff;
  border-radius: 15px;
  width: 100%;
  max-width: 900px;
  min-height: 640px;
  max-height: 640px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
  padding: 50px;
}

@media (max-width: 991px) {
  .modal-gift > .modal {
    border-radius: 10px;
    width: calc( 100% - 60px );
    max-width: 800px;
    min-height: 80vh;
    max-height: 80vh;
    padding: 40px 30px;
  }
}

@media (max-width: 675px) {
  .modal-gift > .modal {
    border-radius: 5px;
    width: calc( 100% - 40px );
    min-height: 85vh;
    max-height: 85vh;
    padding: 30px 20px;
  }
}

.modal-gift > .modal > .close {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 9999;
}

.modal-gift > .modal > .close > .button {
  display: block;
  width: 50px;
  height: 50px;
  border: 2px solid #d01027;
  border-radius: 50%;
  background-color: #d01027;
  position: relative;  
}

@media (max-width: 675px) {
  .modal-gift > .modal > .close > .button {
    width: 40px;
    height: 40px;
  }
}

.modal-gift > .modal > .close > .button:hover {
  background-color: #fff;
}

.modal-gift > .modal > .close > .button:before,
.modal-gift > .modal > .close > .button:after {
  content: "";
  display: block;
  background-color: #fff;
  width: 25px;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.modal-gift > .modal > .close > .button:before {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.modal-gift > .modal > .close > .button:after {
  transform: translate(-50%,-50%) rotate(45deg);
}

.modal-gift > .modal > .close > .button:hover:before,
.modal-gift > .modal > .close > .button:hover:after {
  background-color: #d01027;
}

.modal-gift > .modal > .container {
  width: 100%;
  height: 540px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  .modal-gift > .modal > .container {
    height: calc( 80vh - 80px );
  }
}

@media (max-width: 675px) {
  .modal-gift > .modal > .container {
    height: calc( 85vh - 60px );
    padding: 0;
  }
}

.modal-gift > .modal > .container > .title {
  overflow: hidden;
  display: flex;
  position: relative;
  justify-content: center;
  margin: 0 0 45px 0;
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .title {
    margin: 0 0 35px 0;
  }
}

.modal-gift > .modal > .container > .title > .border {
  display: inline-block;
  background-color: #fff;
  position: relative;
  padding: 0 15px;
  margin: 0 0 0 0;
  z-index: 9999;
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .title > .border {
    padding: 0;
  }
}

.modal-gift > .modal > .container > .title > .border > .text {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: bold;
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .title > .border > .text {
    font-size: 1.8rem;
  }
}

.modal-gift > .modal > .container > .title:before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #d01027;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 9998;
}

.modal-gift > .modal > .container > .content {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .content {
    display: block;
  }
}

.modal-gift > .modal > .container > .content > .block {
  width: calc( 50% - 10px );
  border: 2px solid #c0c0c0;
  position: relative;
  border-radius: 15px;
  padding: 35px 30px 30px 30px;
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .content > .block {
    width: 100%;
    border-radius: 5px;
    padding: 25px 20px 20px 20px;
  }
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .content > .block:last-child {
    margin: 45px 0 0 0;
  }
}

.modal-gift > .modal > .container > .content > .block > .label {
  width: 240px;
  text-align: center;
  font-weight: bold;
  font-size: 1.6rem;
  color: #fff;
  background-color: #d01027;
  border-radius: 5px;
  display: inline-block;
  padding: 4px 15px;
  margin: 0;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translate(-50%,0);
}

@media (max-width: 767px) {
  .modal-gift > .modal > .container > .content > .block > .label {
    font-size: 1.4rem;
    padding: 2px 10px;
  }
}

.modal-gift > .modal > .container > .content > .block > .text {
  font-size: 1.5rem;
}

.modal-gift > .modal > .container > .content > .block > .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-gift > .modal > .container > .content > .block > .card > .image {
  margin: 0 0 5px 0;
}

.modal-gift > .modal > .container > .content > .block > .card > .image > img {
  width: 245px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
}

.modal-gift > .modal > .container > .content > .block > .card:hover > .image > img {
  transform: scale(1.03);
}

.modal-gift > .modal > .container > .content > .block > .card > .text {
  text-decoration: underline;
  font-size: 1.4rem;
  margin: 10px 0 0 0;
}

.modal-gift > .modal > .container > .content > .block > .card:hover > .text {
  text-decoration: none;
}

.modal-gift > .modal > .container > .content > .block > .button {
  display: block;
  padding: 10px 18px;
  border: 2px solid #d01027;
  color: #d01027;
  font-weight: bold;
  margin: 25px 0 15px 0;
}

.modal-gift > .modal > .container > .content > .block > .button:hover {
  color: #fff;
  background-color: #d01027;
}

.modal-gift > .modal > .container > .content > .block > .button > .icon {
  display: inline-block;
  padding: 0 0 0 18px;
  position: relative;
}

.modal-gift > .modal > .container > .content > .block > .button > .icon:before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #d01027;
  border-right: 2px solid #d01027;
  position: absolute;
  left: 0;
  top: 50%;
  transform: rotate(45deg) translate(0,-50%);
}

.modal-gift > .modal > .container > .content > .block > .button:hover > .icon:before {
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

.modal-gift > .modal > .container > .content > .block > .link {
  color: #d01027;
  font-size: 1.4rem;
}

.modal-gift > .modal > .container > .content > .block > .link > .icon {
  display: inline-block;
  padding: 0 0 0 15px;
  position: relative;
  text-decoration: underline;
}

.modal-gift > .modal > .container > .content > .block > .link:hover > .icon {
  text-decoration: none;
}

.modal-gift > .modal > .container > .content > .block > .link > .icon:before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 2px solid #d01027;
  border-right: 2px solid #d01027;
  position: absolute;
  left: 0;
  top: 8px;
  transform: rotate(45deg);
}

.modal-gift > .modal > .container > .close {
  width: 100%;
  max-width: 235px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  border: 2px solid #d01027;
  background-color: #d01027;
}

.modal-gift > .modal > .container > .close:hover {
  background-color: #ffffff;
}

.modal-gift > .modal > .container > .close > .icon {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
  padding: 0 0 0 20px;
  position: relative;
}

.modal-gift > .modal > .container > .close:hover > .icon {
  color: #d01027;
}

.modal-gift > .modal > .container > .close > .icon:before,
.modal-gift > .modal > .container > .close > .icon:after {
  content: "";
  display: block;
  width: 10px;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  top: 50%;
  left: 0;
}

.modal-gift > .modal > .container > .close > .icon:before {
  transform: translate(0,-50%) rotate(45deg);
}

.modal-gift > .modal > .container > .close > .icon:after {
  transform: translate(0,-50%) rotate(-45deg);
}

.modal-gift > .modal > .container > .close:hover > .icon:before,
.modal-gift > .modal > .container > .close:hover > .icon:after {
  background-color: #d01027;
}
