.pe-editor {
  color: #141414;
  font-size: 14px;
  line-height: 1.55;
}
.pe-editor * {
  box-sizing: border-box;
}
.pe-editor [hidden] {
  display: none !important;
}
.pe-editor details[open] > div {
  animation: none;
}
.pe-editor h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.pe-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
}
.pe-heading p {
  max-width: 60ch;
  color: #555;
  margin: 8px 0 0;
}
.pe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 38px;
  align-items: start;
  margin-top: 28px;
}
.pe-form {
  min-width: 0;
}
.pe-section {
  border-top: 1px solid #ddd;
  padding: 26px 0;
}
.pe-section h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.pe-section-intro {
  margin: 5px 0 24px;
  color: #555;
}
.pe-field {
  margin: 0 0 20px;
  min-width: 0;
}
.pe-label {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 30px;
}
.pe-editor input:not([type="file"]),
.pe-editor textarea,
.pe-editor select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #999;
  background: #fff;
  color: #141414;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  border-radius: 0;
}
.pe-editor textarea {
  resize: vertical;
}
.pe-editor input::placeholder,
.pe-editor textarea::placeholder {
  color: #666;
  opacity: 1;
}
.pe-editor :is(button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #141414;
  outline-offset: 3px;
}
.pe-editor [aria-invalid="true"] {
  border-color: #a12b2b !important;
}
.pe-hint,
.pe-editor .pe-preview > p {
  font-size: 12px;
  line-height: 1.55;
  color: #555;
  margin: 7px 0 0;
}
.pe-error {
  color: #a12b2b;
  font-size: 13px;
  margin: 7px 0 0;
}
.pe-error-summary {
  background: #fff5f3;
  padding: 16px;
  margin-bottom: 20px;
  color: #8c2323;
}
.pe-editor button {
  min-height: 44px;
  background: #fff;
  border: 1px solid #999;
  color: #141414;
  font: inherit;
  padding: 10px 13px;
  cursor: pointer;
}
.pe-editor button:hover {
  background: #f3f3f0;
}
.pe-editor button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.pe-choices,
.pe-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pe-choices button[aria-pressed="true"] {
  background: #141414;
  color: #fff;
  border-color: #141414;
}
.pe-suggestions {
  margin-top: -8px;
}
.pe-suggestions button {
  font-size: 12px;
  padding: 7px 11px;
}
.pe-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.pe-help {
  position: static;
  font-weight: 400;
}
.pe-help > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.pe-help > summary::-webkit-details-marker {
  display: none;
}
.pe-help svg {
  width: 20px;
  height: 20px;
  stroke: #555;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.pe-help > div {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  width: min(300px, 70vw);
  padding: 15px;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  background: #222;
}
.pe-help:hover > div {
  display: block;
}
.pe-help:not([open]):not(:hover) > div {
  display: none;
}
.pe-new-category {
  padding: 14px;
  background: #f5f5f2;
  margin: 0 0 20px;
}
.pe-new-category > summary {
  cursor: pointer;
  font-weight: 500;
}
.pe-new-category[open] .pe-field {
  margin-top: 16px;
}
.pe-upload {
  display: block;
  border: 1px dashed #888;
  background: #f8f8f6;
  padding: 18px;
  margin: 14px 0;
  cursor: pointer;
}
.pe-upload input {
  display: block;
  width: 100%;
  margin-top: 12px;
  font: inherit;
  font-size: 13px;
}
.pe-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.pe-photo {
  min-width: 0;
}
.pe-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #f3f3f1;
}
.pe-photo span {
  display: block;
  font-size: 12px;
  margin: 5px 0;
}
.pe-photo button {
  width: 100%;
  font-size: 12px;
}
.pe-video {
  display: block;
  width: 100%;
  max-height: 300px;
  background: #141414;
  margin: 12px 0;
}
.pe-save {
  padding-top: 20px;
  border-top: 1px solid #ddd;
}
.pe-save .pe-primary {
  background: #141414;
  border-color: #141414;
  color: #fff;
  width: 100%;
}
.pe-save .pe-primary:hover {
  background: #333;
}
.pe-save p {
  font-size: 12px;
  color: #555;
}
.pe-preview {
  position: sticky;
  top: 100px;
  background: #f5f5f2;
  padding: 20px;
  min-width: 0;
}
.pe-preview > summary {
  font-weight: 500;
  cursor: pointer;
  font-size: 16px;
}
.pe-preview .pe-choices {
  margin: 16px 0;
}
.pe-preview .pe-choices button {
  font-size: 12px;
  flex: 1;
}
.pe-preview-card {
  background: #fff;
  padding: 14px;
  overflow-wrap: anywhere;
}
.pe-preview-card > img,
.pe-preview-empty {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #ecece8;
}
.pe-preview-empty {
  display: grid;
  place-items: center;
  color: #555;
  text-align: center;
  padding: 16px;
}
.pe-preview-card h4 {
  font-size: 19px;
  line-height: 1.3;
  margin: 14px 0 6px;
  font-weight: 500;
}
.pe-preview-card p {
  font-size: 13px;
  margin: 6px 0;
  color: #444;
}
.pe-preview-card strong {
  font-weight: 500;
  font-size: 18px;
}
.pe-preview-card del {
  font-size: 12px;
  color: #555;
}
.pe-preview-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  font-size: 12px;
}
.pe-preview-sizes span {
  border: 1px solid #ccc;
  padding: 8px;
}
.pe-preview-detail {
  border-top: 1px solid #ddd;
  margin-top: 14px;
  padding-top: 10px;
}
.pe-preview-detail h5 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 850px) {
  .pe-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .pe-preview {
    position: static;
    grid-row: 1;
    padding: 16px;
  }
  .pe-preview-card {
    max-width: 400px;
    margin: auto;
  }
  .pe-preview:not([open]) > :not(summary) {
    display: none;
  }
  .pe-heading {
    display: block;
  }
  .pe-heading > button {
    margin-top: 14px;
  }
}
@media (max-width: 480px) {
  .pe-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pe-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pe-help > div {
    left: 0;
    right: auto;
  }
  .pe-editor h2 {
    font-size: 24px;
  }
}
