.privacy-modal-container {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.privacy-modal-container .modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  z-index: 99;
}

.privacy-modal-container .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.feature-tab-modal.modal {
  background-color: #fff;
  opacity: 1;
  z-index: 999;
  width: 100%;
}

.privacy-modal-container .faq-section .question {
  color: var(--secondary-black);
  font-family: var(--body-font-family);
  font-size: 1rem;
  font-style: normal;
  font-weight: var(--fw-700);
  line-height: 1.25rem;
  padding-top: 10px;
  padding-bottom: 10px;
  cursor: pointer;
   @media (width >=1024px) {
      font-size: 0.875rem;
  }
}

.privacy-modal-container .faq-section .answer {
  border: 1px solid var(--light-grey-shade-5);
  transition: height 0.3s ease-out;
  padding:8px 8px 8px 0px;
}

.faq-item .question {
  position: relative;
}

.faq-item .question::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 0;
  height: 16px;
  width: 16px;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 3.33325V12.6666" stroke="%23171C8F" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.33325 8H12.6666" stroke="black" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.faq-item.active .question::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3.33325 8H12.6666" stroke="%23171C8F" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.faq-item .answer.close {
  height: 0px;
  opacity: 0;
  padding: 0;
  overflow: hidden;
}

.faq-item .answer.open {
  .scroll-box{
    height: 300px;
    opacity: 1;
    overflow: auto;
    padding: 0px 17px 0px 16px;
    @media (width >= 768px) {
      padding: 9px 14px 0px 22px;
    }
  }
}

.privacy-modal-container .faq-section .answer h2,
.privacy-modal-container .faq-section .answer h3,
.privacy-modal-container .faq-section .answer h4,
.privacy-modal-container .faq-section .answer h5 {
  color: var(--tertiary-black);
  font-family: var(--body-font-arena);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1rem;
  font-weight: var(--fw-700);
  @media (width >=1024px) {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.privacy-modal-container .faq-section .answer,
.privacy-modal-container .faq-section {
  .answer,
  p,
  span {
    color: var(--tertiary-black);
    font-family: var(--body-font-arena);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: var(--fw-400);
    line-height: 1rem;
    text-align: justify;
    @media (width >=1024px) {
      font-size: 0.875rem;
      line-height: 1.25rem;
    }
  }
}

.privacy-modal-container .faq-section .faq-item .question {
  position: relative;
}

.privacy-modal-container .faq-section .faq-item:first-child .question::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    #000 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.privacy-modal-container
  .faq-section
  .faq-item.active:first-child
  .question::after {
  display: none;
}

/* scrollbar */
.privacy-modal-container .faq-section .answer .scroll-box::-webkit-scrollbar {
  width: 4px;
}

.privacy-modal-container .faq-section .answer .scroll-box::-webkit-scrollbar-track {
  background: #f5f5f5;
  width: 4px;
  border: 0px;
  outline: none;
}

.privacy-modal-container .faq-section .answer .scroll-box::-webkit-scrollbar-thumb {
  background: var(--primary-blue-700);
}

/* modal styel */
.privacy-modal-container .modal {
  position: absolute;
  right: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16.8816px);
  opacity: 0;
  visibility: hidden;
  animation: modalfadein 0.7s forwards;
}

.privacy-modal-container .modal.fade-out {
  animation: modalfadeout 0.7s forwards;
}

.privacy-modal-container .modal.active {
  opacity: 1;
  visibility: visible;
}

.privacy-modal-container .modal .modal-content {
  padding: 56px 20px;
  height: 100%;
}

.privacy-modal-container .modal .modal-content .close-button {
  width: 24px;
  height: 24px;
  z-index: 1;
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 24px;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 40 40" fill="none"><path d="M10.6665 31.0894L8.91028 29.3332L18.2436 19.9999L8.91028 10.6665L10.6665 8.91028L19.9999 18.2436L29.3332 8.91028L31.0894 10.6665L21.7561 19.9999L31.0894 29.3332L29.3332 31.0894L19.9999 21.7561L10.6665 31.0894Z" fill="black"/></svg>');
}

.privacy-modal-container .modal-fade-out {
  animation: modalfadeout 2s forwards;
}

.privacy-modal-container .modal-fade-in {
  animation: modalfadein 2s forwards;
}

@media (width >=768px) {
  .privacy-modal-container {
    padding: 64px 56px;
  }

  .privacy-modal-container .faq-section .question {
    font-size: 1.5rem;
    font-style: normal;
    line-height: normal;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .privacy-modal-container .faq-section .answer {
    h1,
    h2,
    h3,
    h4,
    h5 {
      font-size: 0.875rem;
    }
  }

  .privacy-modal-container .faq-section .answer,
  .privacy-modal-container .faq-section {
    .answer,
    p,
    span {
      font-size: 0.875rem;
      line-height: 20px;
    }
  }

  .faq-item::after {
    height: 24px;
    width: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.25 12.75H5.5V11.25H11.25V5.5H12.75V11.25H18.5V12.75H12.75V18.5H11.25V12.75Z" fill="%23171C8F"/></svg>');
  }

  .faq-item.active::after {
    height: 24px;
    width: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M5 12H19" stroke="%23171C8F" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  }

  .feature-tab-modal.modal {
    background-color: #fff;
    opacity: 1;
    z-index: 999;
    width: 767px;
  }

  .privacy-modal-container .modal .modal-content {
    padding: 56px;
  }
}
