.dw-embed {
  margin-block: 1.5rem;
  --dw-embed-padding: clamp(.75rem, 3vw, 1.25rem);
  padding: var(--dw-embed-padding);
  border: 1px solid var(--dw-border, currentColor);
  border-radius: .75rem;
  background: var(--dw-surface, transparent);
  color: var(--dw-text, inherit);
  overflow-wrap: anywhere;
}

.dw-embed-intro {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .85rem;
}

.dw-embed-intro > div { flex: 1 1 13rem; min-width: 0; }
.dw-embed-intro p { margin: .25rem 0 0; }
.dw-embed-intro img { width: min(100%, 8rem); height: auto; border-radius: .4rem; }
.dw-embed-product { color: var(--dw-muted, inherit); font-size: .875rem; }
.dw-embed-title { font-weight: 700; }

.dw-embed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: .75rem;
}

.dw-embed-actions button {
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--dw-border, currentColor);
  border-radius: .4rem;
  font: inherit;
  color: inherit;
  background: var(--dw-input, transparent);
}

.dw-embed :is(button, a):focus-visible {
  outline: 2px solid var(--dw-primary, currentColor);
  outline-offset: 3px;
}
.dw-embed [hidden] { display: none !important; }

.dw-embed-player { margin: 1rem auto 0; width: 100%; }
.dw-embed--landscape .dw-embed-player { max-width: 48rem; aspect-ratio: 16 / 9; }
.dw-embed--portrait .dw-embed-player { max-width: min(36rem, 44svh); aspect-ratio: 9 / 16; }
.dw-embed--audio .dw-embed-player { max-width: 34rem; height: 13rem; }
.dw-embed-player iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: .45rem; }

@media (max-width: 480px) {
  .dw-embed--portrait .dw-embed-player {
    width: min(calc(100% + 2 * var(--dw-embed-padding)), 44svh);
    margin-inline: calc((100% - min(calc(100% + 2 * var(--dw-embed-padding)), 44svh)) / 2);
  }
}
