/* DentifyLab Scan Partners – MOBILE ONLY V2
   Scope: <section id="content" class="page-content page-stores">
   PrestaShop / ETS-Soft store.tpl – no JS or markup changes.
*/
@media screen and (max-width: 767px) {
  /* Keep page within viewport despite theme's row / container rules */
  body #content.page-stores {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0 22px !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  body #content.page-stores, body #content.page-stores * {
    box-sizing: border-box;
  }

  /* First direct div: intro card */
  body #content.page-stores > div:first-of-type {
    background: linear-gradient(120deg, #edf7f0 0%, #ffffff 100%) !important;
    border: 1px solid #deebe2 !important;
    border-radius: 20px !important;
    padding: 22px 20px !important;
    margin: 0 0 16px !important;
    box-shadow: 0 10px 28px rgba(12, 53, 35, .045) !important;
  }
  body #content.page-stores > div:first-of-type h2 {
    color: #123d2e !important;
    font-size: 24px !important;
    line-height: 1.26 !important;
    font-weight: 800 !important;
    letter-spacing: -.5px !important;
    margin: 0 0 10px !important;
  }
  body #content.page-stores > div:first-of-type p {
    color: #64786e !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
  }

  /* Second direct div: location filter card – override inline styles */
  body #content.page-stores > div:nth-of-type(2) {
    background: #fff !important;
    border: 1px solid #e0eae3 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin: 0 0 18px !important;
    box-shadow: 0 12px 28px rgba(12, 53, 35, .06) !important;
  }
  body #content.page-stores > div:nth-of-type(2) > .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
    gap: 15px !important;
  }
  body #content.page-stores > div:nth-of-type(2) > .row > .col-md-6 {
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body #content.page-stores > div:nth-of-type(2) label {
    display: block !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #174634 !important;
    margin: 0 0 9px !important;
    line-height: 1.4 !important;
  }
  body #content.page-stores select#dentify-state,
  body #content.page-stores select#dentify-city {
    display: block !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 13px !important;
    font: inherit !important;
    font-size: 15px !important;
    line-height: normal !important;
    color: #1d382d !important;
    background-color: #fbfdfb !important;
    border: 1px solid #d4e2d8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline-offset: 2px !important;
    text-align: left !important;
  }
  body #content.page-stores select#dentify-state:focus,
  body #content.page-stores select#dentify-city:focus {
    border-color: #188654 !important;
    box-shadow: 0 0 0 3px rgba(24,134,84,.12) !important;
  }
  body #content.page-stores select#dentify-city:disabled {
    background-color: #f3f6f3 !important;
    color: #81918a !important;
    opacity: 1 !important;
  }

  /* Preserve the result logic and JS-managed display; styling only */
  body #content.page-stores #partner-message {
    display: block;
    width: 100% !important;
    padding: 21px 18px !important;
    margin: 0 0 26px !important;
    background: #f1f8f3 !important;
    color: #526f60 !important;
    border: 1px dashed #c9dfd1 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    text-align: center !important;
  }
  /* JS sets inline display:none after results; respect it */
  body #content.page-stores #partner-message[style*="display: none"],
  body #content.page-stores #partner-message[style*="display:none"] {
    display: none !important;
  }
  body #content.page-stores #partner-list {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  body #content.page-stores #partner-list > .dentify-partner {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body #content.page-stores #partner-list > .dentify-partner > div {
    border: 1px solid #dce8df !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 9px 22px rgba(12,53,35,.045) !important;
  }
}
