* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 79, 255, 0.10), transparent 32rem),
    #f5f7fb;
  color: #172033;
}

.demo-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.demo-hero {
  margin-bottom: 28px;
}

.demo-kicker {
  margin: 0 0 8px;
  color: #1f8f4d;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: .95;
}

.demo-hero p {
  max-width: 760px;
  color: #5f6b85;
  font-size: 1.05rem;
  line-height: 1.6;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: stretch;
}

.demo-card {
  background: #ffffff;
  border: 1px solid #d9e1ee;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(18, 31, 53, 0.10);
  padding: 24px;
}

.demo-content-card {
  min-height: 420px;
}

.demo-media {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #f7fff9;
  border: 1px solid #d9e1ee;
  color: #1f8f4d;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: .08em;
}

.demo-content-card h2,
.demo-widget-card h2 {
  margin: 0 0 10px;
}

.demo-content-card p,
.demo-widget-card p {
  color: #5f6b85;
  line-height: 1.55;
}

.demo-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.demo-meta-row span {
  border: 1px solid #d9e1ee;
  border-radius: 999px;
  padding: 8px 10px;
  background: #f7fff9;
  color: #5f6b85;
  font-size: .9rem;
}

.demo-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.demo-card-head p {
  margin: 0;
}

.demo-state {
  flex: 0 0 auto;
  border: 1px solid #d9e1ee;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .82rem;
  color: #5f6b85;
  background: #f7fff9;
}

.demo-state.is-ready {
  color: #1f8f4d;
  border-color: rgba(31, 79, 255, .25);
}

.demo-widget-slot {
  min-height: 210px;
}

.demo-placeholder {
  border: 1px dashed #d9e1ee;
  border-radius: 16px;
  padding: 20px;
  background: #f7fff9;
}

.demo-placeholder p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-card-head {
    display: block;
  }

  .demo-state {
    display: inline-flex;
    margin-top: 12px;
  }
}

.ixs-age-widget {
  display: grid;
  gap: 14px;
}

.ixs-age-widget label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #34242a;
}

.ixs-age-widget input {
  width: 100%;
  border: 1px solid rgba(31, 143, 77, 0.22);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

.ixs-age-widget button {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  background: #1f8f4d;
  cursor: pointer;
}

.ixs-age-widget button:hover {
  filter: brightness(0.96);
}

/* IxsSeal demo flow v1 */

.demo-layout,
.demo-grid,
.widget-demo-grid,
.template-grid,
.demo-columns,
.ixs-widget-demo,
.ixs-demo-shell {
  grid-template-columns: 1fr !important;
}

.ixs-demo-flow {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ixs-demo-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 28, 45, 0.10);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ixs-demo-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.ixs-demo-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.ixs-demo-text {
  margin: 0;
  line-height: 1.6;
  opacity: 0.82;
}

.ixs-demo-cart-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ixs-demo-cart-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(20, 28, 45, 0.10);
}

.ixs-demo-cart-total {
  font-weight: 800;
}

.ixs-demo-pay-box {
  display: grid;
  gap: 12px;
}

.ixs-demo-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ixs-demo-pay-pill {
  border: 1px solid rgba(20, 28, 45, 0.14);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

.ixs-demo-primary-action {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  background: #111827;
  color: white;
}

.ixs-demo-status-note {
  margin-top: 12px;
  font-size: 0.92rem;
  opacity: 0.68;
}

[data-ixsseal-locked] {
  opacity: 0.46;
  filter: grayscale(0.25);
  pointer-events: none;
  user-select: none;
  transition: opacity 160ms ease, filter 160ms ease;
}

.ixs-demo-flow.is-ixsseal-confirmed [data-ixsseal-locked] {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.ixs-demo-flow.is-ixsseal-confirmed [data-ixsseal-pending-text] {
  display: none;
}

[data-ixsseal-success-text] {
  display: none;
}

.ixs-demo-flow.is-ixsseal-confirmed [data-ixsseal-success-text] {
  display: block;
}

/* IxsSeal demo friendly flow v3 */

.ixs-demo-flow--friendly {
  gap: 20px;
}

.ixs-demo-flow--friendly .ixs-demo-card {
  border-radius: 24px;
}

.ixs-demo-age-card {
  position: relative;
  overflow: hidden;
}

.ixs-demo-age-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 2px 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 28, 45, 0.14);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.92rem;
}

.ixs-demo-seal-note {
  margin: 0 0 16px;
  line-height: 1.55;
  opacity: 0.78;
}

.ixs-demo-flow--friendly .ixs-demo-kicker {
  opacity: 0.58;
}

.ixs-demo-flow--friendly [data-ixsseal-locked] {
  position: relative;
}

.ixs-demo-flow--friendly [data-ixsseal-locked]::after {
  content: "Gesperrt bis zur IxsSeal-Freigabe";
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 28, 45, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.78;
}

.ixs-demo-flow--friendly.is-ixsseal-confirmed [data-ixsseal-locked]::after {
  content: "Freigegeben durch IxsSeal";
}

/* IxsSeal kid copy polish v4 */

.ixs-kid-copy-v4 .ixs-demo-kicker,
.ixs-kid-copy-v4 .demo-media.demo-media-kid h2,
.ixs-kid-copy-v4 .demo-media.demo-media-kid p,
.ixs-kid-copy-v4 .demo-meta-row {
  display: none !important;
}

.ixs-kid-copy-v4 .ixs-demo-age-badge {
  margin-top: 0;
}

.ixs-kid-copy-v4 .ixs-demo-card {
  padding-top: clamp(20px, 3vw, 30px);
}
