/* RESEARCH X Mobile Product Cards v1.2.0 */
/* Home and Catalog only. This file is NEVER loaded on Quality & CoA or individual products. */
@media (max-width: 767px) {
  body.rxmg-page-home .rxmg-v12-original-hidden,
  body.rxmg-page-catalog .rxmg-v12-original-hidden { display: none !important; }

  body.rxmg-page-home .rxmg-v12-grid,
  body.rxmg-page-catalog .rxmg-v12-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
    align-content: start !important;
    justify-content: stretch !important;
    gap: 12px !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    float: none !important;
    clear: both !important;
    margin: 10px 0 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body .rxmg-v12-grid *,
  body .rxmg-v12-grid *::before,
  body .rxmg-v12-grid *::after { box-sizing: border-box !important; }
  body .rxmg-v12-grid .rxmg-v12-card {
    display: flex !important;
    position: relative !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid #D9E3F2 !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: #101828 !important;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .035) !important;
    overflow: hidden !important;
  }
  body .rxmg-v12-grid .rxmg-v12-photo {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #F3F6FA !important;
    padding: 3px !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
  body .rxmg-v12-grid .rxmg-v12-photo img {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    opacity: 1 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  body .rxmg-v12-grid .rxmg-v12-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding: 9px 2px 2px !important;
    margin: 0 !important;
  }
  body .rxmg-v12-grid .rxmg-v12-category {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    color: #1646FF !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .045em !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
  }
  body .rxmg-v12-grid .rxmg-v12-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    min-height: 0 !important;
    max-height: 54px !important;
    overflow: hidden !important;
    color: #101828 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: -.015em !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  body .rxmg-v12-grid .rxmg-v12-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 3px 5px !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #101828 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  body .rxmg-v12-grid .rxmg-v12-price :is(.amount, .woocommerce-Price-amount, bdi, ins) {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    background: none !important;
    text-decoration: none !important;
  }
  body .rxmg-v12-grid .rxmg-v12-price del {
    order: 2 !important;
    opacity: .65 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    white-space: normal !important;
  }
  body .rxmg-v12-grid .rxmg-v12-price ins { order: 1 !important; }
  body .rxmg-v12-grid .rxmg-v12-view {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 9px 0 0 !important;
    padding: 9px 5px !important;
    border-radius: 9px !important;
    border: 0 !important;
    background: #1646FF !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
  }
  body .rxmg-v12-grid .rxmg-v12-view:focus-visible,
  body .rxmg-v12-grid .rxmg-v12-title:focus-visible,
  body .rxmg-v12-grid .rxmg-v12-photo:focus-visible { outline: 2px solid #B7F000 !important; outline-offset: 2px !important; }

  /* Home retains the RESEARCH X Deep Navy editorial treatment. */
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-card {
    background: #192538 !important;
    border-color: #354769 !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-photo { background: #fff !important; }
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-title,
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-price { color: #fff !important; }
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-category { color: #B7F000 !important; }
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-view { background: #B7F000 !important; color: #101828 !important; }
  body.rxmg-page-home .rxmg-v12-grid .rxmg-v12-price del { color: #B4C0D4 !important; }
}
