/* Mobile product purchase controls and compact product details. */
@media (max-width: 767px) {
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout > tbody {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout > tbody > tr {
    display: grid !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout th,
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    align-self: center !important;
    white-space: nowrap !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout th {
    text-align: left !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout td {
    text-align: right !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form table.detail-parameters.shipping-options-layout tr.shipping-options-row td {
    grid-column: 1 / -1 !important;
    text-align: left !important;
  }

  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 104px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    width: 100% !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block > .p-final-price-wrapper {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block > .add-to-cart {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    flex: 0 0 104px !important;
    width: 104px !important;
    height: 52px !important;
    max-width: 104px !important;
    margin: 0 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 29px minmax(0, 1fr) 29px !important;
    grid-template-rows: 50px !important;
    flex: 0 0 104px !important;
    box-sizing: border-box !important;
    width: 104px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity > label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity input.amount {
    display: block !important;
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity .decrease,
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity .increase {
    position: static !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 29px !important;
    min-width: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity .decrease {
    grid-column: 1 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block .quantity .increase {
    grid-column: 3 !important;
  }
  body.type-detail.ps-pdp-v1 #product-detail-form .p-to-cart-block > .add-to-cart-button {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    white-space: normal !important;
  }
}

@media (max-width: 767px) {
  html body.type-detail.ps-pdp-v1 #product-detail-form #product-detail-form table.detail-parameters.shipping-options-layout > tbody > tr > th::after {
    right: 12px !important;
    width: calc(100% - 12px) !important;
  }
}

@media (max-width: 360px) {
  body.type-detail.ps-pdp-v1 #product-detail-form .p-final-price-wrapper > .price-standard,
  body.type-detail.ps-pdp-v1 #product-detail-form .p-final-price-wrapper > .price-save {
    font-size: 23px !important;
    line-height: 1.15 !important;
  }
}
