.cookie-banner {
  display: none;
}

html.etf-modal-open {
  overflow-y: hidden;
}

html.etf-modal-enabled #etf-tab-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw + 0px);
  height: 100%;
  z-index: -1000;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
}

html.etf-modal-enabled #etf-tab-modal.active {
  z-index: 10000;
  visibility: visible;
}

/* colored sheet for the open animation; timings/color are set as CSS variables from index.js */
html.etf-modal-enabled #etf-tab-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-color: var(--etf-sheet-color, #e2fe00);
  opacity: 0;
  transform-origin: top;
}

html.etf-modal-enabled #etf-tab-modal.etf-modal-opening::after {
  animation:
    etf-sheet-tint var(--etf-sheet-tint-duration) var(--etf-sheet-tint-easing) var(--etf-sheet-tint-delay) both,
    etf-sheet-wipe var(--etf-sheet-wipe-duration) var(--etf-sheet-wipe-easing) var(--etf-sheet-wipe-delay) both;
}

@keyframes etf-sheet-tint {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes etf-sheet-wipe {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}

/* site buttons use `transition: all`, which delays visibility:hidden and lets them show through the page after closing */
html.etf-modal-enabled #etf-tab-modal:not(.active) * {
  transition: none !important;
}

.etf-modal-controls {
  background-color: white;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.component-wrapper + .c-section-comp-inner {
  padding-top: 65px;
  height: 100%;
  overflow-y: auto;
}

.etf-modal-controls-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
  max-width: 1568px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 768px) {
  .etf-modal-controls-inner {
    padding-left: 4.8rem;
    padding-right: 4.8rem;
  }
}

@media screen and (min-width: 1367px) {
  .etf-modal-controls-inner {
    padding-left: 6.8rem;
    padding-right: 6.8rem;
  }
}

html.etf-modal-enabled #etf-tab-modal > .component-wrapper > .c-section-comp-container {
  padding: 0px 0px 0px !important;
  margin: 0px !important;
  height: 100%;
  overflow-y: auto;
}

html.etf-modal-enabled #etf-tab-modal > .component-wrapper {
  padding-top: 9rem;
  height: 100%;
}

html.etf-modal-enabled #etf-tab-modal [data-tab-id] {
  margin-top: 96px;
}

html.etf-modal-enabled #etf-tab-modal .tabs-component-v2 {
  margin-bottom: 120px;
}

html.etf-modal-enabled #etf-tab-modal [data-tab-id]:not(.active) {
  display: none;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-controls {
  transition:
    box-shadow 0.2s ease,
    border-bottom-color 0.2s ease;
}

/* toggled from index.js while the modal content scrolls; the underline goes transparent so the bar doesn't shift */
html.etf-modal-enabled #etf-tab-modal .etf-modal-controls--shadow {
  border-bottom-color: transparent;
  box-shadow: 0 0px 16px 0 rgba(0, 0, 0, 0.1);
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-prev-next {
  display: flex;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-controls button {
  cursor: pointer;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-prev-next button {
  color: #000;
  height: 4.8rem;
  width: 4.8rem;
  top: calc(50% - 2.4rem);
  border: 0.1rem solid #000;
  border-radius: 10rem;
  background: transparent;
  transition: 0.25s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-prev-next button:not(:disabled):hover {
  background-color: #000;
  color: #fff;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-prev-next button + button {
  margin-left: 1rem;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-close {
  padding: 0;
  margin: 0;
  border: 0;
  /* transparent until hover so the underline doesn't shift the layout; spans the text and the icon */
  border-bottom: 1px solid transparent;
  font-feature-settings:
    "liga" off,
    "clig" off;
  background: transparent;
  font-family: Graphik, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 20px;
  color: #000;
}
html.etf-modal-enabled #etf-tab-modal .etf-modal-close i {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-close:hover {
  border-bottom-color: currentColor;
}

html.etf-modal-enabled #etf-tab-modal .etf-modal-prev-next button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
