.menu-item-edit-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--ttms-z-modal, 12000) + 2);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.menu-item-edit-modal[hidden] {
  display: none !important;
}

.menu-item-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 22, 0.72);
  backdrop-filter: blur(4px);
}

.menu-item-edit-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-width: 100%;
  height: min(100dvh, 100%);
  margin: 0 auto;
  background: #1a1a2e;
  border-left: 1px solid rgba(129, 140, 248, 0.22);
  border-right: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.menu-item-edit-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(129, 140, 248, 0.18);
  background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
}

.menu-item-edit-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.menu-item-edit-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-item-edit-modal__close:hover,
.menu-item-edit-modal__close:focus-visible {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
}

.menu-item-edit-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.menu-item-edit-modal__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1a2e;
}

@media (min-width: 900px) {
  .menu-item-edit-modal {
    padding: 0.75rem;
  }

  .menu-item-edit-modal__panel {
    height: calc(100dvh - 1.5rem);
    border-radius: 14px;
    border: 1px solid rgba(129, 140, 248, 0.22);
  }
}
