/* table style for the selected options shown in the cart / checkout */
.woocommerce dl.variation,
.woocommerce-page dl.variation {
  display: grid;
  grid-template-columns: 45% 55%;
  border: 1px solid #e5e5e5;
  border-bottom: none;
  margin: 8px 0;
  width: 100%;
}
.woocommerce dl.variation dt,
.woocommerce-page dl.variation dt,
.woocommerce dl.variation dd,
.woocommerce-page dl.variation dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
}
.woocommerce dl.variation dt,
.woocommerce-page dl.variation dt {
  background: #f7f7f7;
  font-weight: 600;
  border-right: 1px solid #e5e5e5;
}
.woocommerce dl.variation dd p,
.woocommerce-page dl.variation dd p {
  margin: 0;
  font-size: 13px;
}
.woocommerce dl.variation dd img,
.woocommerce-page dl.variation dd img {
  max-width: 45px;
  height: auto;
}

/* horizontal prescription tables in the cart */
.woocommerce dl.variation dt.variation-Prescription,
.woocommerce-page dl.variation dt.variation-Prescription,
.woocommerce dl.variation dd.variation-Prescription,
.woocommerce-page dl.variation dd.variation-Prescription {
  grid-column: 1 / -1;
}
.woocommerce dl.variation dt.variation-Prescription,
.woocommerce-page dl.variation dt.variation-Prescription {
  border-right: none;
}
.woocommerce dl.variation dd.variation-Prescription,
.woocommerce-page dl.variation dd.variation-Prescription {
  padding: 8px;
}
.ox-rx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  table-layout: fixed;
}
.ox-rx-table:last-child {margin-bottom: 0;}
.ox-rx-table td {
  border: 1px solid #e5e5e5;
  padding: 8px 4px;
  text-align: center;
  font-size: 13px;
  word-break: break-word;
  background: #fff;
}
.ox-rx-table tr:first-child td {background: #f7f7f7; font-weight: 600;}
.ox-rx-table td:first-child {background: #f7f7f7; text-align: left; padding-left: 8px;}
.ox-rx-table .ox-rx-sub {color: #888; font-weight: normal; font-size: 11px;}

/* keep the prescription tables as real tables on mobile:
   responsive themes turn cart table cells into blocks (display:block + :before labels),
   which must not apply to the nested .ox-rx-table */
table .ox-rx-table,
.woocommerce .ox-rx-table,
.woocommerce-page .ox-rx-table {
  display: table !important;
}
.ox-rx-table tbody {display: table-row-group !important;}
.ox-rx-table tr {display: table-row !important;}
.ox-rx-table td {
  display: table-cell !important;
  text-align: center !important;
  float: none !important;
  width: auto !important;
}
.ox-rx-table td:first-child {text-align: left !important;}
.ox-rx-table td::before,
.ox-rx-table td::after {
  content: none !important;
  display: none !important;
}
@media only screen and (max-width: 480px) {
  .ox-rx-table td {padding: 6px 2px; font-size: 11px;}
  .ox-rx-table td:first-child {padding-left: 4px;}
  .ox-rx-table .ox-rx-sub {display: none;}
}
