.sedi-order-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font);
}

.sedi-order-popup[hidden] {
  display: none;
}

.sedi-order-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.sedi-order-popup__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.sedi-order-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

.sedi-order-popup__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.sedi-order-popup__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sedi-order-popup__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.sedi-order-popup__body #sedi-orderform3 {
  min-height: 120px;
}

body.sedi-order-popup-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sedi-order-popup {
    padding: 0;
    align-items: stretch;
  }

  .sedi-order-popup__panel {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}
