.dm-widgets {
  --dmw-bg: var(--screen, #0c0c0e);
  --dmw-panel: var(--screen-2, #17171a);
  --dmw-raised: #1e1e22;
  --dmw-line: var(--screen-line, #27272a);
  --dmw-line-strong: #34343a;
  --dmw-ink: var(--screen-ink, #e4e4e7);
  --dmw-muted: var(--screen-muted, #71717a);
  --dmw-soft: #a1a1aa;
  --dmw-accent: var(--violet, #b4a1ff);
  --dmw-ok: var(--ok, #22c55e);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 640px;
  min-width: 0;
  overflow: hidden;
  background: var(--dmw-bg);
  color: var(--dmw-ink);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.dm-widgets *,
.dm-widgets *::before,
.dm-widgets *::after {
  box-sizing: border-box;
}

.dm-widgets [hidden] {
  display: none !important;
}

:where(.dm-widgets) button,
:where(.dm-widgets) input,
:where(.dm-widgets) select {
  font: inherit;
  color: inherit;
}

:where(.dm-widgets) button {
  cursor: pointer;
}

.dm-widgets :focus-visible {
  outline: 2px solid var(--dmw-accent);
  outline-offset: 2px;
}

/* Top tabs */
.dm-widgets-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--dmw-line);
  background: var(--dmw-panel);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex: none;
}

.dm-widgets-tabs [role='tab'] {
  position: relative;
  padding: 9px 14px 11px;
  border: 0;
  background: none;
  color: var(--dmw-muted);
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

.dm-widgets-tabs [role='tab']:hover {
  color: var(--dmw-ink);
}

.dm-widgets-tabs [aria-selected='true'] {
  color: var(--dmw-ink);
}

.dm-widgets-tabs [aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--dmw-accent);
}

.dm-widgets-panel {
  flex: 1;
  min-height: 0;
}

/* Builder layout */
.dm-widgets-builder {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.dm-widgets-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--dmw-line);
  background: var(--dmw-panel);
}

.dm-widgets-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--dmw-line-strong) transparent;
}

.dm-widgets-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dm-widgets-form-head strong {
  font-size: 15px;
  font-weight: 600;
}

.dm-widgets-form-head p {
  width: 100%;
  margin: 0;
  color: var(--dmw-muted);
  font-size: 12px;
}

.dm-widgets-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--dmw-accent) 40%, transparent);
  color: var(--dmw-accent);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
}

.dm-widgets-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.dm-widgets-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--dmw-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.dm-widgets-label em {
  font-style: normal;
  color: var(--dmw-muted);
}

.dm-widgets-field input[type='text'],
.dm-widgets-field select,
.dm-widgets-search {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 8px;
  background: var(--dmw-bg);
  color: var(--dmw-ink);
}

.dm-widgets-field select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dmw-muted) 50%),
    linear-gradient(135deg, var(--dmw-muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.dm-widgets-field select option {
  background: var(--dmw-panel);
}

.dm-widgets-field input[type='text']:focus,
.dm-widgets-field select:focus,
.dm-widgets-search:focus {
  border-color: var(--dmw-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dmw-accent) 22%, transparent);
}

/* Segmented radios */
.dm-widgets-seg {
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 9px;
  background: var(--dmw-bg);
}

.dm-widgets-seg-item {
  position: relative;
  flex: 1;
  min-width: 0;
}

.dm-widgets-seg-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.dm-widgets-seg-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--dmw-muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s;
}

.dm-widgets-seg-item:hover span {
  color: var(--dmw-ink);
}

.dm-widgets-seg-item input:checked + span {
  background: var(--dmw-raised);
  color: var(--dmw-ink);
  box-shadow: inset 0 0 0 1px var(--dmw-line-strong), 0 1px 2px rgb(0 0 0 / 0.4);
}

.dm-widgets-seg-item input:focus-visible + span {
  outline: 2px solid var(--dmw-accent);
  outline-offset: 1px;
}

.dm-widgets-seg--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dm-widgets-seg--swatches {
  justify-content: flex-start;
  gap: 6px;
  padding: 6px;
}

.dm-widgets-seg--swatches .dm-widgets-seg-item {
  flex: none;
}

.dm-widgets-seg--swatches .dm-widgets-seg-item span {
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
}

.dm-widgets-swatch {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.dm-widgets-seg--swatches .dm-widgets-seg-item input:checked + span {
  background: none;
  box-shadow: 0 0 0 2px var(--dmw-ink);
}

/* Product source */
.dm-widgets-source {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.dm-widgets-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dmw-muted);
  font-size: 12px;
}

.dm-widgets-note {
  margin: 0;
  color: var(--dmw-muted);
  font-size: 12px;
}

.dm-widgets-chips {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-widgets-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 4px 4px;
  border: 1px solid var(--dmw-line);
  border-radius: 8px;
  background: var(--dmw-bg);
  font-size: 12px;
}

.dm-widgets-chip > span:not(.dm-widgets-thumb) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-widgets-chip button {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--dmw-muted);
  font-size: 16px;
  line-height: 1;
}

.dm-widgets-chip button:hover {
  background: var(--dmw-raised);
  color: var(--dmw-ink);
}

.dm-widgets-chips--readonly .dm-widgets-chip {
  opacity: 0.85;
}

.dm-widgets-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.dm-widgets-thumb svg {
  width: 70%;
  height: 70%;
  fill: rgb(255 255 255 / 0.92);
}

/* Buttons */
.dm-widgets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 8px;
  background: var(--dmw-raised);
  color: var(--dmw-ink);
  font-weight: 500;
  white-space: nowrap;
}

.dm-widgets-btn:hover {
  border-color: #4a4a52;
  background: #26262b;
}

.dm-widgets-btn--primary {
  border-color: transparent;
  background: var(--dmw-accent);
  color: #141217;
  font-weight: 600;
}

.dm-widgets-btn--primary:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--dmw-accent) 85%, #fff);
}

.dm-widgets-btn:disabled,
.dm-widgets-btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: default;
}

.dm-widgets-form-foot {
  flex: none;
  padding: 12px 18px;
  border-top: 1px solid var(--dmw-line);
}

.dm-widgets-form-foot .dm-widgets-btn {
  width: 100%;
  height: 36px;
}

/* Output panel */
.dm-widgets-output {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.dm-widgets-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dmw-line);
}

.dm-widgets-views {
  display: flex;
  gap: 2px;
}

.dm-widgets-views [role='tab'] {
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--dmw-muted);
  font-weight: 500;
  white-space: nowrap;
}

.dm-widgets-views [aria-selected='true'] {
  background: var(--dmw-raised);
  color: var(--dmw-ink);
}

.dm-widgets-device .dm-widgets-seg {
  width: 190px;
}

.dm-widgets-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  background-color: #111114;
  background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.dm-widgets-stage[data-device='mobile'] {
  padding: 20px;
}

.dm-widgets-frame-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f3ee;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 18px 40px rgb(0 0 0 / 0.45);
}

.dm-widgets-stage[data-device='mobile'] .dm-widgets-frame-wrap {
  border-radius: 22px;
  box-shadow: 0 0 0 6px #232327, 0 0 0 7px #3a3a40, 0 18px 40px rgb(0 0 0 / 0.5);
}

.dm-widgets-frame {
  display: block;
  border: 0;
  transform-origin: 0 0;
  background: #f7f3ee;
}

.dm-widgets-status {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--dmw-line);
  border-radius: 999px;
  background: rgb(12 12 14 / 0.88);
  color: var(--dmw-soft);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  pointer-events: none;
}

.dm-widgets-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber, #f5c26b);
}

.dm-widgets-status.is-synced i {
  background: var(--dmw-ok);
}

/* Script view */
.dm-widgets-script {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.dm-widgets-script-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dm-widgets-script-file {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.dm-widgets-script-size {
  margin-right: auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--dmw-raised);
  color: var(--dmw-soft);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.dm-widgets-code {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--dmw-line);
  border-radius: 10px;
  background: #0a0a0c;
  color: #c9c9cf;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  line-height: 1.6;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--dmw-line-strong) transparent;
}

.dm-widgets-tok-c {
  color: #6b6b75;
  font-style: italic;
}

.dm-widgets-tok-s {
  color: #9ad7a8;
}

.dm-widgets-tok-k {
  color: #c4b5ff;
}

.dm-widgets-tok-n {
  color: #f5c26b;
}

.dm-widgets-script-note {
  margin: 0 0 22px;
  color: var(--dmw-muted);
  font-size: 12px;
}

/* Picker dialog */
.dm-widgets-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(5 5 7 / 0.66);
  animation: dm-widgets-fade 0.15s ease-out;
}

.dm-widgets-dialog {
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  max-height: min(540px, 100%);
  padding: 16px;
  gap: 10px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 14px;
  background: var(--dmw-panel);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

.dm-widgets-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dm-widgets-dialog-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dmw-ink);
}

.dm-widgets-icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--dmw-muted);
  font-size: 18px;
}

.dm-widgets-icon-btn:hover {
  background: var(--dmw-raised);
  color: var(--dmw-ink);
}

.dm-widgets-picker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--dmw-muted);
  font-size: 12px;
}

.dm-widgets-picker-limit {
  color: var(--amber, #f5c26b);
}

.dm-widgets-picker-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--dmw-line);
  border-radius: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--dmw-line-strong) transparent;
}

.dm-widgets-picker-list li + li {
  border-top: 1px solid var(--dmw-line);
}

.dm-widgets-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.dm-widgets-option:hover {
  background: var(--dmw-raised);
}

.dm-widgets-option.is-checked {
  background: color-mix(in srgb, var(--dmw-accent) 9%, transparent);
}

.dm-widgets-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--dmw-accent);
}

.dm-widgets-option .dm-widgets-thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.dm-widgets-option-name {
  flex: 1;
  min-width: 0;
  display: grid;
  font-size: 13px;
}

.dm-widgets-option-name small {
  color: var(--dmw-muted);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
}

.dm-widgets-option-price {
  display: grid;
  justify-items: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dm-widgets-option-price s {
  color: var(--dmw-muted);
  font-size: 11px;
}

.dm-widgets-empty {
  padding: 24px;
  color: var(--dmw-muted);
  text-align: center;
}

.dm-widgets-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.dm-widgets-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 10px;
  background: #1f1f24;
  color: var(--dmw-ink);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
  font-size: 12.5px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.dm-widgets-toast::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--dmw-ok);
  vertical-align: 1px;
}

.dm-widgets-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Gallery */
.dm-widgets-gallery {
  overflow-y: auto;
  padding: 16px 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--dmw-line-strong) transparent;
}

.dm-widgets-caption {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--dmw-line);
  border-radius: 10px;
  background: var(--dmw-panel);
  color: var(--dmw-soft);
  font-size: 12.5px;
}

.dm-widgets-chooser {
  display: none;
}

.dm-widgets-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dm-widgets-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--dmw-line);
  border-radius: 12px;
  background: var(--dmw-panel);
}

.dm-widgets-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dm-widgets-card h3 {
  margin: 4px 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dmw-ink);
}

.dm-widgets-card-head p {
  margin: 0;
  color: var(--dmw-muted);
  font-size: 12px;
}

.dm-widgets-role {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 999px;
  color: var(--dmw-soft);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
}

.dm-widgets-role--built {
  border-color: color-mix(in srgb, var(--dmw-accent) 45%, transparent);
  color: var(--dmw-accent);
}

.dm-widgets-role--major {
  border-color: color-mix(in srgb, var(--teal, #5fd4c4) 40%, transparent);
  color: var(--teal, #5fd4c4);
}

.dm-widgets-card-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
}

.dm-widgets-ctl {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dm-widgets-ctl span {
  color: var(--dmw-muted);
  font-size: 10.5px;
}

.dm-widgets-ctl select {
  height: 30px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 7px;
  background: var(--dmw-bg);
  color: var(--dmw-ink);
  font-size: 12px;
}

.dm-widgets-ctl select option {
  background: var(--dmw-panel);
}

.dm-widgets-card-controls .dm-widgets-seg {
  min-width: 180px;
}

.dm-widgets-ctl-note {
  color: var(--dmw-muted);
  font-size: 11px;
}

.dm-widgets-layer-close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(29 27 25 / 0.08);
  color: #3a2f27;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* Mock storefront */
.dm-widgets-mini {
  position: relative;
  flex: 1;
  min-height: 236px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px;
  background: #f7f3ee;
  color: #1d1b19;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.dm-widgets-mini--deal {
  min-height: 384px;
}

.dm-widgets-mini--wheel {
  min-height: 336px;
}

.dm-widgets-mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #ebe4da;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
}

.dm-widgets-mini-top b {
  color: #c8553a;
  font-weight: 400;
}

.dm-widgets-mini-top i {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: #e6ded3;
}

.dm-widgets-mini-top i:first-of-type {
  margin-left: auto;
}

.dm-widgets-mini-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
}

.dm-widgets-mini-art,
.dm-widgets-mini-tile {
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.dm-widgets-mini-art {
  aspect-ratio: 1;
}

.dm-widgets-mini-art svg,
.dm-widgets-mini-tile svg {
  width: 58%;
  fill: rgb(255 255 255 / 0.9);
}

.dm-widgets-mini-lines {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.dm-widgets-mini-lines strong {
  font-size: 13px;
}

.dm-widgets-mini-lines span {
  color: #6b645c;
  font-size: 12px;
}

.dm-widgets-mini-lines i {
  height: 6px;
  border-radius: 3px;
  background: #e6ded3;
}

.dm-widgets-mini-lines i:last-child {
  width: 60%;
}

.dm-widgets-mini-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px;
}

.dm-widgets-mini-tile {
  height: 56px;
  border-radius: 8px;
}

.dm-widgets-mini-tile svg {
  width: auto;
  height: 60%;
}

/* Deal of the Day designs */
.dm-widgets-dd-launch {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: #c8553a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.45);
  box-shadow: 0 0 7px rgb(0 0 0 / 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

.dm-widgets-dd-launch:active {
  transform: scale(0.92);
}

.dm-widgets-dd-launch.is-open span {
  font-size: 22px;
  font-weight: 400;
}

.dm-widgets-dd--v1 .dm-widgets-dd-launch::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(45deg, #ffb38a, #fff1e6, #c8553a, #f5c26b, #ffb38a);
  background-size: 400%;
  filter: blur(6px);
  animation: dm-widgets-glow 8s linear infinite;
}

.dm-widgets-dd--v1 .dm-widgets-dd-launch::after {
  content: '';
  position: absolute;
  inset: -70% -30%;
  z-index: -1;
  display: none;
  background-image: radial-gradient(circle, #f5c26b 20%, transparent 22%),
    radial-gradient(circle, transparent 20%, #c8553a 22%, transparent 32%),
    radial-gradient(circle, #f5c26b 20%, transparent 22%),
    radial-gradient(circle, #c8553a 20%, transparent 22%),
    radial-gradient(circle, transparent 12%, #f5c26b 16%, transparent 22%),
    radial-gradient(circle, #c8553a 20%, transparent 22%);
  background-size: 12% 12%, 20% 20%, 15% 15%, 18% 18%, 18% 18%, 10% 10%;
  background-repeat: no-repeat;
}

.dm-widgets-dd--v1 .dm-widgets-dd-launch.is-burst::after {
  display: block;
  animation: dm-widgets-bubbles 0.75s ease-in-out forwards;
}

.dm-widgets-dd--v2 .dm-widgets-dd-launch {
  background: #24272b;
  text-shadow: none;
}

.dm-widgets-dd-panel {
  position: absolute;
  left: 14px;
  bottom: 92px;
  z-index: 2;
  width: 280px;
  max-width: calc(100% - 28px);
  padding: 14px 14px 16px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  box-shadow: 0 10px 12px -4px rgb(0 0 0 / 0.25), 0 18px 40px rgb(40 25 10 / 0.18);
  animation: dm-widgets-dd-in 0.45s ease-out;
}

.dm-widgets-dd--v1 .dm-widgets-dd-panel {
  border-radius: 28px 0 28px 0;
}

.dm-widgets-dd--v2 .dm-widgets-dd-panel {
  border-radius: 14px;
}

.dm-widgets-dd-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  right: -50%;
  z-index: -1;
  opacity: 0.5;
  background-image: linear-gradient(-25deg, rgb(255 255 255 / 0.9) 50%, #f3c2ad 50%);
  animation: dm-widgets-band 3s ease-in-out infinite alternate;
}

.dm-widgets-dd-bg:nth-child(2) {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.dm-widgets-dd-bg:nth-child(3) {
  animation-duration: 5s;
}

.dm-widgets-dd-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.dm-widgets-dd-bubbles i {
  position: absolute;
  bottom: -24px;
  left: 8%;
  width: 14px;
  height: 14px;
  border: 1px solid rgb(200 85 58 / 0.35);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  animation: dm-widgets-bubble-rise 7s linear infinite;
}

.dm-widgets-dd-bubbles i:nth-child(2) { left: 22%; width: 8px; height: 8px; animation-duration: 5s; animation-delay: -2s; }
.dm-widgets-dd-bubbles i:nth-child(3) { left: 38%; width: 18px; height: 18px; animation-duration: 9s; animation-delay: -4s; }
.dm-widgets-dd-bubbles i:nth-child(4) { left: 55%; width: 10px; height: 10px; animation-duration: 6s; animation-delay: -1s; }
.dm-widgets-dd-bubbles i:nth-child(5) { left: 70%; width: 16px; height: 16px; animation-duration: 8s; animation-delay: -5s; }
.dm-widgets-dd-bubbles i:nth-child(6) { left: 84%; width: 7px; height: 7px; animation-duration: 5.5s; animation-delay: -3s; }
.dm-widgets-dd-bubbles i:nth-child(7) { left: 92%; width: 12px; height: 12px; animation-duration: 7.5s; animation-delay: -6s; }

.dm-widgets-dd-panel h4 {
  margin: 0 0 10px;
  color: #3a2f27;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.dm-widgets-dd--v2 .dm-widgets-dd-panel h4 {
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.dm-widgets-dd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.dm-widgets-dd-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.dm-widgets-dd--v1 .dm-widgets-dd-item:nth-child(3) {
  grid-column: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.dm-widgets-dd-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #c8553a;
}

.dm-widgets-dd-art svg {
  width: 62%;
  fill: rgb(255 255 255 / 0.92);
}

.dm-widgets-dd--v2 .dm-widgets-dd-art {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  box-shadow: none;
}

.dm-widgets-dd-info {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.dm-widgets-dd-item:nth-child(3) .dm-widgets-dd-info {
  justify-items: start;
}

.dm-widgets-dd-info strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.dm-widgets-dd-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 5px;
  font-size: 11.5px;
}

.dm-widgets-dd-price del {
  color: #9a9188;
  font-size: 10px;
}

.dm-widgets-dd-price b {
  color: #c8553a;
}

.dm-widgets-dd-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 4px 9px;
  border: 0;
  background: #24272b;
  color: #fff;
  font-size: 10.5px;
  font-style: italic;
  cursor: pointer;
  transform: skewX(-15deg);
  box-shadow: 4px 4px 0 #c8553a;
  transition: box-shadow 0.3s;
}

.dm-widgets-dd-cta:hover {
  box-shadow: 7px 7px 0 #f5c26b;
}

.dm-widgets-dd-cta > span {
  transform: skewX(15deg);
}

.dm-widgets-dd--v2 .dm-widgets-dd-cta {
  padding: 5px 14px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 600;
  transform: none;
  box-shadow: none;
}

.dm-widgets-dd--v2 .dm-widgets-dd-cta > span {
  transform: none;
}

.dm-widgets-dd-chev {
  width: 22px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
}

.dm-widgets-dd-chev path {
  animation: dm-widgets-chev 1s infinite;
}

.dm-widgets-dd-chev path:nth-child(1) {
  animation-delay: 0.2s;
}

.dm-widgets-dd-chev path:nth-child(2) {
  animation-delay: 0.4s;
}

.dm-widgets-dd-chev path:nth-child(3) {
  animation-delay: 0.6s;
}

/* Spin wheel */
.dm-widgets-sw-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgb(29 27 25 / 0.45);
  animation: dm-widgets-fade 0.2s ease-out;
}

.dm-widgets-sw {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(470px, 100%);
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(30 20 10 / 0.3);
}

.dm-widgets-sw > .dm-widgets-layer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.dm-widgets-sw-wheel {
  position: relative;
  flex: none;
  width: 156px;
  height: 156px;
}

.dm-widgets-sw-wheel canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.2);
}

.dm-widgets-sw-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid #24272b;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.3));
}

.dm-widgets-sw-form {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.dm-widgets-sw-form > strong {
  padding-right: 22px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.dm-widgets-sw-form > p {
  margin: 0 0 2px;
  color: #6b645c;
  font-size: 11.5px;
}

.dm-widgets-sw-field {
  display: grid;
  gap: 2px;
}

.dm-widgets-sw-field span {
  color: #1d1b19;
  font-size: 10.5px;
  font-weight: 700;
}

.dm-widgets-sw-field input {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #ddd5ca;
  border-radius: 6px;
  background: #fff;
  color: #1d1b19;
  font-size: 12px;
}

.dm-widgets-sw-field input:focus {
  border-color: #c8553a;
  outline: 2px solid rgb(200 85 58 / 0.25);
  outline-offset: 0;
}

.dm-widgets-sw [aria-invalid='true'] {
  border-color: #c0392b;
}

.dm-widgets-sw-error {
  color: #c0392b;
  font-size: 10.5px;
}

.dm-widgets-sw-error:empty {
  display: none;
}

.dm-widgets-sw-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3a2f27;
  font-size: 11px;
  cursor: pointer;
}

.dm-widgets-sw-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #c8553a;
}

.dm-widgets-sw-spin {
  height: 32px;
  margin-top: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #c8553a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.dm-widgets-sw-spin:disabled {
  background: #b9b2a9;
  cursor: progress;
}

.dm-widgets-sw-result {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.97);
  text-align: center;
  animation: dm-widgets-fade 0.3s ease-out;
}

.dm-widgets-sw-result > div {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.dm-widgets-sw-result strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.dm-widgets-sw-result p {
  margin: 0;
  color: #6b645c;
  font-size: 12px;
}

.dm-widgets-sw-result code {
  padding: 6px 12px;
  border: 1px dashed #c8553a;
  border-radius: 8px;
  background: #fff7f0;
  color: #c8553a;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Card popup */
.dm-widgets-cp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 210px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.18);
  opacity: 0;
  transform: scale(0.95);
  transform-origin: 100% 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dm-widgets-cp.is-visible {
  opacity: 1;
  transform: scale(1);
}

.dm-widgets-cp-art {
  display: grid;
  place-items: center;
  height: 86px;
}

.dm-widgets-cp-art svg {
  height: 64%;
  fill: rgb(255 255 255 / 0.92);
}

.dm-widgets-cp > .dm-widgets-layer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgb(255 255 255 / 0.85);
}

.dm-widgets-cp-body {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
  text-align: center;
}

.dm-widgets-cp-body strong {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dm-widgets-cp-body p {
  margin: 0;
  color: #666;
  font-size: 11.5px;
  line-height: 1.4;
}

/* Social proof */
.dm-widgets-sp {
  --sp-x: 0px;
  --sp-y: 12px;
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(290px, calc(100% - 20px));
  padding: 9px 16px 9px 9px;
  border-radius: 32px;
  background: #333;
  color: #fff;
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.28);
  opacity: 0;
  transform: translate(var(--sp-x), var(--sp-y));
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.dm-widgets-sp[data-pos^='t'] {
  --sp-y: -12px;
  top: 44px;
}

.dm-widgets-sp[data-pos^='b'] {
  bottom: 10px;
}

.dm-widgets-sp[data-pos$='l'] {
  left: 10px;
}

.dm-widgets-sp[data-pos$='r'] {
  right: 10px;
}

.dm-widgets-sp[data-pos$='c'] {
  --sp-x: -50%;
  left: 50%;
  width: max-content;
}

.dm-widgets-sp.is-visible {
  --sp-y: 0px;
  opacity: 1;
}

.dm-widgets-sp-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c8553a;
}

.dm-widgets-sp-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dm-widgets-sp p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.3;
}

.dm-widgets-sp b {
  color: #f5c26b;
}

/* Countdown bar */
.dm-widgets-cd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 8px 38px 8px 12px;
  background: #9a3f73;
  color: #fff;
  animation: dm-widgets-drop 0.25s ease-out;
}

.dm-widgets-cd-lead {
  font-size: 12px;
  font-weight: 600;
}

.dm-widgets-cd-units {
  display: flex;
  gap: 4px;
}

.dm-widgets-cd-units > span {
  display: grid;
  justify-items: center;
  min-width: 40px;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.16);
}

.dm-widgets-cd-units b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dm-widgets-cd-units small {
  font-size: 8.5px;
  opacity: 0.85;
  text-transform: uppercase;
}

.dm-widgets-cd-cta {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #9a3f73;
  font-size: 11px;
  font-weight: 600;
}

.dm-widgets-cd > .dm-widgets-layer-close,
.dm-widgets-st > .dm-widgets-layer-close {
  position: absolute;
  top: 50%;
  right: 8px;
  margin-top: -11px;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

/* Exit intent */
.dm-widgets-exit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(29 27 25 / 0.45);
  animation: dm-widgets-fade 0.2s ease-out;
}

.dm-widgets-exit-box {
  display: grid;
  gap: 8px;
  width: min(280px, 100%);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgb(30 20 10 / 0.3);
}

.dm-widgets-exit-box strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.dm-widgets-exit-box p {
  margin: 0;
  color: #6b645c;
  font-size: 12px;
}

.dm-widgets-exit-box div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dm-widgets .dm-widgets-exit-box .dm-widgets-btn--primary {
  background: #c8553a;
  color: #fff;
}

.dm-widgets .dm-widgets-btn--ghost {
  border-color: #e3dbd0;
  background: #fff;
  color: #4c463f;
}

.dm-widgets .dm-widgets-btn--ghost:hover {
  border-color: #cfc5b8;
  background: #f7f3ee;
}

/* Sticky bar with marquee */
.dm-widgets-st {
  --dmw-marquee: 16s;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding-right: 38px;
  background: #24272b;
  color: #fff;
  font-size: 12px;
  animation: dm-widgets-rise 0.25s ease-out;
}

.dm-widgets-st[data-speed='fast'] {
  --dmw-marquee: 9s;
}

.dm-widgets-st[data-speed='slow'] {
  --dmw-marquee: 26s;
}

.dm-widgets-st-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dm-widgets-st-track {
  display: flex;
  width: max-content;
  animation: dm-widgets-marquee var(--dmw-marquee) linear infinite;
}

.dm-widgets-st:hover .dm-widgets-st-track {
  animation-play-state: paused;
}

.dm-widgets-st-track span {
  padding: 0 40px 0 14px;
  white-space: nowrap;
}

@keyframes dm-widgets-fade {
  from {
    opacity: 0;
  }
}

@keyframes dm-widgets-drop {
  from {
    transform: translateY(-100%);
  }
}

@keyframes dm-widgets-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes dm-widgets-dd-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes dm-widgets-band {
  from {
    transform: translateX(-25%);
  }

  to {
    transform: translateX(25%);
  }
}

@keyframes dm-widgets-glow {
  50% {
    background-position: 400% 0;
  }
}

@keyframes dm-widgets-chev {
  50% {
    stroke: #f5c26b;
  }
}

@keyframes dm-widgets-bubbles {
  0% {
    background-position: 5% 90%, 20% 90%, 40% 90%, 60% 90%, 75% 90%, 90% 90%;
  }

  50% {
    background-position: 0% 50%, 15% 20%, 40% 35%, 62% 10%, 80% 30%, 95% 45%;
  }

  100% {
    background-position: 0% 40%, 12% 5%, 40% 20%, 64% -5%, 82% 15%, 97% 30%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes dm-widgets-bubble-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-420px) scale(1.1);
  }
}

@keyframes dm-widgets-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-widgets-toast {
    transform: translate(-50%, 0) !important;
  }

  .dm-widgets-sp {
    --sp-y: 0px;
  }

  .dm-widgets-cp {
    transform: none;
  }

  .dm-widgets-cd,
  .dm-widgets-st,
  .dm-widgets-dd-panel {
    animation: dm-widgets-fade 0.2s ease-out;
  }

  .dm-widgets-dd-bg,
  .dm-widgets-dd--v1 .dm-widgets-dd-launch::before,
  .dm-widgets-dd-chev path {
    animation: none;
  }

  .dm-widgets-dd-bubbles {
    display: none;
  }

  .dm-widgets-dd--v1 .dm-widgets-dd-launch.is-burst::after {
    display: none;
  }

  .dm-widgets-st-track {
    width: auto;
    animation: none;
  }

  .dm-widgets-st-track span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dm-widgets-st-track span + span {
    display: none;
  }
}

/* Narrow (demo width under 720px) */
.dm-widgets.is-narrow {
  height: auto;
}

.dm-widgets.is-narrow .dm-widgets-builder {
  grid-template-columns: minmax(0, 1fr);
}

.dm-widgets.is-narrow .dm-widgets-form {
  border-right: 0;
  border-bottom: 1px solid var(--dmw-line);
}

.dm-widgets.is-narrow .dm-widgets-form-scroll {
  overflow: visible;
  padding: 14px 14px 4px;
}

.dm-widgets.is-narrow .dm-widgets-form-foot {
  padding: 10px 14px 14px;
  border-top: 0;
}

.dm-widgets.is-narrow .dm-widgets-output {
  height: 560px;
}

.dm-widgets.is-narrow .dm-widgets-toolbar {
  padding: 10px;
}

.dm-widgets.is-narrow .dm-widgets-device,
.dm-widgets.is-narrow .dm-widgets-device .dm-widgets-seg {
  width: 100%;
}

.dm-widgets.is-narrow .dm-widgets-gallery {
  height: auto;
  overflow: visible;
  padding: 14px;
}

.dm-widgets.is-narrow .dm-widgets-cards {
  grid-template-columns: minmax(0, 1fr);
}

.dm-widgets.is-narrow .dm-widgets-caption {
  margin-bottom: 10px;
  font-size: 12px;
}

.dm-widgets.is-narrow .dm-widgets-chooser {
  display: flex;
  gap: 6px;
  margin: 0 -14px 12px;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dm-widgets.is-narrow .dm-widgets-chooser::-webkit-scrollbar {
  display: none;
}

.dm-widgets-chooser button {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--dmw-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--dmw-soft);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.dm-widgets-chooser button[aria-pressed='true'] {
  border-color: var(--dmw-ink);
  background: var(--dmw-ink);
  color: var(--dmw-bg);
}

.dm-widgets-chooser button:focus-visible {
  outline: 2px solid var(--dmw-accent);
  outline-offset: 2px;
}

.dm-widgets.is-narrow .dm-widgets-card:not(.is-current) {
  display: none;
}

.dm-widgets.is-narrow .dm-widgets-card {
  padding: 12px;
}

.dm-widgets.is-narrow .dm-widgets-mini--deal {
  min-height: 360px;
}

.dm-widgets.is-narrow .dm-widgets-toast {
  position: fixed;
}

.dm-widgets.is-narrow .dm-widgets-overlay {
  position: fixed;
  z-index: 1000;
}


.dm-widgets.is-narrow .dm-widgets-mini-body {
  grid-template-columns: 80px minmax(0, 1fr);
}

.dm-widgets.is-narrow .dm-widgets-mini--wheel {
  min-height: 500px;
}

.dm-widgets.is-narrow .dm-widgets-sw {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.dm-widgets.is-narrow .dm-widgets-sw-wheel {
  align-self: center;
  width: 132px;
  height: 132px;
}

.dm-widgets.is-narrow .dm-widgets-card-controls .dm-widgets-seg {
  min-width: 0;
  width: 100%;
}
