dialog {
  color: var(--ink);
  background: #fffcfa;
  position: fixed;
  width: min(580px, calc(100% - 24px));
  max-height: 90dvh;
  border: 1px solid #fff;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 28px 100px #230d1944;
}
dialog::backdrop {
  background: #26121685;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fffcfa;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 26px;
}
#panel-body {
  padding: 20px 22px;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack p,
.note {
  color: var(--muted);
}
.field {
  display: grid;
  gap: 4px;
  font-weight: 700;
}
.field :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
  border: 1px solid #cebfba;
  border-radius: 10px;
  padding: 9px 11px;
  background: white;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fields {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}
.error {
  color: #982233;
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
summary {
  font-weight: 700;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.order-row,
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.order-row strong {
  display: block;
}
.order-row small {
  color: var(--muted);
}
.total {
  font-weight: 800;
  font-size: 20px;
  border: 0;
}
.subtotal {
  white-space: nowrap;
  color: var(--deep);
  font-weight: 700;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stepper button {
  width: 36px;
  min-height: 40px;
  background: var(--blush);
  border-radius: 8px;
}
.flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.link {
  color: var(--deep);
  text-decoration: underline;
  font-weight: 700;
}
.admin-status {
  color: var(--deep);
}
video {
  width: 100%;
  max-height: 55vh;
  background: #231c20;
  border-radius: 15px;
}
.notice {
  background: var(--blush);
  padding: 12px 14px;
  border-radius: 12px;
}
.empty :last-child {
  margin-top: 9px;
}
@media (max-width: 520px) {
  #panel-body,
  .dialog-head {
    padding: 15px;
  }
  .stepper {
    gap: 3px;
  }
}
