/* ============================================================
   SANO | Patient Banner — CSS panel
   ============================================================ */

.sano-pb {
  container-type: inline-size;
  container-name: sano-pb;

  /* MOTION TOKENS */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-hover: 240ms;

  /* TYPOGRAPHY */
  --pb-font: inherit;

  /* CARD PADDING */
  --pb-pad-y: 20px;
  --pb-pad-x: 24px;

  /* FALLBACKS */
  --pb-bg: #F6F7F8;
  --pb-accent: #F4511E;
  --pb-title-color: #0B1B2B;
  --pb-sub-color: #5A6472;
  --pb-border: rgba(11, 27, 43, .06);
  --pb-hover-scale: 1.01;
}

.sano-pb,
.sano-pb * {
  box-sizing: border-box;
}

.sano-pb__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: var(--pb-max, 1140px);
  margin-inline: auto;
  padding: var(--pb-pad-y, 20px) var(--pb-pad-x, 24px);
  background: var(--pb-bg);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius, 16px);
  transition: transform var(--dur-hover) var(--ease-out);
}

.sano-pb__inner.is-clickable {
  cursor: pointer;
}

/* HOVER */

@media (hover: hover) and (pointer: fine) {
  .sano-pb__inner:hover {
    transform: scale(var(--pb-hover-scale, 1.01));
  }

  .sano-pb__inner:hover .sano-pb__btn {
    background: color-mix(in srgb, var(--pb-accent) 88%, #000);
    border-color: color-mix(in srgb, var(--pb-accent) 88%, #000);
  }
}

/* ICON */

.sano-pb__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: var(--pb-icon, 28px);
}

.sano-pb__icon img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TEXT */

.sano-pb__text {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-family: var(--pb-font);
}

.sano-pb__title {
  display: block;
  color: var(--pb-title-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.sano-pb__sub {
  display: block;
  color: var(--pb-sub-color);
  font-size: 16px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* NORMAL BUTTON FALLBACK */

.sano-pb__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 11px 22px;
  border: 1px solid var(--pb-accent);
  border-radius: 999px;
  background: var(--pb-accent);
  color: #fff;
  font-family: var(--pb-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease;
}

.sano-pb__btn:active {
  transform: scale(.99);
}

.sano-pb__btn:focus-visible {
  outline: 2px solid var(--pb-accent);
  outline-offset: 3px;
}

/* NATIVE HUBSPOT CTA */

.sano-pb__cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.sano-pb__cta .hs-cta-embed {
  max-width: 100%;
}

.sano-pb__cta img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* STRETCHED LINK

   This applies only to the normal link fallback. A native HubSpot
   CTA controls its own clickable area and cannot be stretched
   outside its generated markup.
*/

.sano-pb__inner.is-clickable .sano-pb__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--pb-radius, 16px);
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .sano-pb {
    --dur-hover: 1ms;
  }

  .sano-pb__inner:hover {
    transform: none;
  }
}

/* FALLBACK WITHOUT CONTAINER QUERIES */

@supports not (container-type: inline-size) {
  @media (max-width: 760px) {
    .sano-pb__inner {
      flex-direction: column;
      align-items: center;
      gap: 16px;
      text-align: center;
    }

    .sano-pb__text {
      flex: 0 0 auto;
      align-items: center;
    }

    .sano-pb__btn,
    .sano-pb__cta {
      width: 100%;
      margin-top: 4px;
    }

    .sano-pb__cta {
      justify-content: center;
    }
  }
}