/* Keep short Japanese phrases together at natural break points. */
.mobile-phrase {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .product-showcase .product-title-row,
  .pd-main .pd-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45em 0.8em;
    width: 100%;
    max-width: 100%;
  }

  .product-showcase .product-title-row {
    justify-content: center;
  }

  .product-showcase .product-title-row h2,
  .pd-main .pd-title-row h1 {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-showcase .product-title-row .origin-badge,
  .pd-main .pd-title-row .pd-stamp,
  .product-link__visual .product-link__badge,
  .letter-product .letter-product__badge {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    display: grid;
    flex: 0 0 auto;
    place-content: center;
    justify-items: center;
    gap: 0.12em;
    width: max-content;
    min-width: min(100%, 5.5em);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0.8em;
    border-radius: 50%;
    transform: none;
    text-align: center;
  }

  :is(.origin-badge, .pd-stamp, .product-link__badge, .letter-product__badge)::before {
    border-radius: inherit;
    pointer-events: none;
  }

  :is(.origin-badge, .pd-stamp, .product-link__badge, .letter-product__badge) > :is(span, strong),
  .letter-product .letter-product__badge > :is(span, strong) {
    line-height: 1.2;
  }

  :is(.origin-badge, .pd-stamp, .product-link__badge, .letter-product__badge) > strong {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-link__visual .product-link__badge,
  .letter-product .letter-product__badge {
    margin: 0.75em 0 0 auto;
  }

  .product-showcase .product-intro > p,
  .pd-about__copy > :is(h2, .pd-eyebrow),
  .product-link__copy > p,
  .letter-product__contents > p,
  .letter-footer__text {
    text-wrap: balance;
  }

  html body br.order-copy-break {
    display: none;
  }

  .letter-body .letter-phrase {
    white-space: normal;
    display: inline-block;
    max-width: 100%;
  }

  .footer > .floating-cta,
  .footer > .floating-cta.is-controlled:not(.is-visible) {
    position: static;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 1.5em auto 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    translate: none;
  }

  main > .motion-toggle:not([hidden]) {
    position: relative;
    inset: auto;
    display: block;
    width: fit-content;
    max-width: calc(100% - 40px);
    min-height: 44px;
    margin: 16px 20px 16px auto;
  }
}
