.swu-product-page .product__images,
.swu-product-page .product__details {
  min-width: 0;
}
.swu-product-page h1.product_name {
  margin: 0 0 12px;
  font-size: var(--swu-product-title-size);
  line-height: 1.4;
  overflow-wrap: break-word;
}
.swu-product-collection {
  display: inline-block;
  margin-bottom: 8px;
}
.swu-product-page .product-block--vendor p {
  margin: 5px 0 8px;
}
.swu-product-page .product_section .modal_price {
  align-items: baseline;
  font-size: var(--swu-product-price-size);
  font-weight: 400;
  margin: 0 0 14px;
  padding-bottom: 0;
}
.swu-product-currency {
  font-size: .65em;
  padding-inline-start: .25em;
}
.swu-product-page .product_section .product_form {
  max-width: 100%;
  margin: 0;
}
.swu-product-page .kit-select__native {
  width: 100%;
  min-height: 46px;
}
.swu-product-page .purchase-details {
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 15px;
}
.swu-product-page .quantity-box-true .purchase-details {
  --swu-purchase-control-height: 44px;
  display: grid;
  grid-template-columns: 44px 52px 44px minmax(0, 1fr);
  grid-template-areas:
    "recipient recipient recipient recipient"
    "label label label label"
    "minus quantity plus buttons";
  column-gap: 0;
  align-items: start;
  row-gap: 0;
}
.swu-product-page .purchase-details > .recipient-disclosure {
  grid-area: recipient;
}
.swu-product-page .product-quantity-box.purchase-details__quantity {
  display: contents;
}
.swu-product-page .purchase-details__quantity > label {
  grid-area: label;
  justify-self: start;
}
.swu-product-page .purchase-details__quantity .swu-quantity-step {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--swu-purchase-control-height);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--swu-product-rule);
  background: var(--swu-product-surface);
  color: var(--swu-product-button);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.swu-product-page .swu-quantity-step[data-func="minus"] {
  grid-area: minus;
  border-inline-end: 0;
  border-radius: 3px 0 0 3px;
}
.swu-product-page .swu-quantity-step[data-func="plus"] {
  grid-area: plus;
  border-inline-start: 0;
  border-radius: 0 3px 3px 0;
}
.swu-product-page .purchase-details__quantity .swu-quantity-step:is(:hover, :focus-visible) {
  background: var(--swu-product-hover);
  color: var(--swu-product-hover-text);
}
.swu-product-page .purchase-details__quantity .swu-quantity-step:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
.swu-product-page .purchase-details__quantity input.quantity {
  grid-area: quantity;
  box-sizing: border-box;
  width: 100%;
  height: var(--swu-purchase-control-height);
  margin: 0;
  padding: 4px;
  appearance: textfield;
  border: 1px solid var(--swu-product-rule);
  border-radius: 0;
  text-align: center;
}
.swu-product-page .purchase-details__quantity input.quantity::-webkit-inner-spin-button,
.swu-product-page .purchase-details__quantity input.quantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.swu-product-page .purchase-details__buttons {
  flex: 1 1 230px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding-top: 0;
}
.swu-product-page .purchase-details__quantity ~ .purchase-details__buttons {
  grid-area: buttons;
  align-self: start;
  margin: 0;
  margin-inline-start: 8px;
  padding: 0;
}
.swu-product-page .purchase-details__quantity ~ .purchase-details__buttons .add_to_cart {
  box-sizing: border-box;
  height: var(--swu-purchase-control-height);
  margin: 0;
}
.swu-product-page .purchase-details__buttons .add_to_cart,
.swu-product-page .purchase-details__buttons .shopify-payment-button {
  flex: 1 1 140px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
.swu-product-page .purchase-details__buttons .add_to_cart {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--swu-product-button);
  background: var(--swu-product-surface);
  border: 1px solid var(--swu-product-button);
  border-radius: 4px;
}
.swu-product-page .purchase-details__buttons .add_to_cart:not(:disabled):not(.disabled) {
  color: var(--swu-product-hover-text);
  background: var(--swu-product-button);
}
.swu-product-page .purchase-details__buttons .add_to_cart .checkmark path {
  stroke: currentColor;
}
.swu-product-page .purchase-details__buttons .add_to_cart:not(:disabled):not(.disabled):is(:hover, :focus-visible, :active) {
  color: var(--swu-product-hover-text);
  background: var(--swu-product-hover);
  border-color: var(--swu-product-hover);
}
.swu-product-page .product-block--tabs,
.swu-product-page .product-block--description {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--swu-product-rule);
}
.swu-product-page .product__details .rte,
.swu-product-page .product__details .easytabs-content-holder {
  max-width: 100%;
  overflow-wrap: break-word;
}
.swu-product-page .product__details .rte table,
.swu-product-page .product__details .easytabs-content-holder table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.swu-product-page .gallery-thumbnails--bottom [data-thumbnails-slider-enabled="false"] ~ .product_gallery_nav:not(.flickity-enabled) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.swu-product-page .gallery-thumbnails--bottom [data-thumbnails-slider-enabled="false"] ~ .product_gallery_nav:not(.flickity-enabled) .gallery-cell {
  width: 100%;
  margin: 0;
  padding: 0;
}
.swu-product-page .product_gallery_nav .gallery-cell .image-element__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 100%;
}
.swu-product-page .product_gallery_nav .gallery-cell img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 798px) {
  .swu-product-page h1.product_name {
    font-size: min(var(--swu-product-title-size), 1.5rem);
  }
  .swu-product-page .gallery-thumbnails--bottom [data-thumbnails-slider-enabled="false"] ~ .product_gallery_nav:not(.flickity-enabled) {
    gap: 8px;
  }
  .swu-product-page .product__details { margin-top: 8px; }
}
@media (max-width: 480px) {
  .swu-product-page .purchase-details__buttons .add_to_cart,
  .swu-product-page .purchase-details__buttons .shopify-payment-button { flex-basis: 100%; }
}
.swu-product-page .purchase-details__buttons .shopify-payment-button {
  height: auto;
  min-height: 44px;
}

.swu-product-page .purchase-details__buttons button.shopify-payment-button__more-options {
  position: static;
  transform: none;
  margin: 0 auto;
  padding: 10px 0;
}

/* Product description typography and table sizing, matched to Mobilia-2027. */
.swu-product-page :is(
  .product-block--description .description > .rte,
  .description .easytabs-content-item:is([data-et-handle="tabs-description"], :first-child):not(.swu-review-panel) > .easytabs-content-holder,
  .js-product-section--product > .sixteen.columns.rte
) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  font: 400 15px/1.8 Asap, sans-serif;
  color: #404040;

  & p {
    margin: 0 0 15px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  & :is(h1, h2, h3, h4, h5, h6) {
    color: #867465;
    font-family: "Noto Serif", serif;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  & h1 { font-size: 26px; line-height: 1.5; margin: 0 0 20px; }
  & h2 { font-size: 26px; line-height: 27px; margin: 0 0 .75em; }
  & h3 { font-size: 20px; line-height: 35px; margin: 0 0 15px; }
  & h4 {
    font-size: 20px;
    line-height: 32px;
    margin: 15px 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #d5c3aa;
  }
  & :is(h5, h6) { font-size: 18px; line-height: 27px; padding-bottom: 1em; }

  --swu-table-border: color-mix(in srgb, var(--swu-product-button) 20%, var(--swu-product-surface));
  --swu-table-stripe: color-mix(in srgb, var(--swu-product-button) 4%, var(--swu-product-surface));

  & table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--swu-table-border);
    border-radius: 4px;
    margin: 0 0 26px;
    font: inherit;
    line-height: 1.55;
    color: inherit;
    background: var(--swu-product-surface);
  }
  & table:has(> thead > tr:first-child > :last-child:nth-child(-n + 3)):not(:has([colspan], [rowspan])) {
    table-layout: fixed;
  }
  & :is(th, td) {
    box-sizing: border-box;
    padding: 12px 14px !important;
    border: 0;
    border-bottom: 1px solid var(--swu-table-border);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    vertical-align: top;
    text-align: left;
  }
  & :is(th, td):not(:last-child) {
    border-inline-end: 1px solid var(--swu-table-border);
  }
  & thead th {
    font-weight: 700;
    background-color: var(--swu-product-hover) !important;
    color: var(--swu-product-hover-text);
    border-bottom: 0;
    vertical-align: middle;
  }
  & thead th:first-child { border-start-start-radius: 3px; }
  & thead th:last-child { border-start-end-radius: 3px; }
  & thead th:first-child:nth-last-child(2) { width: 34%; }
  & thead th:first-child:nth-last-child(3) { width: 34%; }
  & thead th:nth-child(2):nth-last-child(2) { width: 39%; }
  & thead th:nth-child(3):last-child { width: 27%; }
  & tbody :is(td, th) { background-color: var(--swu-product-surface); }
  & tbody tr:nth-child(even) > :is(td, th) { background-color: var(--swu-table-stripe); }
  & tbody tr > :first-child {
    font-weight: 600;
    color: var(--swu-product-hover);
  }
  & tbody tr:last-child > :is(td, th) { border-bottom: 0; }
  & tbody tr:last-child > :first-child { border-end-start-radius: 3px; }
  & tbody tr:last-child > :last-child { border-end-end-radius: 3px; }
  & :is(th, td)[align="right"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  & :is(th, td) p:last-child { margin-bottom: 0; }

  @media (max-width: 798px) {
    & table { font-size: 14px; }
    & :is(th, td) { padding: 10px !important; }
    & thead th:first-child:nth-last-child(2) { width: 42%; }
  }
  @media (max-width: 480px) {
    & :is(h1, h2, h3, h4, h5, h6) { font-size: 1.5em; }
  }
}

.swu-product-page .product__images > .cbb-frequently-bought-container.cbb-product-page-view {
  box-sizing: border-box;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* The bundle app copies the product button but assigns a separate inline label color. */
.swu-product-page .cbb-product-page-view .cbb-frequently-bought-add-button {
  background-color: var(--swu-product-button) !important;
  border-color: var(--swu-product-button) !important;
  color: var(--swu-product-hover-text) !important;
}
.swu-product-page .cbb-product-page-view .cbb-frequently-bought-add-button > .translatable {
  color: inherit !important;
}
.swu-product-page .cbb-product-page-view .cbb-frequently-bought-add-button:enabled:is(:hover, :focus-visible, :active) {
  background-color: var(--swu-product-hover) !important;
  border-color: var(--swu-product-hover) !important;
  opacity: 1 !important;
}
