/* Scoped to checkout and account history; prices and order logic unchanged. */
@media (max-width: 1100px) {
  #quickcheckoutconfirm .quickcheckoutleft,
  #quickcheckoutconfirm .quickcheckoutright,
  #quickcheckoutconfirm .quickcheckoutleft.extra-width {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .pcr-checkout-wrap, #quickcheckoutconfirm, #quickcheckout-disable,
  #quickcheckoutconfirm .quickcheckout-content { min-width: 0; max-width: 100%; box-sizing: border-box; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready,
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody {
    display: block; box-sizing: border-box; width: 100%; border: 0;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > thead,
  #account-order table.pcr-mobile-ready > thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-item {
    display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px 12px;
    padding: 14px; margin-bottom: 10px; border: 1px solid #ddd; background: #fff;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-item > td {
    display: block; box-sizing: border-box; width: auto; min-width: 0 !important;
    padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.image { grid-column: 1; grid-row: 1; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.image img { max-width: 72px; width: 100%; height: auto; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.name { grid-column: 2; grid-row: 1; font-weight: 600; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.quantity,
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.price1,
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.total {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td:is(.quantity,.price1,.total)::before {
    content: attr(data-pcr-label); color: #526054; font-size: .9em; font-weight: 600; text-align: left;
  }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.total { border-top: 1px solid #e5e5e5; padding-top: 9px; font-weight: 700; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .quantity .input-group { display: flex; width: 165px; max-width: 66%; margin: 0; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .quantity .input-group > input { width: 1%; min-width: 0; flex: 1 1 auto; height: 42px; text-align: center; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .quantity .input-group-btn { display: flex; width: auto; flex: 0 0 auto; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .quantity .input-group-btn > button { width: 42px !important; height: 42px !important; padding: 0; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-total { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5e5e5; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-total > td { display: block; width: auto; min-width: 0; padding: 10px 12px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-total > td:first-child { text-align: left; }
  #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-total > td:last-child { text-align: right; }
  #quickcheckoutconfirm #terms .quickcheckout-content { text-align: left; }
  #quickcheckoutconfirm #terms .terms label { display: block; position: relative; padding-left: 28px; text-align: left; line-height: 1.5; }
  #quickcheckoutconfirm #terms .terms label input[type=checkbox] { position: absolute; left: 0; top: .2em; margin: 0; }
  #quickcheckoutconfirm :is(#button-payment-method,#button-confirm,#button-save) {
    box-sizing: border-box; width: 100%; max-width: 100%; height: auto !important; min-height: 52px !important;
    padding: 14px 16px !important; line-height: 1.35 !important; white-space: normal !important; overflow: visible;
  }
  html[data-theme="dark"] #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-item { background: #252c26; border-color: #465247; }
  html[data-theme="dark"] #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td:is(.quantity,.price1,.total)::before { color: #c8d4c7; }
  html[data-theme="dark"] #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready .pcr-mobile-item > td.total,
  html[data-theme="dark"] #quickcheckoutconfirm .quickcheckout-cart.pcr-mobile-ready > tbody > tr.pcr-mobile-total { border-color: #465247; }
}
@media (max-width: 767px) {
  /* Keep both cart actions in DOM order and out of the fixed sharing rail. */
  #checkout-cart #content > .buttons.clearfix {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    box-sizing: border-box; clear: both; width: 100%;
  }
  body:has(> .pcr-social-rail) #checkout-cart #content > .buttons.clearfix { padding-left: 56px; }
  #checkout-cart #content > .buttons.clearfix::before,
  #checkout-cart #content > .buttons.clearfix::after { display: none; }
  #checkout-cart #content > .buttons.clearfix > :is(.pull-left,.pull-right) {
    float: none !important; width: 100%; min-width: 0;
  }
  #checkout-cart #content > .buttons.clearfix > :is(.pull-left,.pull-right) > a {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: 100%; min-height: 48px; height: auto; padding: 12px 14px;
    line-height: 1.35; white-space: normal; text-align: center; gap: 9px;
  }
  #checkout-cart #content > .buttons.clearfix > :is(.pull-left,.pull-right) > a::before {
    content: ''; display: block; flex: 0 0 19px; width: 19px; height: 19px;
    background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  }
  #checkout-cart #content > .buttons.clearfix > .pull-left > a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.42-1.41L7.83 13H20z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.42-1.41L7.83 13H20z'/%3E%3C/svg%3E");
  }
  #checkout-cart #content > .buttons.clearfix > .pull-right > a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h2l2.5 10.3a2 2 0 0 0 1.94 1.53h8.7a2 2 0 0 0 1.91-1.4L22 7H7.06l-.5-2H3V3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h2l2.5 10.3a2 2 0 0 0 1.94 1.53h8.7a2 2 0 0 0 1.91-1.4L22 7H7.06l-.5-2H3V3z'/%3E%3C/svg%3E");
  }
  #account-order .table-responsive:has(> table.pcr-mobile-ready) { overflow: visible; border: 0; }
  #account-order table.pcr-mobile-ready, #account-order table.pcr-mobile-ready > tbody { display: block; width: 100%; border: 0; }
  #account-order table.pcr-mobile-ready > tbody > tr.pcr-mobile-item { display: block; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid #ddd; }
  #account-order table.pcr-mobile-ready > tbody > tr.pcr-mobile-item > td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  #account-order table.pcr-mobile-ready > tbody > tr.pcr-mobile-item > td:not(:last-child)::before { content: attr(data-pcr-label); flex: 0 0 42%; text-align: left; font-weight: 600; }
  #account-order table.pcr-mobile-ready > tbody > tr.pcr-mobile-item > td:last-child { justify-content: flex-end; }
  html[data-theme="dark"] #account-order table.pcr-mobile-ready > tbody > tr.pcr-mobile-item { background: #252c26; border-color: #465247; }
}
