
/* On Teddy v2.7 — mobile typography/card scale fixes + sofa word marquee */
@media (max-width: 767px) {
  /* Hero heading: compact and readable on 360–430px phones. */
  body.on-teddy-theme .on-teddy-front-page .elementor-element-d05d1b4 h1.elementor-heading-title {
    max-width: 330px !important;
    font-size: clamp(38px, 10.7vw, 46px) !important;
    line-height: .99 !important;
    letter-spacing: -.025em !important;
  }

  /* Style-card section title and card dimensions. */
  body.on-teddy-theme .on-teddy-front-page .elementor-element-1df0bc5 > .elementor-container::before {
    font-size: clamp(29px, 8.2vw, 35px) !important;
    line-height: 1.01 !important;
    margin-bottom: 20px !important;
  }
  body.on-teddy-theme .on-teddy-front-page .elementor-element-1df0bc5 > .elementor-container {
    gap: 12px !important;
    padding: 90px 12px 14px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-34fa67c,.elementor-element-b0ec533,.elementor-element-e3c45f4,.elementor-element-6fbf947) {
    width: calc(50% - 6px) !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-52ae5c9,.elementor-element-2a366f9,.elementor-element-cb818d4,.elementor-element-33e8620) .elementor-image-box-wrapper {
    min-height: 338px !important;
    padding: 12px 10px 16px !important;
    border-radius: 22px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-52ae5c9,.elementor-element-2a366f9,.elementor-element-cb818d4,.elementor-element-33e8620) .elementor-image-box-img {
    height: 142px !important;
    margin-bottom: 12px !important;
    border-radius: 90px 90px 5px 5px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-52ae5c9,.elementor-element-2a366f9,.elementor-element-cb818d4,.elementor-element-33e8620) .elementor-image-box-title {
    font-size: clamp(18px, 5vw, 21px) !important;
    line-height: 1.02 !important;
    margin-bottom: 8px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-52ae5c9,.elementor-element-2a366f9,.elementor-element-cb818d4,.elementor-element-33e8620) .elementor-image-box-description {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-52ae5c9,.elementor-element-2a366f9,.elementor-element-cb818d4,.elementor-element-33e8620) .elementor-image-box-content::after {
    margin-top: 12px !important;
    font-size: 10px !important;
  }

  /* Correct the benefits intro: heading and paragraph are separate and normal sized. */
  body.on-teddy-theme .on-teddy-front-page .elementor-element-dd79d77::after {
    content: "Thoughtful Benefits,\A Timeless Comfort" !important;
    white-space: pre-line !important;
    max-width: 330px !important;
    margin: 0 auto 14px !important;
    font-size: clamp(30px, 8.2vw, 36px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.025em !important;
  }
  body.on-teddy-theme .on-teddy-front-page .elementor-element-dd79d77 > .elementor-container::before {
    content: "Every sofa is more than furniture—it's a commitment to quality, care, and lasting comfort." !important;
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 330px !important;
    margin: 0 auto 20px !important;
    color: var(--otm-muted) !important;
    font: 500 13px/1.6 Inter, Arial, sans-serif !important;
    text-align: center !important;
  }

  /* Benefits cards slightly smaller and denser. */
  body.on-teddy-theme .on-teddy-front-page .elementor-element-dd79d77 > .elementor-container {
    gap: 12px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-8fae889,.elementor-element-a8c3628,.elementor-element-3fce726,.elementor-element-381595d,.elementor-element-600e56d,.elementor-element-6b8590d) {
    width: calc(50% - 6px) !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon-box-wrapper {
    min-height: 206px !important;
    padding: 17px 10px 15px !important;
    border-radius: 21px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon-box-icon {
    width: 74px !important;
    height: 74px !important;
    margin-bottom: 12px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon {
    font-size: 29px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon-box-title {
    font-size: clamp(16px, 4.7vw, 19px) !important;
    line-height: 1.06 !important;
    margin-bottom: 10px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon-box-title::after {
    width: 48px !important;
    height: 2px !important;
    margin-top: 10px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-1f5c70c,.elementor-element-a1fb655,.elementor-element-e2adedb,.elementor-element-e7bef59,.elementor-element-ed9353e,.elementor-element-cbca89b) .elementor-icon-box-description {
    font-size: 10.5px !important;
    line-height: 1.42 !important;
  }

  /* Testimonials heading/cards: normal mobile scale. */
  body.on-teddy-theme .on-teddy-front-page .elementor-element-94043be h2.elementor-heading-title {
    font-size: clamp(34px, 9.2vw, 42px) !important;
    line-height: 1.02 !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-b6c1b5c,.elementor-element-b55d753,.elementor-element-ad2f426) .elementor-widget-container {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-b6c1b5c,.elementor-element-b55d753,.elementor-element-ad2f426) blockquote {
    margin: 14px 0 18px !important;
    font-size: 17px !important;
    line-height: 1.42 !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-b6c1b5c,.elementor-element-b55d753,.elementor-element-ad2f426) .on-teddy-review-stars {
    font-size: 15px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-b6c1b5c,.elementor-element-b55d753,.elementor-element-ad2f426) .on-teddy-review-author > span {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    font-size: 15px !important;
  }
  body.on-teddy-theme .on-teddy-front-page :is(.elementor-element-b6c1b5c,.elementor-element-b55d753,.elementor-element-ad2f426) .on-teddy-review-author p {
    font-size: 13px !important;
  }

  /* Infinite sofa-word marquee inserted between inspiration and benefits. */
  .on-teddy-sofa-marquee-v27 {
    width: 100% !important;
    overflow: hidden !important;
    margin: 2px 0 22px !important;
    border-top: 1px solid #eadfd4 !important;
    border-bottom: 1px solid #eadfd4 !important;
    background: #fffaf5 !important;
  }
  .on-teddy-sofa-marquee-v27__track {
    display: flex !important;
    width: max-content !important;
    animation: on-teddy-marquee-v27 22s linear infinite !important;
    will-change: transform !important;
  }
  .on-teddy-sofa-marquee-v27__group {
    display: flex !important;
    align-items: center !important;
    flex: none !important;
    padding: 13px 0 !important;
  }
  .on-teddy-sofa-marquee-v27__word {
    display: inline-flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding-right: 20px !important;
    color: #493a32 !important;
    font: 700 13px/1 Inter, Arial, sans-serif !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
  .on-teddy-sofa-marquee-v27__word::after {
    content: "•" !important;
    color: #d56b08 !important;
    font-size: 15px !important;
  }
  @keyframes on-teddy-marquee-v27 {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-50%,0,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .on-teddy-sofa-marquee-v27__track { animation-duration: 60s !important; }
  }
}
