/* Keep the existing Klaviyo welcome photo above its quiz on narrow screens.
   Scope to this form; Klaviyo continues to own the content and signup flow. */
@media (max-width: 767px) {
  .sam-concept form[data-testid="klaviyo-form-TfdbMi"]:not(:has(.sam-signup-photo)) > div > div:has(> div > img) {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: clamp(180px, 56vw, 260px) !important;
    border: 0 !important;
  }

  .sam-concept form[data-testid="klaviyo-form-TfdbMi"] > div > div:has(> div > img) > div {
    height: 100% !important;
  }

  .sam-concept form[data-testid="klaviyo-form-TfdbMi"] > div > div > div > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .sam-concept form[data-testid="klaviyo-form-TfdbMi"] > div > div:has(.sam-quiz-intro) {
    min-height: 0 !important;
    padding-block: 24px 32px !important;
    justify-content: flex-start !important;
  }
}
