/*
 * The "Prices" table of an item with a price list (worker/templates.js renderPriceTable): on the
 * product / service page, right under the short description, and in the Quick View pop-up.
 * Also: related items two per row on tablets (product page).
 * Loaded after the theme's stylesheets on the product page and on /catalog/ (Quick View).
 * Theme values: accent #eb4a62, headings Montserrat, text Work Sans.
 */

.pcp-prices {
  max-width: 520px;
  margin: 20px 0 26px;
  scroll-margin-top: 120px;
}

.pcp-prices .pcp-prices-title {
  margin: 0 0 10px;
  padding: 0;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-size: 15px !important; /* the theme sets h2 sizes with !important below 800px */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.pcp-prices .pcp-prices-title::after,
.pcp-prices .pcp-prices-title::before {
  content: none;
  display: none;
}

.pcp-prices .pcp-prices-table {
  width: 100%;
  margin: 0;
  border: 1px solid #ebebeb;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-family: "Work Sans", sans-serif;
  table-layout: auto;
}

.pcp-prices .pcp-prices-table th,
.pcp-prices .pcp-prices-table td {
  padding: 11px 16px;
  border: 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  background: transparent;
  color: #444;
  font-size: 15px;
  line-height: 1.45;
  vertical-align: middle;
}

.pcp-prices .pcp-prices-table tr:first-child th,
.pcp-prices .pcp-prices-table tr:first-child td {
  border-top: 0 !important;
}

.pcp-prices .pcp-prices-table tr:nth-child(even) th,
.pcp-prices .pcp-prices-table tr:nth-child(even) td {
  background: #fafafa;
}

.pcp-prices .pcp-prices-table th {
  width: auto;
  font-weight: 400;
  text-align: left;
  overflow-wrap: anywhere;
}

.pcp-prices .pcp-prices-table td {
  width: 1%;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.pcp-prices .pcp-prices-more {
  display: inline-block;
  margin-top: 8px;
  color: #eb4a62;
  font-size: 14px;
  font-weight: 600;
}

.pcp-prices .pcp-prices-more:hover {
  color: #d0364f;
  text-decoration: underline;
}

/* Quick View pop-up */
.quickview-wrapper .pcp-prices {
  margin: 14px 0 20px;
}

.quickview-wrapper .pcp-prices .pcp-prices-table th,
.quickview-wrapper .pcp-prices .pcp-prices-table td {
  padding: 8px 14px;
  font-size: 14px;
}

/* Related items: two per row on tablets (the theme shows one full-width item per row below 800px). */
@media (min-width: 480px) and (max-width: 768px) {
  .woocommerce section.related.products ul.products li.product {
    width: 48% !important;
  }
}

@media (max-width: 767px) {
  .pcp-prices {
    max-width: none;
    scroll-margin-top: 20px;
  }

  .pcp-prices .pcp-prices-table th,
  .pcp-prices .pcp-prices-table td {
    padding: 10px 12px;
  }

  .pcp-prices .pcp-prices-table td {
    white-space: normal;
    width: 30%;
  }
}
