/* =========================================================
   PlacEVision Company Profile Mobile Layout Fix R2
   Scope: /company/ only
   Purpose: prevent long labels and values from overlapping
========================================================= */

@media (max-width: 900px) {
  .company-page,
  .company-page main {
    max-width: 100%;
    overflow-x: clip;
  }

  .company-page .company-profile .wrap {
    width: min(100% - 32px, 1180px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .company-page .company-profile__grid {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .company-page .company-profile .section-copy {
    margin-bottom: 30px !important;
  }

  .company-page .company-table {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
    border: 1px solid rgba(180, 140, 90, .25) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(45, 31, 18, .07) !important;
  }

  .company-page .company-table dl {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .company-page .company-table dt,
  .company-page .company-table dd {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .company-page .company-table dt {
    padding: 18px 18px 7px !important;
    border: 0 !important;
    background: #fffaf4 !important;
    color: #b27f3e !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: .035em !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .company-page .company-table dd {
    padding: 0 18px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #eee3d6 !important;
    background: #fff !important;
    color: #17130f !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.85 !important;
    letter-spacing: .005em !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .company-page .company-table dd:last-child {
    border-bottom: 0 !important;
  }

  .company-page .company-table dd a {
    display: inline !important;
    color: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .company-page .company-table dd a[x-apple-data-detectors],
  .company-page .company-table dd span[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
  }

  .company-page .company-table dd small {
    display: block !important;
    margin-top: 7px !important;
    color: #716b64 !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
  }

  .company-page.has-mobile-action-bar {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 390px) {
  .company-page .company-profile .wrap {
    width: calc(100% - 28px) !important;
  }

  .company-page .company-table dl {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .company-page .company-table dt {
    padding: 17px 16px 6px !important;
    font-size: 13px !important;
  }

  .company-page .company-table dd {
    padding: 0 16px 17px !important;
    font-size: 14px !important;
    line-height: 1.82 !important;
  }
}
