/* LAW demo payment experience v2 — deliberately scoped to checkout. */
html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel {
  --demo-ink: #fff8f5;
  --demo-muted: rgba(255, 236, 239, .66);
  --demo-line: rgba(255, 235, 241, .14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 26px) !important;
  border: 1px solid rgba(255, 230, 237, .18) !important;
  border-radius: 26px !important;
  color: var(--demo-ink) !important;
  background:
    radial-gradient(circle at 93% -8%, rgba(238, 42, 93, .2), transparent 33%),
    radial-gradient(circle at 2% 100%, rgba(132, 8, 42, .22), transparent 35%),
    linear-gradient(145deg, rgba(37, 7, 18, .98), rgba(10, 2, 6, .985) 63%, rgba(61, 7, 23, .94)) !important;
  box-shadow:
    0 28px 70px rgba(16, 0, 6, .38),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .34) !important;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .68;
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(255, 255, 255, .035) 45.2%, transparent 63%),
    repeating-linear-gradient(128deg, transparent 0 18px, rgba(255, 255, 255, .012) 19px, transparent 20px);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel.show {
  display: grid;
  gap: 22px;
  animation: demoPanelReveal .32s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes demoPanelReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .payment-demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 132, 165, .3);
  border-radius: 999px;
  color: #ff9bb9;
  background: rgba(207, 26, 74, .12);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-intro h3 {
  margin: 0 0 7px !important;
  color: var(--demo-ink) !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 500;
  line-height: 1.02 !important;
  letter-spacing: -.025em;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-intro p {
  max-width: 560px;
  margin: 0;
  color: var(--demo-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 13px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 243, 246, .76);
  font-size: 11px;
  font-weight: 750;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel :is(.demo-card-assurances, .demo-card-lock, .demo-card-note__icon) svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-lock {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 224, 234, .16);
  border-radius: 50%;
  color: #ff789f;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-lock svg {
  width: 19px;
  height: 19px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-layout {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(330px, 1.08fr) !important;
  gap: clamp(20px, 3vw, 30px) !important;
  align-items: start !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview {
  position: relative;
  isolation: isolate;
  align-self: start;
  width: 100%;
  max-width: 390px;
  min-height: 0 !important;
  aspect-ratio: 1.586 / 1;
  overflow: hidden;
  padding: clamp(19px, 2.6vw, 25px) !important;
  border: 1px solid rgba(255, 225, 233, .24) !important;
  border-radius: 23px !important;
  color: #fff8f5 !important;
  background:
    radial-gradient(circle at 84% 15%, rgba(255, 83, 132, .33), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(94, 0, 29, .72), transparent 46%),
    linear-gradient(145deg, #310411, #820c34 56%, #b7164e) !important;
  box-shadow:
    0 25px 54px rgba(0, 0, 0, .38),
    0 8px 24px rgba(126, 4, 42, .25),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .32) !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -42%;
  right: -16%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(255, 255, 255, .025),
    0 0 0 48px rgba(255, 255, 255, .018);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 25% 72%, rgba(255, 255, 255, .035));
  mix-blend-mode: screen;
  pointer-events: none;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__top,
html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__identity {
  display: grid;
  gap: 1px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__brand {
  color: #fffaf6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__identity small {
  color: rgba(255, 244, 246, .62);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__hardware {
  display: flex;
  align-items: center;
  gap: 10px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__chip {
  position: relative;
  display: block;
  width: 39px;
  height: 29px;
  overflow: hidden;
  border: 1px solid rgba(110, 63, 3, .32);
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(105, 63, 9, .38) 48% 51%, transparent 52%),
    linear-gradient(0deg, transparent 46%, rgba(105, 63, 9, .38) 47% 51%, transparent 52%),
    linear-gradient(135deg, #f9dc7c, #b87716 48%, #ffe59a);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 5px 12px rgba(0, 0, 0, .18);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__chip::before,
html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__chip::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 13px;
  height: 9px;
  border: 1px solid rgba(105, 63, 9, .4);
  border-radius: 0 5px 5px 0;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__chip::before { top: 3px; }
html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__chip::after { bottom: 3px; }

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__contactless {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(255, 248, 244, .82);
  stroke-width: 1.65;
  stroke-linecap: round;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__number {
  position: absolute;
  left: clamp(19px, 2.6vw, 25px);
  right: clamp(19px, 2.6vw, 25px);
  top: 51%;
  margin: 0 !important;
  transform: translateY(-50%);
  overflow: hidden;
  color: #fffaf7 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(15px, 1.55vw, 20px) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .075em !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  white-space: nowrap !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__bottom {
  position: absolute;
  right: clamp(19px, 2.6vw, 25px);
  bottom: clamp(18px, 2.5vw, 23px);
  left: clamp(19px, 2.6vw, 25px);
  align-items: flex-end;
  justify-content: flex-start;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__meta:first-child {
  flex: 1 1 auto;
  max-width: 55%;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__meta > span {
  color: rgba(255, 241, 244, .58) !important;
  font-size: 7px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__meta strong {
  overflow: hidden;
  color: #fff9f6 !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__bottom .demo-card-preview__meta:nth-child(2) {
  min-width: 49px;
  margin-left: auto;
  text-align: left;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__type {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin-left: 13px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: rgba(255, 247, 247, .72);
  background: rgba(18, 0, 7, .22);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .11em;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-content: start;
  gap: 13px !important;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 231, 238, .1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .016));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 235, 241, .09);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__header > span:first-child {
  display: grid;
  gap: 2px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__header strong {
  color: #fff9f6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 600;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__header small {
  color: rgba(255, 235, 240, .52);
  font-size: 10px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 128, 163, .21);
  border-radius: 999px;
  color: #ff91b1;
  background: rgba(196, 19, 68, .1);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .09em;
  white-space: nowrap;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4e82;
  box-shadow: 0 0 0 3px rgba(255, 65, 121, .11);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field--name,
html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field--number {
  grid-column: 1 / -1 !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field label {
  margin: 0 !important;
  color: rgba(255, 241, 244, .78) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: none !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field input {
  width: 100%;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 233, 239, .15) !important;
  border-radius: 14px !important;
  outline: none;
  color: #fff9f7 !important;
  background: linear-gradient(145deg, rgba(12, 2, 6, .9), rgba(3, 1, 2, .82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
  caret-color: #ff3e76;
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field input::placeholder {
  color: rgba(255, 229, 236, .36) !important;
  opacity: 1;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field input:hover {
  border-color: rgba(255, 225, 234, .26) !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field input:focus {
  border-color: rgba(255, 70, 124, .82) !important;
  background: rgba(13, 2, 7, .98) !important;
  box-shadow: 0 0 0 3px rgba(237, 31, 89, .14), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field input[aria-invalid="true"] {
  border-color: #ff6b86 !important;
  box-shadow: 0 0 0 3px rgba(255, 57, 96, .12) !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-feedback {
  grid-column: 1 / -1;
  min-height: 0 !important;
  margin: 0 !important;
  color: #ff92aa !important;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-feedback:empty {
  display: none;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-note {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0 !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(255, 230, 237, .09) !important;
  border-radius: 13px !important;
  color: rgba(255, 238, 242, .66) !important;
  background: rgba(255, 255, 255, .026) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-note__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 111, 151, .18);
  border-radius: 9px;
  color: #ff789e;
  background: rgba(210, 21, 72, .08);
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-note > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-note strong {
  color: rgba(255, 247, 248, .9) !important;
  font-size: 10px;
}

html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-note small {
  overflow-wrap: anywhere;
  color: rgba(255, 232, 238, .56);
  font-size: 9px;
  font-weight: 500;
}

@media (max-width: 980px) {
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview {
    justify-self: center;
    max-width: 370px;
  }
}

@media (max-width: 520px) {
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel {
    gap: 17px !important;
    margin-top: 14px;
    padding: 15px !important;
    border-radius: 22px !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-intro {
    gap: 10px;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-intro h3 {
    font-size: 26px !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-assurances {
    gap: 7px 10px;
    margin-top: 10px;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-lock {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview {
    max-width: 350px;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__number {
    right: 18px;
    left: 18px;
    font-size: clamp(14px, 4vw, 17px) !important;
    letter-spacing: .055em !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__bottom {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form {
    gap: 11px !important;
    padding: 14px;
    border-radius: 17px;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field--expiry,
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field--cvc {
    grid-column: auto !important;
  }
}

@media (max-width: 350px) {
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-field {
    grid-column: 1 / -1 !important;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-form__header {
    align-items: flex-start;
  }

  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__contactless,
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel .demo-card-preview__type {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.law-public-light body.law-checkout-page:not(#law-legacy-theme) #demoCardPanel.show {
    animation: none;
  }
}
