.salesko-display-link {
  text-decoration: underline;
  padding-inline: 4px;
  color: inherit;
  font: inherit;
}

.salesko-display {
  width: min(34rem, 100% - 2rem);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
}

.salesko-display::backdrop {
  background: rgba(24, 18, 29, 0.7607843137);
}

.salesko-display-inner {
  padding: clamp(1rem, 5vw, 2rem);
}

.salesko-display-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.salesko-display-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 5vw, 1.65rem);
  line-height: 1.2;
}

.salesko-display [data-salesko-display-controls]:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.salesko-display button {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
}

.salesko-display button[aria-pressed=true] {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link:focus-visible {
  z-index: 100;
}

.bubble-theme .rich-content :is(p, li, td, dd) a:not(.button):not(.wp-block-button__link) {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

html[data-salesko-text=on] {
  font-size: 125%;
}

html.bubble-theme[data-salesko-text=on] body :where(p,
li,
label,
input,
button,
select,
textarea,
summary,
.rich-content,
.footer-links,
.section-sidebar) {
  font-size: 1rem;
}

html.bubble-theme[data-salesko-contrast=on] {
  color-scheme: dark;
  --ink: #fff;
  --gray: #e4e4e4;
  --paper: #111;
  --line: #aaa;
  --red: #ffe36e;
  --blue: #a9eaff;
}
html.bubble-theme[data-salesko-contrast=on] body,
html.bubble-theme[data-salesko-contrast=on] body :where(header,
nav,
main,
aside,
section,
article,
footer,
div,
li,
form,
fieldset,
details,
dialog,
figure,
h1,
h2,
h3,
h4,
p,
span,
em,
label,
input,
button,
select,
textarea,
summary,
th,
td) {
  background-color: #111 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
html.bubble-theme[data-salesko-contrast=on] body a {
  color: #ffe36e !important;
  text-decoration: underline !important;
}
html.bubble-theme[data-salesko-contrast=on] body :focus-visible {
  outline: 3px solid #a9eaff !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .salesko-display *,
  .nav-expand {
    transition: none;
  }
}
