.wp-root {
  --wp-paper: #f5fafc;
  --wp-ink: #132d41;
  --wp-line: #b1cedb;
  --wp-accent: #1b6593;
  --wp-soft: #e0f0f8;
  --wp-radius: 22px;
  --wp-outline: #135c8b;
  color: var(--wp-ink);
  font-family: inherit;
}

.wp-root[data-theme="momnts"] {
  --wp-paper: #1e1728;
  --wp-ink: #fff3fa;
  --wp-line: #8c587f;
  --wp-accent: #f795d3;
  --wp-soft: #3c243e;
  --wp-radius: 16px;
  --wp-outline: #f795d3;
}

.wp-root[data-theme="fotobox"] {
  --wp-paper: #fff8f1;
  --wp-ink: #3a2229;
  --wp-line: #d3a9a7;
  --wp-accent: #943d5f;
  --wp-soft: #fae5e9;
  --wp-radius: 8px;
  --wp-outline: #943d5f;
}

.wp-root[data-theme="tanzboden"] {
  --wp-paper: #231b2d;
  --wp-ink: #fff4fc;
  --wp-line: #946d9f;
  --wp-accent: #f1a9e3;
  --wp-soft: #40294c;
  --wp-radius: 8px;
  --wp-outline: #f1a9e3;
}

.wp-root[data-theme="koblenz"] {
  --wp-paper: #fbf7f0;
  --wp-ink: #342d21;
  --wp-line: #cbb98b;
  --wp-accent: #735320;
  --wp-soft: #f3e8c9;
  --wp-radius: 19px;
  --wp-outline: #735320;
}

.wp-root[data-theme="spass"] {
  --wp-paper: #f7f4ec;
  --wp-ink: #173125;
  --wp-line: #7d9277;
  --wp-accent: #285d46;
  --wp-soft: #f4e486;
  --wp-radius: 6px;
  --wp-outline: #285d46;
}

.wp-root[data-theme="huepf"] {
  --wp-paper: #fff8ed;
  --wp-ink: #332b22;
  --wp-line: #dfab83;
  --wp-accent: #a63e1f;
  --wp-soft: #fae1cf;
  --wp-radius: 20px;
  --wp-outline: #a63e1f;
}

.wp-root [hidden] { display: none !important; }
.wp-root *, .wp-root *::before { box-sizing: border-box; }

.wp-panel, .wp-dialog {
  color: var(--wp-ink);
  background: var(--wp-paper);
  border: 1px solid var(--wp-line);
  border-block-start: 4px solid var(--wp-accent);
  border-radius: var(--wp-radius);
  box-shadow: 0 12px 37px rgba(0, 0, 0, .18);
  font: inherit;
  text-align: start;
}

.wp-panel {
  position: fixed;
  z-index: 10000;
  inset-inline-end: max(1.125rem, env(safe-area-inset-right));
  inset-block-end: max(1.125rem, env(safe-area-inset-bottom));
  inline-size: min(27rem, calc(100% - 2.25rem));
  padding: clamp(.85rem, 3vw, 1.25rem);
}

.wp-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  inline-size: min(35rem, calc(100% - 1.5rem));
  max-block-size: min(42rem, calc(100dvh - 2rem));
  overscroll-behavior: contain;
}

.wp-dialog::backdrop { background: rgba(15, 16, 23, .62); }
.wp-dialog-body { padding: clamp(1rem, 4vw, 1.75rem); }
.wp-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.wp-root .wp-title { margin: 0; color: inherit; font: inherit; font-size: clamp(1.1rem, 4vw, 1.375rem); font-weight: 750; line-height: 1.2; }
.wp-root .wp-copy { margin: .55rem 0 .85rem; color: inherit; font-size: .925rem; line-height: 1.45; }
.wp-root .wp-status { margin: -.25rem 0 .85rem; font-size: .8rem; font-weight: 650; color: inherit; line-height: 1.45; }
.wp-root .wp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.wp-root .wp-dialog .wp-actions { margin-top: 1rem; }

.wp-root .wp-action, .wp-root .wp-settings {
  min-block-size: 44px;
  padding: .5rem .85rem;
  border: 1px solid var(--wp-accent);
  color: inherit;
  background: var(--wp-soft);
  border-radius: max(4px, calc(var(--wp-radius) / 2));
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.wp-root .wp-settings { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .18em; }
.wp-root .wp-action:hover, .wp-root .wp-settings:hover { box-shadow: inset 0 0 0 1px var(--wp-accent); }
.wp-root :is(button, input, a, summary):focus-visible { outline: 2px solid var(--wp-outline); outline-offset: 3px; }
.wp-root .wp-group { margin: .8rem 0; padding: .7rem .8rem; border: 1px solid var(--wp-line); border-radius: .6rem; min-inline-size: 0; }
.wp-root .wp-group :is(h3, legend) { margin: 0; color: inherit; font: inherit; font-weight: 750; }
.wp-root .wp-group p { margin: .3rem 0; color: inherit; font-size: .875rem; line-height: 1.4; }
.wp-root .wp-option { display: flex; gap: .6rem; min-block-size: 44px; align-items: center; cursor: pointer; }
.wp-root .wp-option input { appearance: auto; inline-size: 1.125rem; block-size: 1.125rem; accent-color: var(--wp-accent); }
.wp-root .wp-provider { margin: 0 0 .5rem 1.7rem; font-size: .875rem; }
.wp-root .wp-provider summary { cursor: pointer; }
.wp-root .wp-link { color: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: .18em; }
[data-privacy-open] { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 440px) {
  .wp-panel { inset-inline-end: .625rem; inset-block-end: max(.625rem, env(safe-area-inset-bottom)); inline-size: calc(100% - 1.25rem); }
  .wp-root .wp-action { flex: 1 1 auto; }
}
