/* Local SF secured-card concept, payment choices and optional pixel consent. */
.sfplay-secured,
.sfpay-form,
.sffd-summary,
.sfmeta-consent {
  --sfsp-ink: #202023;
  --sfsp-muted: #60616c;
  --sfsp-line: #e3e3e9;
  --sfsp-lavender: #e9e4ff;
  --sfsp-mint: #e5f3ed;
  font-family: "Instrument Sans", sans-serif;
  color: var(--sfsp-ink);
}

.sfplay-secured.sfplay-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  margin-block: 48px;
  padding: 56px;
  border-radius: 24px;
  background: var(--sfsp-lavender);
  overflow: hidden;
}

.sfplay-secured-copy,
.sfplay-secured-art {
  min-width: 0;
}

.sfplay-secured-copy .sfplay-eyebrow {
  margin: 0 0 18px;
  color: #625671;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sfplay-secured-copy h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--sfsp-ink);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.sfplay-secured-copy > p {
  max-width: 44ch;
  margin: 22px 0 0;
  color: #5e566a;
  font-size: 16px;
  line-height: 1.75;
}

.sfplay-secured-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 28px;
}

.sfplay-secured-points > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #cfc5e6;
  border-radius: 999px;
  color: #50455f;
  background: #f3efff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.sfplay-secured .sfplay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid var(--sfsp-ink);
  border-radius: 999px;
  color: #fff;
  background: var(--sfsp-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sfplay-secured .sfplay-button:hover {
  border-color: #3b383f;
  color: #fff;
  background: #3b383f;
}

.sfplay-secured-copy > .sfplay-secured-note,
.sfplay-secured-note {
  max-width: 49ch;
  margin: 17px 0 0;
  color: #665c73;
  font-size: 12px;
  line-height: 1.75;
}

.sfplay-secured-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 360px;
  padding: 30px 20px;
  border-radius: 18px;
  background: #f3efff;
}

.sfplay-fd-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 380px);
  aspect-ratio: 1.59;
  min-width: 0;
  padding: 23px 25px;
  border: 1px solid #8295b5;
  border-radius: 16px;
  color: #fff;
  background: #213969;
  overflow: hidden;
}

.sfplay-fd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.sfplay-fd-top > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .015em;
}

.sfplay-fd-top img {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sfplay-fd-top > svg,
.sfplay-fd-top > .sfplay-fd-chip {
  flex: 0 0 43px;
  width: 43px;
  height: 34px;
}

.sfplay-fd-label {
  display: block;
  margin: 23px -25px;
  padding: 19px 25px;
  color: #202023;
  background: #dff3eb;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.sfplay-fd-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 18px;
  min-width: 0;
  color: #e4eaf7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.sfplay-fd-bottom strong {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.sfplay-fd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid #d9d0e9;
  border-radius: 999px;
  color: #5d526b;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.sfpay-form {
  display: grid;
  gap: 24px;
  min-width: 0;
  margin-top: 28px;
}

.sfpay-methods {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sfpay-methods > legend {
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: #202023;
  font-family: "Instrument Sans", sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.sfpay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.sfpay-option {
  display: grid;
  grid-template-columns: 20px 36px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 92px;
  padding: 19px 18px;
  border: 1px solid #dedbe6;
  border-radius: 12px;
  color: #202023;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sfpay-option:hover {
  border-color: #afa2c7;
  background: #fbf9ff;
}

.sfpay-option > input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #202023;
  cursor: pointer;
}

.sfpay-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid #ded5ef;
  border-radius: 10px;
  color: #51445f;
  background: #eee8fb;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.sfpay-symbol :is(svg, img) {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.sfpay-option > span:last-child {
  min-width: 0;
}

.sfpay-option strong {
  display: block;
  color: #202023;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sfpay-option small {
  display: block;
  margin-top: 5px;
  color: #60616c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.sfpay-option > input:checked + .sfpay-symbol {
  border-color: #202023;
  color: #fff;
  background: #202023;
}

.sfpay-option:has(input:checked) {
  border-color: #202023;
  background: #f3efff;
}

.sfpay-option:has(input:disabled) {
  border-color: #e9e6ed;
  background: #f8f7fa;
  cursor: not-allowed;
}

.sfpay-option:has(input:disabled) :is(strong, small, .sfpay-symbol) {
  color: #85818c;
}

.sfpay-option:focus-within {
  outline: 2px solid #202023;
  outline-offset: 4px;
}

.sfpay-summary,
.sffd-summary {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: 12px;
  color: #335246;
  background: #e5f3ed;
}

.sfpay-summary :is(h2, h3),
.sffd-summary :is(h2, h3) {
  margin: 0 0 16px;
  color: #202023;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.sfpay-summary p,
.sffd-summary p {
  margin: 10px 0 0;
  color: #4e665b;
  font-size: 14px;
  line-height: 1.75;
}

.sfpay-summary dl,
.sffd-summary dl {
  margin: 0;
}

.sfpay-summary dl > div,
.sffd-summary dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 12px 0;
  border-bottom: 1px solid #cfdfd6;
  font-size: 14px;
  line-height: 1.6;
}

.sfpay-summary dl > div:last-child,
.sffd-summary dl > div:last-child {
  border-bottom: 0;
}

.sfpay-summary dd,
.sffd-summary dd {
  margin: 0;
  color: #202023;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.sfpay-preview-note {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid #b8abd7;
  border-radius: 0 10px 10px 0;
  color: #5a4f68;
  background: #f3efff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

.sfpay-preview-note strong {
  color: #3d344a;
}

.sfpay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  padding-top: 8px;
}

.sfpay-actions :is(button, .button, .sfplay-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 25px;
  border: 1px solid #202023;
  border-radius: 999px;
  color: #fff;
  background: #202023;
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.sfpay-actions :is(button, .button, .sfplay-button):hover:not(:disabled) {
  border-color: #3b383f;
  color: #fff;
  background: #3b383f;
}

.sfpay-actions .button-secondary {
  color: #202023;
  border-color: #d4cedf;
  background: #fff;
}

.sfpay-actions :is(button, .button):disabled {
  color: #8a8691;
  border-color: #e3dfe9;
  background: #eeebf2;
  cursor: not-allowed;
}

body.sf-card-onboarding :is(input.sffd-amount, .sffd-amount input) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 2px solid #c4d8cb;
  border-radius: 0;
  color: #202023;
  background: transparent;
  font-family: "Instrument Sans", sans-serif;
  font-size: 24px;
  font-weight: 550;
  line-height: 1.5;
  caret-color: #202023;
  outline: none;
  box-shadow: none;
}

body.sf-card-onboarding :is(input.sffd-amount, .sffd-amount input):focus,
body.sf-card-onboarding :is(input.sffd-amount, .sffd-amount input):focus-visible {
  border-bottom-color: #202023;
  outline: none;
  box-shadow: none;
}

body.sf-card-onboarding :is(input.sffd-amount, .sffd-amount input)[aria-invalid="true"] {
  border-bottom-color: #a72e35;
}

.sffd-issuer-limit {
  display: block;
  margin-top: 10px;
  color: #202023;
  font-family: "Instrument Sans", sans-serif;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.sfmeta-consent {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100svh - 36px);
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #ddd6e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(32 32 35 / 10%);
  transform: translateX(-50%);
  overflow: auto;
}

.sfmeta-consent p {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: #60616c;
  font-size: 13px;
  line-height: 1.75;
}

.sfmeta-consent p strong {
  color: #202023;
  font-weight: 600;
}

.sfmeta-consent p a {
  color: #202023;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sfmeta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.sfmeta-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #d6cfdf;
  border-radius: 999px;
  color: #202023;
  background: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.sfmeta-actions button:last-child {
  border-color: #202023;
  color: #fff;
  background: #202023;
}

.sfmeta-actions button:hover {
  border-color: #9c8eb2;
}

.sfmeta-preferences {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  color: #60616c;
  background: transparent;
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  touch-action: manipulation;
}

.sfplay-secured :is(a, button):focus-visible,
.sfpay-form :is(a, button, input):focus-visible,
.sfmeta-consent :is(a, button):focus-visible,
.sfmeta-preferences:focus-visible {
  outline: 2px solid #202023;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .sfplay-secured.sfplay-shell {
    gap: 32px;
    padding: 40px;
  }

  .sfplay-secured-art {
    padding: 28px 18px;
  }

  .sfpay-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sfmeta-consent {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .sfplay-secured.sfplay-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-block: 32px;
    padding: 30px 24px;
    border-radius: 18px;
  }

  .sfplay-secured-art {
    order: -1;
    min-height: 290px;
    padding: 26px 18px;
    border-radius: 14px;
  }

  .sfplay-secured-copy h2 {
    max-width: 15ch;
    font-size: 39px;
  }

  .sfplay-secured-copy > p {
    margin-top: 18px;
    font-size: 15px;
  }

  .sfplay-secured-points {
    gap: 8px;
    margin-block: 22px 26px;
  }

  .sfplay-fd-card {
    padding: 20px 22px;
  }

  .sfplay-fd-label {
    margin: 20px -22px;
    padding: 18px 22px;
    font-size: 25px;
  }

  .sfpay-methods > legend {
    font-size: 21px;
  }

  .sfpay-option {
    min-height: 88px;
    padding: 18px 16px;
    gap: 12px;
  }

  .sfpay-summary,
  .sffd-summary {
    padding: 22px;
  }

  .sfpay-actions {
    align-items: stretch;
    justify-content: stretch;
  }

  .sfpay-actions > :is(button, .button, .sfplay-button) {
    flex: 1 1 100%;
    width: 100%;
  }

  .sfmeta-consent {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    padding: 20px;
    border-radius: 14px;
  }

  .sfmeta-actions {
    justify-content: stretch;
  }

  .sfmeta-actions button {
    flex: 1 1 0;
    padding-inline: 13px;
  }
}

@media (max-width: 360px) {
  .sfplay-secured.sfplay-shell {
    padding: 26px 18px;
  }

  .sfplay-secured-art {
    min-height: 250px;
    padding: 22px 14px;
  }

  .sfplay-secured-copy h2 {
    font-size: 35px;
  }

  .sfplay-fd-card {
    padding: 17px 18px;
    border-radius: 13px;
  }

  .sfplay-fd-top {
    gap: 12px;
  }

  .sfplay-fd-top > span {
    gap: 7px;
    font-size: 10px;
  }

  .sfplay-fd-top img {
    width: 28px;
    height: 28px;
  }

  .sfplay-fd-top > svg,
  .sfplay-fd-top > .sfplay-fd-chip {
    flex-basis: 35px;
    width: 35px;
    height: 28px;
  }

  .sfplay-fd-label {
    margin: 18px -18px;
    padding: 16px 18px;
    font-size: 22px;
  }

  .sfplay-fd-bottom {
    font-size: 10px;
  }

  .sfpay-option {
    grid-template-columns: 18px 32px minmax(0, 1fr);
    gap: 10px;
    padding: 17px 14px;
  }

  .sfpay-symbol {
    width: 32px;
    height: 32px;
    padding: 5px;
  }

  .sfpay-option strong {
    font-size: 14px;
  }

  .sfpay-summary,
  .sffd-summary {
    padding: 20px 18px;
  }

  .sfmeta-consent {
    padding: 18px 16px;
  }

  .sfmeta-actions {
    gap: 8px;
  }

  .sfmeta-actions button {
    flex-basis: 100%;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sfplay-secured *,
  .sfpay-form *,
  .sfmeta-consent * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
