/* FXIFY cookie consent banner. Same styles as the banner on fxify.com. */

/* Safety resets so the banner looks the same regardless of the host page's CSS. */
.consent-screen,
.consent-screen *,
.consent-screen *::before,
.consent-screen *::after {
  box-sizing: border-box;
}
.consent-screen {
  font-size: 16px;
}
.consent-screen button {
  font-family: inherit;
}

body.consent-screen-active {
  overflow-y: hidden;
}

.consent-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999999999999;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  transition: all 0.7s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  display: none;
  opacity: 0;
  padding: 0 1.5rem;
}
.consent-screen .cookie-consent-popup {
  position: relative;
  max-width: 720px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0f16;
  border-radius: 32px;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  transition: all 0.7s ease-in-out;
  overflow: hidden;
  transform: translateY(400px);
}
.consent-screen .cookie-consent-popup .cs__wrap {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  align-items: center;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__icon {
  flex: 0 0 auto;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  background: rgba(36, 39, 45, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__icon svg {
  color: rgba(255, 255, 255, 0.9);
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__text {
  flex: 1 1 0;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__text a {
  line-height: 1;
  color: #1daa91;
  text-decoration: none;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  display: none;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option {
  flex: 1 1 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 10px;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__title {
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 0 14px;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper {
  margin-top: auto;
  height: fit-content;
  cursor: pointer;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox {
  appearance: none;
  background-color: rgba(194, 208, 228, 0.25);
  border-radius: 72px;
  border-style: none;
  flex-shrink: 0;
  height: 20px;
  margin: 0;
  position: relative;
  width: 30px;
  transition: all 0.5s ease;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox, .consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox::after {
  transition: all 100ms ease-out;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox::after {
  background-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 14px;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox:hover {
  background-color: rgba(194, 208, 228, 0.35);
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox:checked {
  background-color: #1daa91;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox:checked::after {
  background-color: #fff;
  left: 13px;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper .cso__checkbox:checked:hover {
  background-color: #1daa91;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper input[type=checkbox] {
  cursor: pointer;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__checkbox-wrapper :focus:not(.focus-visible) {
  outline: 0;
}
.consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option:not(:last-of-type) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 10px;
  }
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__title {
    padding: 0;
  }
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option:not(:last-of-type) {
    border-right: unset;
  }
}
@media (max-width: 640px) {
  .consent-screen .cookie-consent-popup .cs__wrap .cs__text {
    flex: 1 1 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 10px;
  }
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option .cso__title {
    padding: 0;
  }
  .consent-screen .cookie-consent-popup .cs__wrap .cs__options .cs__option:not(:last-of-type) {
    border-right: unset;
  }
}
.consent-screen .cookie-consent-popup .cs__buttons-container {
  margin-top: 0.5rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 8px;
}
.consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn {
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  outline: none;
  border: none;
  border-radius: 10px;
  transition: all 0.5s ease;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
  flex: 1 1 0;
}
.consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn.bc__deny, .consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn.bc__accept_selection {
  background: rgba(194, 208, 228, 0.15);
  color: #ffffff;
}
.consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn.bc__deny:disabled, .consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn.bc__accept_selection:disabled {
  opacity: 0.4;
}
.consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn.bc__accept_all {
  background: #1daa91;
  color: #0b0c10;
}
.consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn:hover {
  opacity: 0.5;
}
@media (max-width: 640px) {
  .consent-screen .cookie-consent-popup .cs__buttons-container {
    flex-flow: row wrap;
  }
  .consent-screen .cookie-consent-popup .cs__buttons-container button.bc__btn {
    flex: 1 1 100%;
  }
}
.consent-screen .cookie-consent-popup .cs__pp {
  text-align: center;
}
.consent-screen .cookie-consent-popup .cs__pp a.pp-btn {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.5s ease;
  text-decoration: none;
  outline: none;
}
.consent-screen .cookie-consent-popup .cs__pp a.pp-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  padding: 1.5rem;
  transition: all 0.5s ease;
  background: #0c0f16;
  opacity: 0;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 130px);
  grid-auto-rows: auto;
  flex-flow: row wrap;
  justify-content: center;
  align-content: center;
  gap: 12px;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item {
  text-decoration: none;
  display: flex;
  flex-flow: column nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-50px);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item .gi__image {
  flex: 1 1 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  filter: grayscale(1);
  opacity: 0.6;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item .gi__image img {
  position: absolute;
  max-width: unset;
  width: 100%;
  height: auto;
  transform: scale(2);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item .gi__title {
  flex: 0 0 auto;
  padding-top: 4px;
  padding: 6px 12px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  font-size: 14px;
  text-align: center;
  transition: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:hover {
  border: 1px solid rgba(29, 170, 145, 0.6);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:hover .gi__title {
  border-top: 1px solid rgba(29, 170, 145, 0.6);
  color: rgb(29, 170, 145);
  background: rgba(29, 170, 145, 0.1);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:hover .gi__image {
  filter: grayscale(0);
  opacity: 1;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(1) {
  transition: transform 0.5s ease 0s, opacity 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(1) .gi__image img {
  transform-origin: 8% 10%;
  transform: scale(3);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(2) {
  transition: transform 0.5s ease 0.1s, opacity 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(2) .gi__image img {
  transform-origin: center 10%;
  transform: scale(6);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(3) {
  transition: transform 0.5s ease 0.2s, opacity 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(3) .gi__image img {
  transform-origin: 53% 8%;
  transform: scale(4);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(4) {
  transition: transform 0.5s ease 0.3s, opacity 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid .pp-grid-item:nth-of-type(4) .gi__image img {
  transform-origin: 11% top;
  transform: scale(3);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid.visible .pp-grid-item {
  opacity: 1;
  transform: translateY(0px);
}
@media (max-width: 768px) {
  .consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid {
    grid-template-columns: repeat(4, 110px);
  }
}
@media (max-width: 640px) {
  .consent-screen .cookie-consent-popup .cs__pp-overlay .pp-grid {
    grid-template-columns: repeat(2, 130px);
  }
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-close {
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.6);
  padding: inherit;
  transition: all 0.5s ease;
  cursor: pointer;
}
.consent-screen .cookie-consent-popup .cs__pp-overlay .pp-close:hover {
  color: rgba(255, 255, 255, 0.9);
}
.consent-screen .cookie-consent-popup .cs__pp-overlay.visible {
  display: block;
}
.consent-screen .cookie-consent-popup.active {
  transform: translateY(0px);
}
.consent-screen.active {
  display: flex;
}

/* Essential categories are shown as "Always on" and cannot be toggled. */
.cookie-consent-popup .cs__option.cso--essential .cso__checkbox {
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-consent-popup .cs__option .cso__always {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1daa91;
}
.cookie-consent-popup .cs__buttons-container button.bc__btn.bc__deny {
  border: 1px solid rgba(255, 255, 255, 0.18);
}
