.mt-etmday-lock {
  overflow: hidden !important;
}

.mt-etmday-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 1, 22, 0.78);
  backdrop-filter: blur(8px);
}

.mt-etmday-modal.is-open {
  display: flex;
  animation: mtEtmBackdropFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mt-etmday-dialog {
  position: relative;
  width: min(760px, 100%);
  height: min(92vh, 980px);
  overflow: hidden;
  border: 1px solid rgba(169, 117, 255, 0.44);
  border-radius: 22px;
  background: #090221;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
}

.mt-etmday-modal.is-open .mt-etmday-dialog {
  animation: mtEtmDialogSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mtEtmBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mtEtmDialogSlideUp {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mt-etmday-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #090221;
}

.mt-etmday-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(9, 2, 33, 0.9);
  color: #fff;
  font:
    700 25px/1 system-ui,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.mt-etmday-close:hover,
.mt-etmday-close:focus-visible {
  outline: 2px solid #00e5ff;
  background: #1a0c4a;
}

@media (max-width: 600px) {
  .mt-etmday-modal {
    padding: 12px 10px;
  }

  .mt-etmday-dialog {
    width: 100%;
    height: 88vh;
    max-height: 720px;
    border: 1px solid rgba(169, 117, 255, 0.44);
    border-radius: 18px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.85);
  }

  .mt-etmday-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
