/* Vesta MS660 × ES locale override.
 * Loaded only after product-ms660.css and language-es.css.
 * Keep every selector inside .ms660-product-page.
 */

.ms660-product-page {
  --product-locale-scope: ms660-es;
}

html[lang^="es"] .ms660-product-page .single-product-topline .product-top-actions .btn { display: block; max-width: 100%; }
html[lang^="es"] .ms660-product-page .single-product-topline .product-top-actions .vesta-english-document-label { display: inline; white-space: normal; }
html[lang^="es"] .ms660-product-page :is(.single-product-copy > .tag, .single-product-hero .tag, .product-fit-summary .tag, .application-cards-section .tag, .product-documents-section .tag, .product-final-cta .tag) { font-size: 11px; line-height: 1.3; white-space: normal; }
html[lang^="es"] .ms660-product-page .product-decision-strip .decision-grid > div :is(strong, span) { min-width: 0; overflow-wrap: anywhere; }
html[lang^="es"] .ms660-product-page .recommended-products a { white-space: normal; }
html[lang^="es"] .ms660-product-page .hero-actions .btn { white-space: normal; max-width: 100%; }

@media (max-width: 640px) {
  html[lang^="es"] .ms660-product-page .compact-doc-list .doc-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 78px);
    gap: 8px;
  }

  html[lang^="es"] .ms660-product-page .compact-doc-list .doc-row b {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 861px) {
  html[lang^="es"] .ms660-product-page .single-product-topline { flex-wrap: wrap; }
  html[lang^="es"] .ms660-product-page .single-product-topline h1 { flex: 1 1 100%; max-width: none; }
  html[lang^="es"] .ms660-product-page .single-product-topline .product-top-actions { flex: 1 1 100%; width: 100%; flex-wrap: wrap; }
  html[lang^="es"] .ms660-product-page .single-product-topline .product-top-actions .btn { flex: 0 0 auto; min-width: 180px; }
}
