html.itstack-gated-page.itstack-gate-locked,
body.itstack-gated-page.itstack-gate-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
}

body.itstack-gated-page.itstack-gate-locked {
  touch-action: none;
}

body.itstack-gated-page.itstack-gate-locked > :not(#itstack-gate-overlay):not(#CybotCookiebotDialog):not(#CybotCookiebotDialogBodyUnderlay):not(#CookiebotWidget):not(#CookiebotWidgetUnderlay) {
  pointer-events: none;
  user-select: none;
}

#CybotCookiebotDialog,
#CybotCookiebotDialogBodyUnderlay,
#CookiebotWidget,
#CookiebotWidgetUnderlay {
  pointer-events: auto !important;
}

#itstack-gate-overlay {
  display: none;
}

#itstack-gate-overlay[hidden] {
  display: none !important;
}

body.itstack-gated-page.itstack-gate-locked #itstack-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  pointer-events: auto;
}

.itstack-gate-overlay {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.itstack-gate-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 219, 35, 0.14), transparent 34%),
    rgba(245, 248, 246, 0.56);
  backdrop-filter: blur(2px);
  transition: opacity 180ms ease, backdrop-filter 180ms ease, background-color 180ms ease;
}

.itstack-gate-overlay__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  pointer-events: none;
}

.itstack-gate-checking-indicator {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(100%, 320px);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 22, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: #2d3a33;
  box-shadow: 0 18px 42px rgba(8, 15, 52, 0.1);
  backdrop-filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.itstack-gate-checking-indicator__spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(0, 166, 29, 0.18);
  border-top-color: #00a61d;
  border-radius: 50%;
  animation: itstack-gate-spin 0.8s linear infinite;
}

.itstack-gate-checking-indicator__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.itstack-gate-panel {
  grid-area: 1 / 1;
  width: min(100%, 620px);
  border-radius: 26px;
  border: 1px solid rgba(16, 32, 22, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #102016;
  box-shadow: 0 24px 64px rgba(8, 15, 52, 0.14);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.itstack-gate-panel:focus {
  outline: 2px solid rgba(0, 219, 35, 0.28);
  outline-offset: 3px;
}

.itstack-gate-panel__content {
  padding: 28px 28px 30px;
}

.itstack-gate-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.itstack-gate-panel__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #617069;
}

.itstack-gate-panel__close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 22, 0.12);
  background: rgba(242, 245, 243, 0.96);
  color: #243129;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 32, 22, 0.08);
  transition: transform 0.05s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.itstack-gate-panel__close:hover {
  background: #ffffff;
  border-color: rgba(0, 219, 35, 0.42);
  color: #000000;
  box-shadow: 0 12px 24px rgba(16, 32, 22, 0.12);
}

.itstack-gate-panel__close:active {
  transform: translateY(1px);
}

.itstack-gate-panel__close:focus-visible {
  outline: 2px solid rgba(0, 219, 35, 0.28);
  outline-offset: 2px;
  background: #ffffff;
  border-color: rgba(0, 219, 35, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 219, 35, 0.16);
}

.itstack-gate-panel__close-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.itstack-gate-panel__close-icon::before,
.itstack-gate-panel__close-icon::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.itstack-gate-panel__close-icon::before {
  transform: rotate(45deg);
}

.itstack-gate-panel__close-icon::after {
  transform: rotate(-45deg);
}

.itstack-gate-panel__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.itstack-gate-panel__body {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(16, 32, 22, 0.76);
}

.itstack-gate-panel__status {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(45, 58, 51, 0.58);
}

.itstack-gate-panel__status:empty {
  display: none;
}

.itstack-gate-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.itstack-gate-panel__actions:empty {
  display: none;
}

.itstack-gate-overlay[data-itstack-gate-state='checking'] .itstack-gate-checking-indicator {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.itstack-gate-overlay[data-itstack-gate-state='checking-silent'] .itstack-gate-overlay__backdrop,
html[data-itstack-gate-initial-state='checking-silent'] body.itstack-gated-page.itstack-gate-locked #itstack-gate-overlay[data-itstack-gate-state='checking'] .itstack-gate-overlay__backdrop {
  opacity: 0;
  backdrop-filter: blur(0);
  background: rgba(245, 248, 246, 0);
}

.itstack-gate-overlay[data-itstack-gate-state='checking-silent'] .itstack-gate-checking-indicator,
html[data-itstack-gate-initial-state='checking-silent'] body.itstack-gated-page.itstack-gate-locked #itstack-gate-overlay[data-itstack-gate-state='checking'] .itstack-gate-checking-indicator {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  display: none;
}

.itstack-gate-overlay[data-itstack-gate-state='denied-logged-out'] .itstack-gate-panel,
.itstack-gate-overlay[data-itstack-gate-state='denied-free'] .itstack-gate-panel,
.itstack-gate-overlay[data-itstack-gate-state='error'] .itstack-gate-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.itstack-gate-overlay[data-itstack-gate-state='granted'] .itstack-gate-checking-indicator {
  opacity: 0;
  transform: translateY(-8px);
}

.itstack-gate-overlay[data-itstack-gate-state='granted'] .itstack-gate-overlay__backdrop {
  opacity: 0;
  backdrop-filter: blur(0);
  background: rgba(245, 248, 246, 0);
}

.itstack-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: #102016;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  user-select: none;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  touch-action: manipulation;
}

button.itstack-gate-btn {
  font-family: inherit;
}

.itstack-gate-btn:active {
  transform: translateY(1px);
}

.itstack-gate-btn.is-primary {
  background: #00db23;
  border-color: #00db23;
  color: #ffffff;
}

.itstack-gate-btn.is-primary:hover {
  color: #000000;
  box-shadow: rgba(0, 0, 0, 0.22) 0 1px 3px 2px;
}

.itstack-gate-btn.is-secondary {
  background: #ffffff;
  border-color: #e4ece6;
  color: #00a61d;
}

.itstack-gate-btn.is-secondary:hover {
  background: #ffffff;
  border-color: #00db23;
  color: #000000;
}

.itstack-gate-btn:focus-visible {
  outline: 2px solid rgba(0, 219, 35, 0.28);
  outline-offset: 2px;
}

.itstack-gate-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes itstack-gate-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 780px) {
  .itstack-gate-overlay__viewport {
    padding: 16px;
  }

  .itstack-gate-panel {
    border-radius: 22px;
  }

  .itstack-gate-panel__content {
    padding: 22px 18px 20px;
  }

  .itstack-gate-panel__header {
    margin-bottom: 18px;
  }

  .itstack-gate-panel__close {
    width: 52px;
    height: 52px;
  }

  .itstack-gate-panel__actions {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .itstack-gate-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itstack-gate-overlay__backdrop,
  .itstack-gate-checking-indicator,
  .itstack-gate-panel {
    transition: none;
  }

  .itstack-gate-checking-indicator__spinner {
    animation: none;
  }
}
