.alter-wc-order-editor-open {
  overflow: hidden;
}

.alter-wc-order-editor-modal[hidden] {
  display: none;
}

.alter-wc-order-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
}

.alter-wc-order-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.alter-wc-order-editor-dialog {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  overflow: hidden;
}

.alter-wc-order-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid #dcdcde;
  background: #fff;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.alter-wc-order-editor-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.2;
}

.alter-wc-order-editor-close {
  border: 0;
  background: transparent;
  color: #1d2327;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  width: 28px;
  height: 28px;
}

.alter-wc-order-editor-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f6f7f7;
}

.alter-wc-order-editor-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.alter-wc-order-editor-frame {
  border: 0;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  background: #fff;
}

.alter-wc-order-editor-loading,
.alter-wc-order-editor-error {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

.alter-wc-order-editor-error .notice {
  margin: 0;
  max-width: 720px;
}

.alter-wc-order-editor-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #dcdcde;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: alter-wc-order-editor-spin 0.9s linear infinite;
}

@keyframes alter-wc-order-editor-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .alter-wc-order-editor-dialog {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    border-radius: 12px;
  }

  .alter-wc-order-editor-header {
    padding: 6px 12px;
  }

  .alter-wc-order-editor-title {
    font-size: 15px;
  }
}
