/* Veridian Health 2.6.16
   Email-only store information, single-row mobile product tabs, and corrected
   mobile typography for legal/information pages. */

/* Store information: the template outputs only the email contact. */
.vh-email-only-store-info .vh-store-email-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.vh-email-only-store-info .vh-store-email-block .icon {
  flex: 0 0 auto;
  margin: 0;
}

.vh-email-only-store-info .vh-store-email-block .data {
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  word-spacing: normal;
}

.vh-email-only-store-info .vh-store-email-block .data a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 767.98px) {
  /* Product page: keep Description, Product Details and Attachments on one row. */
  body#product .tabs .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body#product .tabs .nav-tabs .nav-item {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  body#product .tabs .nav-tabs .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 3px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  body#product .tabs .tab-content {
    padding-top: 18px !important;
  }

  /* Classic's CMS rule uses text-align:justify. On a narrow phone this creates
     the large gaps visible in Legal Notice and other information pages. These
     overrides also beat inline justify styles inserted by the CMS editor. */
  body#cms .page-content.page-cms,
  body#cms .page-content.page-cms p,
  body#cms .page-content.page-cms div,
  body#cms .page-content.page-cms span,
  body#cms .page-content.page-cms li,
  body#cms .page-content.page-cms td,
  body#cms .page-content.page-cms th,
  body#cms .page-content.page-cms address,
  body#cms .page-content.page-cms blockquote {
    text-align: left !important;
    text-justify: auto !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  body#cms .page-content.page-cms h1,
  body#cms .page-content.page-cms h2,
  body#cms .page-content.page-cms h3,
  body#cms .page-content.page-cms h4,
  body#cms .page-content.page-cms h5,
  body#cms .page-content.page-cms h6 {
    text-align: center !important;
    text-justify: auto !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  body#cms .page-content.page-cms p,
  body#cms .page-content.page-cms li {
    line-height: 1.65 !important;
  }

  body#cms .page-content.page-cms p {
    margin-bottom: 1rem !important;
  }

  body#cms .page-content.page-cms ul,
  body#cms .page-content.page-cms ol {
    padding-left: 1.25rem !important;
    text-align: left !important;
    word-spacing: normal !important;
  }

  /* Contact Us uses a separate controller rather than the CMS controller. */
  body#contact .contact-rich,
  body#contact .contact-rich *,
  body#contact .contact-form,
  body#contact .contact-form * {
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-justify: auto !important;
  }

  body#contact .contact-rich .block,
  body#contact .contact-rich .data,
  body#contact .contact-form p,
  body#contact .contact-form label {
    text-align: left !important;
  }
}

@media (max-width: 359.98px) {
  body#product .tabs .nav-tabs .nav-link {
    padding-left: 2px !important;
    padding-right: 2px !important;
    font-size: 9.5px !important;
    letter-spacing: -0.01em !important;
  }
}
