lexxy-editor action-text-attachment[content-type="application/vnd.launchpad.button+html"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0;
  padding: 0;
  overflow: visible;
  white-space: normal;
  text-align: inherit;
  position: relative;
  font: inherit;
}

lexxy-editor action-text-attachment[content-type="application/vnd.launchpad.button+html"].node--selected {
  outline: none;
}

lexxy-editor action-text-attachment[content-type="application/vnd.launchpad.button+html"] > lexxy-node-delete-button {
  display: none;
}

.button-embed-attachment__frame {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.button-embed-attachment__controls {
  position: absolute;
  inset-block-start: calc(100% + 0.25rem);
  left: 0.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / 12%);
  visibility: hidden;
}

.button-embed-attachment__controls::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.25rem;
}

.button-embed-attachment__frame[data-button-align="center"] .button-embed-attachment__controls {
  left: 50%;
  transform: translateX(-50%);
}

.button-embed-attachment__frame[data-button-align="right"] .button-embed-attachment__controls {
  left: auto;
  right: 0.25rem;
}

.button-embed-attachment:is(:hover, :focus-within, .node--selected) .button-embed-attachment__controls,
.button-embed-attachment:has([aria-expanded="true"]) .button-embed-attachment__controls {
  visibility: visible;
}

.button-embed-attachment:is(:focus-within, .node--selected) .button-embed-preview__button {
  outline: 2px solid var(--lexxy-focus-ring-color, #3b82f6);
  outline-offset: 3px;
}

.button-embed-attachment__control {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  margin: 0;
  padding: 0.25rem 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.button-embed-attachment__control:hover {
  background: #f1f5f9;
}

.button-embed-attachment__control:focus-visible {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: 2px;
}

.button-embed-attachment__control--danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.button-embed-attachment__control--danger:hover {
  background: #fef2f2;
}

.button-embed-attachment__preview {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: visible;
}

.button-embed-attachment__preview .button-embed-preview__button {
  font-size: inherit;
  cursor: pointer;
}

.button-embed-attachment__invalid-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px dashed #f87171;
  border-radius: 0.375rem;
  color: #7f1d1d;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.button-embed-attachment__warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  color: #92400e;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.button-embed-attachment__warning-text {
  flex: 1 1 14rem;
  min-width: 0;
}

.button-embed-preview {
  box-sizing: border-box;
  max-width: 100%;
}

.button-embed-preview__button {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.button-embed-preview--unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.375rem;
  color: #475569;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.button-embed-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body:has(.button-embed-dialog[open]) {
  overflow: hidden;
}

.button-embed-dialog {
  box-sizing: border-box;
  width: min(36rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 64px rgb(15 23 42 / 18%), 0 4px 16px rgb(15 23 42 / 6%);
  text-align: left;
}

.button-embed-dialog[open] {
  display: flex;
  flex-direction: column;
}

.button-embed-dialog::backdrop {
  background: rgb(15 23 42 / 35%);
}

.button-embed-dialog *,
.button-embed-dialog *::before,
.button-embed-dialog *::after {
  box-sizing: border-box;
}

.button-embed-dialog [hidden],
.button-embed-menu[hidden] {
  display: none !important;
}

.button-embed-dialog__form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}

.button-embed-dialog__header {
  display: grid;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
}

.button-embed-dialog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.button-embed-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.button-embed-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.25rem -0.5rem -0.25rem 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #475569;
  line-height: 1;
  cursor: pointer;
}

.button-embed-dialog__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.button-embed-dialog__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.button-embed-dialog__preview-frame {
  padding: 0.75rem 1rem;
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.button-embed-dialog__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1rem;
  text-transform: uppercase;
}

.button-embed-dialog__preview {
  display: grid;
  align-items: center;
  min-height: 3.5rem;
  max-height: min(10rem, 20dvh);
  padding-top: 0.75rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.button-embed-dialog__label {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.button-embed-dialog__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.button-embed-dialog__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.button-embed-dialog__input::placeholder {
  color: #94a3b8;
}

.button-embed-dialog__input:focus-visible {
  border-color: var(--color-primary-500, #3b82f6);
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: -1px;
}

.button-embed-dialog__counter {
  flex-shrink: 0;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1rem;
}

.button-embed-dialog__counter--over {
  color: #b91c1c;
  font-weight: 600;
}

.button-embed-dialog__error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.button-embed-dialog__tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
  margin: 0 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.button-embed-dialog__tab {
  min-height: 2.75rem;
  margin: 0 0 -1px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.button-embed-dialog__tab:hover {
  color: #0f172a;
}

.button-embed-dialog__tab--active {
  border-bottom-color: var(--color-primary-600, #2563eb);
  color: #0f172a;
}

.button-embed-dialog__tab:focus-visible {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: -2px;
}

.button-embed-dialog__panels {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.5rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.button-embed-dialog__panel {
  display: grid;
  gap: 0.625rem;
}

.button-embed-dialog__panel[hidden] {
  display: none !important;
}

.button-embed-dialog__footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.button-embed-dialog__footer-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.button-embed-dialog__primary,
.button-embed-dialog__secondary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
  margin: 0;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
}

.button-embed-dialog__primary {
  background: var(--color-primary-700, #1d4ed8);
  color: #fff;
}

.button-embed-dialog__primary:hover:not(:disabled) {
  background: var(--color-primary-800, #1e40af);
}

.button-embed-dialog__primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-embed-dialog__secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.button-embed-dialog__secondary:hover:not(:disabled) {
  background: #f1f5f9;
}

.button-embed-dialog__secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-embed-dialog__text-button {
  min-height: 2.25rem;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.button-embed-dialog__text-button:hover {
  color: #0f172a;
}

.button-embed-dialog__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}

.button-embed-dialog__reset:hover {
  text-decoration: underline;
}

.button-embed-dialog__reset svg {
  width: 1rem;
  height: 1rem;
}

.button-embed-dialog__text-button--danger {
  color: #b91c1c;
}

.button-embed-dialog__text-button--danger:hover {
  color: #7f1d1d;
}

.button-embed-dialog__primary:focus-visible,
.button-embed-dialog__secondary:focus-visible,
.button-embed-dialog__text-button:focus-visible,
.button-embed-dialog__close:focus-visible {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: 2px;
}

.button-embed-selection {
  display: grid;
  gap: 0.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  background: #eff6ff;
}

.button-embed-selection--empty {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.button-embed-selection--missing {
  border-color: #fecaca;
  background: #fef2f2;
}

.button-embed-selection__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.button-embed-selection__title {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}

.button-embed-selection__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.button-embed-selection__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.375rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.button-embed-selection__badge--warning {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.button-embed-selection__warning {
  margin: 0;
  color: #92400e;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.button-embed-selection--missing .button-embed-selection__warning {
  color: #b91c1c;
}

.button-embed-picker__status {
  min-height: 1.25rem;
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.button-embed-picker__results {
  display: grid;
  grid-auto-rows: max-content;
  max-height: 13rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
}

.button-embed-picker__results:empty {
  display: none;
}

.button-embed-picker__result {
  display: grid;
  gap: 0.125rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.button-embed-picker__result:last-child {
  border-bottom: 0;
}

.button-embed-picker__result:hover,
.button-embed-picker__result--active {
  background: #f1f5f9;
}

.button-embed-picker__result--selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--color-primary-600, #2563eb);
}

.button-embed-picker__result--selected.button-embed-picker__result--active {
  background: #dbeafe;
}

.button-embed-picker__title {
  min-width: 0;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}

.button-embed-picker__meta {
  color: #64748b;
  font-size: 0.6875rem;
  line-height: 1rem;
}

.button-embed-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-embed-style-section {
  display: grid;
  gap: 0.75rem;
}

.button-embed-style-section + .button-embed-style-section {
  padding-top: 0.75rem;
  border-top: 1px solid #e8edf3;
}

.button-embed-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.button-embed-fieldset--disabled .button-embed-segmented {
  opacity: 0.5;
}

.button-embed-fieldset__legend {
  padding: 0;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.button-embed-fieldset--row .button-embed-fieldset__legend {
  float: left;
  width: 7.25rem;
  padding: 0.6875rem 0.75rem 0 0;
}

.button-embed-fieldset--row .button-embed-segmented {
  margin: 0 0 0 7.25rem;
}

.button-embed-fieldset__hint {
  margin: 0.375rem 0 0 7.25rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.button-embed-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid #edf0f4;
  border-radius: 0.625rem;
  background: #f1f4f8;
}

.button-embed-segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.125rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.4375rem;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.125rem;
  text-align: center;
  cursor: pointer;
}

.button-embed-segmented label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.button-embed-segmented svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.button-embed-segmented label:hover:has(input:not(:disabled, :checked)) {
  background: #e8edf3;
}

.button-embed-segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.button-embed-segmented label:has(input:checked) {
  border-color: #e2e8f0;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.button-embed-segmented label:has(input:focus-visible) {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: 2px;
}

.button-embed-fieldset:disabled .button-embed-segmented label,
.button-embed-fieldset:disabled .button-embed-segmented input {
  cursor: not-allowed;
}

.button-embed-colors {
  display: grid;
  clear: both;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.button-embed-colors[hidden] {
  display: none;
}

.button-embed-color {
  display: grid;
  min-width: 0;
  gap: 0.375rem;
  color: #475569;
  font-size: 0.75rem;
}

.button-embed-color__inputs {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.125rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
}

.button-embed-color__inputs:has(input:disabled) {
  opacity: 0.5;
}

.button-embed-color input[type="color"] {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
}

.button-embed-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.button-embed-color input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgb(15 23 42 / 12%);
  border-radius: 0.25rem;
}

.button-embed-color input[type="color"]::-moz-color-swatch {
  border: 1px solid rgb(15 23 42 / 12%);
  border-radius: 0.25rem;
}

.button-embed-color__hex {
  width: 100%;
  min-width: 0;
  min-height: 2rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: lowercase;
}

.button-embed-color__hex:focus-visible,
.button-embed-color input[type="color"]:focus-visible {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: 1px;
}

.button-embed-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.button-embed-metric {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.button-embed-metric__input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
}

.button-embed-metric input {
  width: 100%;
  min-width: 0;
  min-height: 2.375rem;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border: 0;
  border-radius: inherit;
  outline: 0 solid transparent;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.8125rem;
}

.button-embed-metric__input:focus-within {
  outline: 2px solid var(--color-primary-500, #3b82f6);
  outline-offset: 1px;
}

.button-embed-menu {
  box-sizing: border-box;
  position: fixed;
  z-index: 80;
  width: 216px;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 32px rgb(15 23 42 / 18%);
}

.button-embed-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.375rem 0.625rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.button-embed-menu__item:hover:not(:disabled),
.button-embed-menu__item:focus-visible {
  background: #f1f5f9;
  outline: 0;
}

.button-embed-menu__item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-primary-500, #3b82f6);
}

.button-embed-menu__item:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.button-embed-menu__item--danger {
  color: #b91c1c;
}

.button-embed-menu__item--danger:hover:not(:disabled),
.button-embed-menu__item--danger:focus-visible {
  background: #fef2f2;
}

.button-embed-menu__separator {
  height: 1px;
  margin: 0.25rem 0;
  background: #e2e8f0;
}

@media (max-width: 640px) {
  .button-embed-attachment__controls {
    padding: 0;
  }

  .button-embed-dialog {
    width: min(36rem, calc(100vw - 1rem));
    max-height: calc(100dvh - 1rem);
  }

  .button-embed-dialog__header {
    padding: 1rem;
  }

  .button-embed-dialog__tabs {
    margin: 0 1rem;
  }

  .button-embed-dialog__panels {
    padding: 0.75rem 1rem;
  }

  .button-embed-dialog__footer {
    padding: 0.75rem 1rem;
  }

  .button-embed-segmented label,
  .button-embed-dialog__secondary,
  .button-embed-dialog__primary,
  .button-embed-menu__item,
  .button-embed-attachment__control {
    min-height: 2.75rem;
  }

}

@media (max-width: 480px) {
  .button-embed-fieldset--row .button-embed-fieldset__legend {
    width: 5rem;
    padding-top: 1rem;
  }

  .button-embed-fieldset--row .button-embed-segmented,
  .button-embed-fieldset__hint {
    margin-left: 5rem;
  }

  .button-embed-metrics {
    grid-template-columns: 1fr;
  }

  .button-embed-metric {
    grid-template-columns: minmax(0, 1fr) 7rem;
    align-items: center;
  }

  .button-embed-colors {
    grid-template-columns: 1fr;
  }

  .button-embed-color {
    grid-template-columns: minmax(0, 1fr) 9rem;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .button-embed-fieldset--row .button-embed-fieldset__legend {
    float: none;
    width: auto;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .button-embed-fieldset--row .button-embed-segmented,
  .button-embed-fieldset__hint {
    margin-left: 0;
  }

  .button-embed-dialog__footer-actions {
    width: 100%;
  }

  .button-embed-dialog__footer-actions > button {
    flex: 1 1 0;
  }
}

@media (forced-colors: active) {
  .button-embed-segmented label:has(input:checked) {
    border-color: Highlight;
    color: Highlight;
  }

  .button-embed-preview__button,
  .button-embed-attachment__controls,
  .button-embed-dialog,
  .button-embed-menu {
    border: 1px solid ButtonText;
  }
}

.rich-text-button {
  box-sizing: border-box;
  max-width: 100%;
}

.rich-text-button__link {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-text-button__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.lexxy-content table.rich-text-button__table {
  inline-size: auto;
  margin: 0;
  border-collapse: separate;
}

.lexxy-content table.rich-text-button__table td {
  min-width: 0;
  max-width: none;
  padding: 0;
  word-break: normal;
}

.rich-text-button--fallback {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.375rem;
  color: #475569;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
