/*Popup Styles*/
.popup-component {
  position: relative;
}

.downloads-section.mb-30 {
  margin-bottom: 30px;
}

.popup-component-btn {
  width: auto;
}

.agenda-popup-btn {
  width: auto;
}

.popup-component-content {
  display: none;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  background-color: var(--white);
  padding: 30px 0 15px 25px;
  border-radius: 5px;
  margin-top: 5px;
  position: absolute;
  top: 41px;
  right: 0;
  z-index: 1;
  width: 400px;
}

.download-btn.popup-component-btn {
  text-transform: uppercase;
}

.popup-component-content.with-scroll {
  padding-right: 6px;
  padding: 35px 25px;
  padding-right: 10px;
}

.popup-component-content.with-scroll ul li {
  margin-right: 20px;
}

.popup-component-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* height: 278px; */
  overflow-y: auto;
  direction: ltr;
  /* scrollbar-gutter: stable both-edges; */
  margin-right: 10px;
  padding-right: 15px;
  max-height: 240px;
}


.popup-component-content ul::-webkit-scrollbar {
  width: 6px;
}

.popup-component-content ul::-webkit-scrollbar {
  width: 6px;
}

.popup-component-content ul::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 5px;
}

.popup-component-content ul::-webkit-scrollbar-thumb {
  background: #7a7a7a;
  border-radius: 10px;
}

.popup-component-content ul::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

.popup-component-content ul::-webkit-scrollbar-button {
  display: none;
}

.popup-component-content .doc-link-item {
  border-bottom: 1px solid var(--border-color-3);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* .popup-component-content .views-row:has(.doc-link-item) .doc-link-item {
  border-bottom: 1px solid var(--border-color-3);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  position: relative;
} */

.popup-component-content .views-row:last-child .doc-link-item,
.documents-view .popup-component-content .doc-link-item:last-child {
  border-bottom: none;
}

.popup-component-content .doc-link-item a {
  font-family: var(--primary-font);
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  width: calc(100% - 30px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.popup-component-content ul li .doc-link::after {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  right: 0;
  top: 25px;
  transform: translateY(-50%);
}

.popup-component-content ul li .doc-link:hover,
.external-popup-link:hover {
  color: var(--primary-color);
}

/* .popup-component-content .external-popup-link:hover::after {
    color: var(--primary-color);
}

.popup-component-content .external-popup-link:hover::after {
    color: var(--primary-color);
}
 */

.popup-component-content ul li .pdf-file-type::after {
  background: url(img/pdf.svg) no-repeat center center transparent;
}

.popup-component-content ul li .pdf-file-type:hover:after {
  background: url(img/pdf-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .xlsx-file-type::after {
  background: url(img/excel.svg) no-repeat center center transparent;
}

.popup-component-content ul li .xlsx-file-type:hover:after {
  background: url(img/excel-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .docx-file-type::after {
  background: url(img/word.svg) no-repeat center center transparent;
}

.popup-component-content ul li .docx-file-type:hover:after {
  background: url(img/word-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .doc-file-type::after {
  background: url(img/word.svg) no-repeat center center transparent;
}

.popup-component-content ul li .doc-file-type:hover:after {
  background: url(img/word-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .xls-file-type::after {
  background: url(img/excel.svg) no-repeat center center transparent;
}

.popup-component-content ul li .xls-file-type:hover:after {
  background: url(img/excel-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .eppi-marker-file-type::after {
  background: url(img/ppinew.svg) no-repeat center center transparent;
}

.popup-component-content ul li .eppi-marker-file-type:hover:after {
  background: url(img/ppinew-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .csv-file-type::after {
  background: url(img/csv.svg) no-repeat center center transparent;
}

.popup-component-content ul li .csv-file-type:hover:after {
  background: url(img/csv.svg) no-repeat center center transparent;
}

.popup-component-content ul li .txt-file-type::after {
  background: url(img/text.svg) no-repeat center center transparent;
}

.popup-component-content ul li .txt-file-type:hover:after {
  background: url(img/text-hover.svg) no-repeat center center transparent;
}

.popup-component-content ul li .ppt-file-type::after,
.popup-component-content ul li .pptx-file-type::after {
  background: url(img/ppt.svg) no-repeat center center transparent;
}

.popup-component-content ul li .ppt-file-type:hover:after,
.popup-component-content ul li .pptx-file-type:hover:after {
  background: url(img/ppt-hover.svg) no-repeat center center transparent;
}

.popup-component-content .popup-close {
  display: block;
  width: 12px;
  height: 12px;
  background: url(img/popup-close.svg) no-repeat center center transparent;
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
}

.popup-component-content .popup-close:hover {
  background: url(img/popup-close-hover.svg) no-repeat center center transparent;
}

.popup-component-content .doc-file-size,
.popup-component-content .doc-file-language {
  font-family: var(--primary-font);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 400;
  color: var(--fc-c1);
  text-decoration: none;
}

.popup-component-content .doc-file-language {
  padding-left: 5px;
  border-left: 2px solid var(--border-color-3);
}

.external-popup-link {
  word-break: break-all !important;
}

.downloads-popup .mCSB_scrollTools {
  width: 2px !important;
}

/*Member Publication Seacrh download btn*/

.member-export-popup .download-btn {
  width: 30px !important;
  height: 30px;
  padding: 0;
  background-position: center;

}

.member-export-popup .popup-component-content {
  width: 195px;
  padding: 10px 20px;
  /*424348*/
  padding-right: 0;
}
.member-export-popup .popup-component-content ul {
  padding-right: 10px;
}
.member-export-popup .popup-component-content .popup-close {
  display: none;
}

.member-export-popup .popup-component-content .doc-link-item a {
  font-size: 15px;
  line-height: 20px;
}

/*download popup title*/
.download-sub-title {
  font-family: var(--primary-font);
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 600;
  color: var(--black-2);
}

.views-row+.download-sub-title {
  margin-top: 15px;
}

/*download button loader effect*/
.node-detail-file-download .download-btn {
  background-image: none;
  position: relative;
}

.node-detail-file-download .download-btn:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue-1);
  animation: spinLoader 0.8s linear infinite;
  background-image: none;
  top: 50%;
  right: 20px;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
}

@keyframes spinLoader {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

body:has(.node-detail-file-download) .page-loader-section {
  display: none;
}

.node-detail-file-download {
  pointer-events: none;
}

/*************/

@media screen and (max-width: 767px) {
  .popup-component-content ul li a {
    word-wrap: break-word;
    white-space: normal;
    width: 200px;
  }

  .popup-component-btn {
    width: 210px;
  }

  .popup-component-content .doc-link-item a {
    font-size: 0.875rem;
  }

  .member-export-popup .popup-component-content {
    position: absolute !important;
    width: 195px !important;
  }
}

@media screen and (max-width: 680px) {
  .popup-component {
    display: flex;
    text-align: center;
  }

  .popup-component-content ul li {
    text-align: left;
  }

  .popup-component-content.with-scroll {
    padding: 35px 10px;
  }

  .downloads-popup .mCSB_inside>.mCSB_container {
    margin-right: 15px;
  }

  .popup-component-content {
    padding-left: 10px;
  }
}
