.mekk-gate[hidden] {
  display: none !important;
}

.mekk-gate {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.mekk-gate__backdrop {
  background: rgba(3, 17, 38, 0.82);
  inset: 0;
  position: absolute;
}

.mekk-gate__panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(3, 17, 38, 0.35);
  color: #0b2447;
  max-height: calc(100vh - 40px);
  max-width: 680px;
  overflow: auto;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  width: 100%;
}

.mekk-gate__eyebrow {
  color: #285b96;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.mekk-gate__panel h2 {
  color: inherit;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.mekk-gate__notice {
  background: #eef5fb;
  border-left: 4px solid #285b96;
  border-radius: 4px;
  padding: 14px 16px;
}

.mekk-gate__check {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 10px;
  margin: 22px 0;
}

.mekk-gate__check input {
  flex: 0 0 auto;
  height: 20px;
  margin-top: 2px;
  width: 20px;
}

.mekk-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mekk-gate__actions .button {
  align-items: center;
  background: #0b2447;
  border: 1px solid #0b2447;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none;
}

.mekk-gate__actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.mekk-gate__actions .mekk-gate__exit {
  background: #fff;
  color: #0b2447;
}

.mekk-gate-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .mekk-gate {
    align-items: flex-end;
    padding: 10px;
  }

  .mekk-gate__panel {
    border-radius: 14px 14px 8px 8px;
    padding: 24px 20px;
  }

  .mekk-gate__actions,
  .mekk-gate__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mekk-gate * {
    scroll-behavior: auto !important;
  }
}
