/*
 * P10-SITE-1042
 * Mobile product-detail CTA hierarchy and sticky RFQ density refinement.
 * Scope: product detail pages at 320-720px only.
 */
@media (max-width: 720px) {
  body.product-page-premium
    .product-detail-hero
    .hero-actions
    > .button-whatsapp {
    border-color: rgba(15, 127, 109, 0.3);
    background: #f2faf7;
    color: #0b6f5e;
    box-shadow: none;
  }

  body.product-page-premium
    .product-detail-hero
    .hero-actions
    > .button-whatsapp:hover,
  body.product-page-premium
    .product-detail-hero
    .hero-actions
    > .button-whatsapp:focus-visible {
    border-color: rgba(11, 111, 94, 0.48);
    background: #e8f6f1;
    color: #075f51;
    box-shadow: 0 8px 20px rgba(11, 111, 94, 0.1);
  }

  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta {
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 64px;
    padding: 8px 8px 8px 14px;
    border-color: rgba(46, 126, 174, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 38px rgba(20, 28, 26, 0.14);
    transition:
      opacity 180ms ease,
      transform 220ms ease,
      visibility 180ms ease;
  }

  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta
    span {
    display: -webkit-box;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    color: #23363e;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta
    .button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
  }

  body.product-page-premium.p10-site-1042-sticky-ready:not(
      .p10-site-1012-gallery-cta-guard
    )
    .premium-sticky-cta {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 22px));
  }

  body.product-page-premium.p10-site-1042-sticky-ready.p10-site-1042-sticky-visible:not(
      .p10-site-1012-gallery-cta-guard
    )
    .premium-sticky-cta {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 359px) {
  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta {
    padding-left: 12px;
  }

  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta
    .button {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.product-page-premium:not(.p10-site-1012-gallery-cta-guard)
    .premium-sticky-cta {
    transition: none;
  }
}
