.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

/* Popup cookie preference styles */
.popup.cookie-preference {
  background-color: rgba(6, 6, 6, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--tether-white);
  overflow: auto;
}

.popup.cookie-preference .btn-close {
  position: absolute;
  top: 119px;
  right: 16px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.popup.cookie-preference .popup-content {
  position: relative;
  top: unset;
  left: unset;
  transform: unset;
  background-color: transparent;
  color: var(--tether-white);
  width: 1168px;
  max-width: calc(100% - 64px);
  padding: 120px 32px 89px;
  margin: 0 auto;
}

.popup.cookie-preference .popup-content h2 {
  font-size: 70px;
  line-height: 78px;
  letter-spacing: 0.7px;
  margin: 0 0 52px;
  width: 706px;
  max-width: 100%;
}

.popup.cookie-preference .popup-content__tab-options {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 59px;
}

.popup.cookie-preference .popup-content__checkbox {
  display: flex;
  gap: 97px;
}

.popup.cookie-preference .popup-content__checkbox > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup.cookie-preference .popup-content__tab-option {
  position: relative;
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.54px;
  padding: 8px 0;
}

.popup.popup.cookie-preference .btn-accept {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(.215,.61,.355,1);
}

.popup.popup.cookie-preference .btn-accept:hover {
  opacity: 0.5;
}

.popup.cookie-preference .popup-content__tab.analytical {
  margin-top: 64px;
}

.popup.cookie-preference .popup-content__tab > b {
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.54px;
}

.popup.cookie-preference .popup-content__tab .table-container {
  width: 100%;
  overflow: auto;
  margin: 28px 0 31px;
}

.popup.cookie-preference .popup-content__tab table {
  position: relative;
  width: 100%;
  border: 1px solid var(--tether-white);
  clip-path: polygon(
    0 0,
    calc(100% - 40px) 0,
    100% 43px,
    100% 100%,
    0 100%
  );
}

.popup.cookie-preference .popup-content__tab table::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tether-white);
  clip-path: polygon(
    100% 0,
    100% 43px,
    calc(100% - 40px) 0
  );
  z-index: 1;
  content: '';
}

.popup.cookie-preference .popup-content__tab table th {
  font-weight: 700;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.54px;
  padding: 32px 16px 0;
  text-align: left;
}

.popup.cookie-preference .popup-content__tab table td {
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.54px;
  padding: 32px 16px;
  vertical-align: top;
}

.popup.cookie-preference .popup-content__tab table th:nth-child(1),
.popup.cookie-preference .popup-content__tab table td:nth-child(1) {
  width: 269px;
}

.popup.cookie-preference .popup-content__tab table th:nth-child(2),
.popup.cookie-preference .popup-content__tab table td:nth-child(2) {
  width: 62px;
}

.popup.cookie-preference .popup-content__tab table th:nth-child(4),
.popup.cookie-preference .popup-content__tab table td:nth-child(4) {
  width: 96px;
}

.popup.cookie-preference .popup-content__tab table th:nth-child(5),
.popup.cookie-preference .popup-content__tab table td:nth-child(5) {
  width: 53px;
}

.popup.cookie-preference .popup-content__footer {
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.48px;
  text-align: center;
}

.popup.cookie-preference .popup-content__footer a {
  font-weight: 700;
  color: var(--tether-white);
}

.popup.cookie-preference .custom-checkbox {
  position: relative;
  top: -1px;
}

.popup.cookie-preference .custom-checkbox input[type="checkbox"] {
  display: none;
}

.popup.cookie-preference .custom-checkbox div.checkbox {
  width: 18px;
  height: 16px;
  background-image: url('../assets/images/checkbox.svg');
  background-size: cover;
  cursor: pointer;
}

.popup.cookie-preference .custom-checkbox input[type="checkbox"]:disabled + div.checkbox {
  background-image: url('../assets/images/checkbox-checked.svg');
  background-size: cover;
  cursor: not-allowed;
}

.popup.cookie-preference .custom-checkbox input[type="checkbox"]:checked + div.checkbox {
  background-image: url('../assets/images/checkbox-checked.svg');
  background-size: cover;
}

@media (max-width: 991.98px) {
  .popup.cookie-preference .popup-content {
    max-width: calc(100% - 32px);
    padding: 45px 16px;
  }

  .popup.cookie-preference .popup-content h2 {
    font-size: 52px;
    line-height: 60px;
    letter-spacing: 0.52px;
    width: 446px;
    margin-bottom: 41px;
  }

  .popup.cookie-preference .btn-close {
    top: 40px;
    right: 0;
  }

  .popup.cookie-preference .popup-content__tab-options {
    flex-wrap: wrap;
    margin-bottom: 47px;
  }

  .popup.cookie-preference .popup-content__tab-option {
    font-size: 15px;
    line-height: 20px;
  }

  .popup.cookie-preference .popup-content__checkbox {
    gap: 48px;
  }

  .popup.cookie-preference .popup-content__tab > b {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 1.2px;
  }

  .popup.cookie-preference .popup-content__tab .table-container {
    margin: 30px 0 24px;
  }

  .popup.cookie-preference .popup-content__tab table th {
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 0.48px;
  }
  
  .popup.cookie-preference .popup-content__tab table td {
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 0.48px;
  }

  .popup.cookie-preference .popup-content__tab table th:nth-child(1),
  .popup.cookie-preference .popup-content__tab table td:nth-child(1) {
    width: 182px;
  }
  
  .popup.cookie-preference .popup-content__tab table th:nth-child(2),
  .popup.cookie-preference .popup-content__tab table td:nth-child(2) {
    width: 57px;
  }
  
  .popup.cookie-preference .popup-content__tab table th:nth-child(4),
  .popup.cookie-preference .popup-content__tab table td:nth-child(4) {
    width: 64px;
  }
  
  .popup.cookie-preference .popup-content__tab table th:nth-child(5),
  .popup.cookie-preference .popup-content__tab table td:nth-child(5) {
    width: 36px;
  }
}
