.wx-sale-hero[data-wx-hero] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 39vw, 620px);
  grid-template-columns: minmax(0, 1fr);
}
.wx-sale-hero[data-wx-hero] > :first-child { position: relative; z-index: 1; width: min(100%, 725px); }
.wx-sale-hero[data-wx-hero] h1 { font-size: clamp(52px, 8vw, 122px); }
.wx-sale-hero-image { position: absolute; inset: 0 0 0 37%; z-index: 0; }
.wx-sale-hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 65% center; }
.wx-sale-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #191714 0%, rgba(25,23,20,.86) 17%, rgba(25,23,20,.25) 52%, transparent 78%); }
.wx-sale-card img[src*="/wx-commercial/"] { aspect-ratio: 2.9 / 1; object-fit: cover; }

.wxe { color: #f4efe5; background: #191714; border: 1px solid #52493c; }
.wxe-title, .wxe-top, .wxe-layout, .wxe-foot { padding: clamp(14px, 2.5vw, 34px); }
.wxe-title { border-bottom: 1px solid #52493c; }
.wxe-title h2 { font-size: clamp(34px, 4.2vw, 64px); }
.wxe-title p, .wxe-foot, .wxe-section p { margin: .5rem 0 0; color: #e2d8c8; line-height: 1.5; }
.wxe-top { display: grid; grid-template-columns: minmax(0, 1.5fr) auto minmax(120px, .65fr) auto; gap: 12px; align-items: end; }
.wxe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 355px); gap: clamp(12px, 2vw, 28px); align-items: start; padding-top: 0; }
.wxe-stage { position: sticky; top: 96px; min-width: 0; }
.wxe-stage p { margin: .6rem 0 0; }
.wxe-view {
  background-color: #201e19;
  background-image: repeating-conic-gradient(#383329 0% 25%, transparent 0% 50%);
  background-size: 24px 24px;
  border: 1px solid #52493c;
  min-height: clamp(230px, 42vw, 520px);
  padding: 12px;
  display: grid;
  place-items: center;
  text-align: center;
}
.wxe-view p { background: #191714; padding: .7rem 1rem; }
.wxe-view canvas { display: block; max-width: 100%; max-height: 64vh; width: auto; height: auto; }
.wxe-view canvas[data-tool]:not([data-tool=view]) { cursor: crosshair; touch-action: none; }
.wxe-view [hidden] { display: none; }
.wxe-tools { display: grid; gap: 10px; }
.wxe-tools details { background: #24211c; border: 1px solid #52493c; min-width: 0; }
.wxe-tools summary { cursor: pointer; padding: .75rem 1rem; font-weight: 780; color: #f8ad70; }
.wxe-section { display: grid; gap: .6rem; padding: .65rem 1rem 1rem; border-top: 1px solid #52493c; }
.wxe-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.wxe label { display: block; font-weight: 650; }
.wxe input, .wxe select, .wxe textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: .48rem; color: #f4efe5; background: #151310; border: 1px solid #746758; font: inherit; }
.wxe input[type=range] { accent-color: #f58a38; padding: 0; display: block; height: 22px; }
.wxe input[type=color] { height: 39px; padding: .15rem; }
.wxe input[aria-invalid=true] { border-color: #ff966a; }
.wxe button { min-height: 42px; font: inherit; font-weight: 700; cursor: pointer; }
.wxe button:not(.wx-sale-button) { background: #221f1a; color: #f4efe5; padding: .45rem .66rem; border: 1px solid #746758; }
.wxe button:disabled { opacity: .55; cursor: default; }
.wxe .wx-sale-button { margin: 0; }
.wxe :focus-visible { outline: 2px solid #f8ad70; outline-offset: 2px; }

@media (max-width: 800px) {
  .wx-sale-hero[data-wx-hero] { min-height: 0; padding-bottom: 0; gap: 22px; }
  .wx-sale-hero-image { position: relative; inset: auto; margin-inline: -5vw; aspect-ratio: 2 / 1; }
  .wx-sale-hero-image::after { background: linear-gradient(180deg, #191714 0%, transparent 44%); }
  .wxe-layout { grid-template-columns: minmax(0,1fr); }
  .wxe-stage { position: static; }
  .wxe-top { grid-template-columns: minmax(0,1fr) auto; }
  .wxe-top > :first-child { grid-column: 1 / -1; }
  .wxe-top > :nth-child(2) { grid-column: 1 / -1; justify-self: start; }
}
