:root {
  --sc-color-primary: #635bff;
  --sc-color-heading: #0a2540;
  --sc-color-body: #1a1f36;
  --sc-color-muted: #4f566b;
  --sc-color-border-soft: rgba(10, 37, 64, 0.10);
  --sc-color-border-subtle: rgba(10, 37, 64, 0.08);
  --sc-radius-card: 18px;
  --sc-radius-card-mobile: 16px;
  --sc-radius-button: 6px;
  --sc-shadow-card: 0 14px 34px rgba(10, 37, 64, 0.08);
  --sc-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-testid="business-name"] {
  max-width: 240px !important;
}

@media (min-width: 992px) {
  .App-Container:not(.local-setup-mode) .App-Overview,
  .App-Container:not(.local-setup-mode) .App-Payment {
    width: var(--checkout-app-tablet-constraint, 380px) !important;
    flex: 0 0 var(--checkout-app-tablet-constraint, 380px) !important;
    max-width: var(--checkout-app-tablet-constraint, 380px) !important;
    box-sizing: border-box !important;
  }

  .App-Overview > .TopKeyInsight,
  .App-Overview > .CareGapMessage,
  .App-Payment > .CheckoutPaymentForm,
  .App-Payment > .App-Footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

.TopKeyInsight {
  width: calc(100% - 48px);
  max-width: 440px;
  margin: 14px auto 18px;
  padding: 20px 20px 18px;
  box-sizing: border-box;
  border: 1px solid var(--sc-color-border-soft);
  border-radius: var(--sc-radius-card);
  background: #ffffff;
  box-shadow: var(--sc-shadow-card);
  color: var(--sc-color-body);
  font-family: var(--sc-font-system);
}

.TopKeyInsight-title {
  margin: 0 0 8px;
  color: var(--sc-color-heading);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.TopKeyInsight-text {
  margin: 0;
  color: var(--sc-color-muted);
  font-size: 14.5px;
  line-height: 1.52;
  font-weight: 500;
}

.TopKeyInsight-imageWrap {
  margin-top: 15px;
  padding: 8px 8px 0;
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: 15px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.TopKeyInsight-image {
  display: block;
  width: 100%;
  max-width: 337px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.CareGapMessage {
  width: calc(100% - 48px);
  max-width: 440px;
  margin: 20px auto 24px;
  padding: 22px 22px 20px;
  box-sizing: border-box;
  border: 1px solid var(--sc-color-border-soft);
  border-radius: var(--sc-radius-card);
  background:
    radial-gradient(circle at top right, rgba(99, 91, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 18px 42px rgba(10, 37, 64, 0.10);
  color: var(--sc-color-body);
  font-family: var(--sc-font-system);
}

.CareGapMessage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.10);
  color: var(--sc-color-primary);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.CareGapMessage-title {
  margin: 0 0 12px;
  color: var(--sc-color-heading);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.CareGapMessage-lead {
  margin: 0 0 10px;
  color: var(--sc-color-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.CareGapMessage-copy {
  margin: 0 0 12px;
  color: var(--sc-color-muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 500;
}

.CareGapMessage-copy strong {
  color: var(--sc-color-heading);
  font-weight: 800;
}

.CareGapMessage-source {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.06);
  color: #697386;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: 1px;
}

.CareGapMessage-plan {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.CareGapMessage-planTitle {
  margin: 0 0 6px;
  color: var(--sc-color-heading);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.CareGapMessage-price {
  color: var(--sc-color-primary);
}

.CareGapMessage-planText {
  margin: 0 0 8px;
  color: var(--sc-color-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.CareGapMessage-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.CareGapMessage-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--sc-color-border-subtle);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sc-color-heading);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.ButtonContainer.ApplePayPlaceholderRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.ApplePayPlaceholderButton,
.LinkPayPlaceholderButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  height: 55px !important;
  min-height: 55px !important;
  max-height: 55px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--sc-radius-button) !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease !important;
}

.ApplePayPlaceholderButton {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.LinkPayPlaceholderButton {
  background: #00d66f !important;
  color: #011e0f !important;
  box-shadow: none !important;
}

.ApplePayPlaceholderButton:hover,
.LinkPayPlaceholderButton:hover {
  filter: brightness(0.97) !important;
}

.ApplePayPlaceholderButton:active,
.LinkPayPlaceholderButton:active,
.ApplePayPlaceholderButton.is-clicked,
.LinkPayPlaceholderButton.is-clicked {
  transform: translateY(1px) scale(0.985) !important;
  filter: brightness(0.92) !important;
}

.ApplePayPlaceholderButton:focus-visible,
.LinkPayPlaceholderButton:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.45) !important;
  outline-offset: 2px !important;
}

.ApplePayPlaceholderLogo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 19px !important;
  height: 23px !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.ApplePayPlaceholderLogoSvg {
  display: block !important;
  width: 19px !important;
  height: 23px !important;
  fill: currentColor !important;
}

.ApplePayPlaceholderText {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

.LinkPayPlaceholderText,
.LinkPayPlaceholderLogoText {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

.App-Payment {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
}

.App-Payment > .CheckoutPaymentForm,
.CheckoutPaymentForm,
.PaymentForm-form,
.PaymentForm-form > div,
.PaymentForm-form > div > div {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.PaymentForm-confirmPaymentContainer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 22px 0 30px !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 20 !important;
  clear: both !important;
  overflow: visible !important;
}

.ConfirmPayment,
.ConfirmPaymentButton--SubmitButton,
.SubmitButton {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 48px !important;
  position: relative !important;
  overflow: visible !important;
}

.ConfirmPayment,
.ConfirmPaymentButton--SubmitButton {
  height: auto !important;
  z-index: 21 !important;
}

.SubmitButton {
  height: 48px !important;
  line-height: 48px !important;
  z-index: 22 !important;
  overflow: hidden !important;
}

.SubmitButton-Text {
  line-height: 48px !important;
}

.App-Payment > .App-Footer,
.CheckoutPaymentForm + .App-Footer,
.App-Footer {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.App-Footer .JOHDf_Xc__Footer,
.JOHDf_Xc__Footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 14px !important;
  width: 100% !important;
  min-height: 24px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.GYut03iO__PoweredByStripe,
._0wMrLFZH__FooterLink {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.GYut03iO__PoweredByStripe::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 640px) {
  .TopKeyInsight {
    width: calc(100% - 32px);
    margin: 12px auto 16px;
    padding: 17px 16px 15px;
    border-radius: var(--sc-radius-card-mobile);
  }

  .TopKeyInsight-title {
    font-size: 24px;
    line-height: 1.12;
  }

  .TopKeyInsight-text {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .TopKeyInsight-imageWrap {
    margin-top: 13px;
    padding: 6px 6px 0;
    border-radius: 13px;
  }

  .CareGapMessage {
    width: calc(100% - 32px);
    margin: 16px auto 20px;
    padding: 19px 18px 18px;
    border-radius: var(--sc-radius-card-mobile);
  }

  .CareGapMessage-title {
    font-size: 21px;
  }

  .CareGapMessage-copy,
  .CareGapMessage-planText {
    font-size: 13.5px;
  }

  .ButtonContainer.ApplePayPlaceholderRow {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .ApplePayPlaceholderButton,
  .LinkPayPlaceholderButton {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 10px !important;
  }

  .ApplePayPlaceholderLogo,
  .ApplePayPlaceholderLogoSvg {
    width: 18px !important;
    height: 22px !important;
  }

  .ApplePayPlaceholderText {
    font-size: 17px !important;
  }

  .LinkPayPlaceholderText,
  .LinkPayPlaceholderLogoText {
    font-size: 14px !important;
  }

  .PaymentForm-confirmPaymentContainer {
    min-height: 48px !important;
    margin: 22px 0 30px !important;
  }

  .App-Payment > .App-Footer,
  .CheckoutPaymentForm + .App-Footer,
  .App-Footer {
    min-height: 48px !important;
    padding-top: 12px !important;
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .App-Footer .JOHDf_Xc__Footer,
  .JOHDf_Xc__Footer {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 12px !important;
    min-height: 22px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

.CheckoutPaymentForm > div:first-child,
.PaymentRequestOrHeader,
.ButtonAndDividerContainer {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.OrderSummaryColumn {
  display: none !important;
}

.PcPaymentPriceBlock {
  display: block !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.PcPaymentPriceBlock-amount {
  display: inline-block !important;
  color: #1a1f36 !important;
  font-family: var(--sc-font-system) !important;
  font-size: 26px !important;
  line-height: 32px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .PcPaymentPriceBlock {
    margin-bottom: 16px !important;
  }

  .PcPaymentPriceBlock-amount {
    font-size: 24px !important;
    line-height: 30px !important;
  }
}
