/* Prox4me Quantity Prices - the product page box (works with Luma and Breeze themes) */
.p4qp { --p4qp-ink: #101824; --p4qp-muted: #5b6472; --p4qp-line: #e3e7ee; --p4qp-soft: #f5f7fa;
    --p4qp-brand: #101824; --p4qp-brand-soft: #eef2f8; --p4qp-ok: #0f7a3a; --p4qp-ok-soft: #e7f6ec; --p4qp-bad: #b42318;
    --p4qp-head: var(--p4-head, 'Outfit', system-ui, sans-serif);
    margin: 18px 0 22px; color: var(--p4qp-ink); max-width: 560px; }
.p4qp *, .p4qp *::before, .p4qp *::after { box-sizing: border-box; }
/* "from £x each" in the price card (template from.phtml): it replaces the theme's own price there */
.p4qp-from { margin: 0; font-size: 15px; color: #5b6472; }
.p4qp-from b { font: 800 30px/1 var(--p4-head, 'Outfit', system-ui, sans-serif); color: #101824; letter-spacing: -.01em; }
.p4qp-from small { display: block; font-size: 13px; margin-top: 6px; }
.product-info-price:has(> .p4qp-from) > .price-box { display: none; }
.p4qp-label { font: 700 14px/1.3 var(--p4qp-head); margin: 20px 0 10px; color: var(--p4qp-ink); }
.p4qp-label span { font-family: inherit; font-weight: 400; color: var(--p4qp-muted); }
.p4qp-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.p4qp-sw { position: relative; width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--p4qp-line); background: var(--p4qp-soft) center / cover no-repeat; cursor: pointer;
    transition: box-shadow .15s, transform .15s; }
.p4qp-sw:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #9aa3b2; }
.p4qp-sw.text { width: auto; min-width: 38px; border-radius: 19px; padding: 0 13px; font-size: 13px; color: var(--p4qp-ink); }
.p4qp-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--p4qp-ink); }
.p4qp-sw:focus-visible { outline: 2px solid var(--p4qp-ink); outline-offset: 3px; }
.p4qp-sw.added::after { content: ""; position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--p4qp-ok); border: 2px solid #fff; }
/* the price table */
.p4qp-tiers { margin-top: 20px; border: 1px solid var(--p4qp-line); border-radius: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 10px 24px -20px rgba(16, 24, 36, .45); }
[data-role="row-picker"]:empty + .p4qp-tiers { margin-top: 0; }   /* no colour circles above the table */
.p4qp-tiers h2 { margin: 0; padding: 11px 16px; background: var(--p4qp-ink); color: #fff;
    display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline;
    font: 800 16px/1.2 var(--p4qp-head); letter-spacing: .01em; }
.p4qp-tiers h2 span { font: 500 12px/1.3 var(--p4qp-head); color: rgba(255, 255, 255, .72); }
.p4qp .p4qp-tiers table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
/* three columns: quantity | price each | discount - the same padding left and right (beats the theme's own table cells) */
.p4qp .p4qp-tiers th, .p4qp .p4qp-tiers td { padding: 6px 20px; line-height: 1.3; vertical-align: middle; border: 0; }
.p4qp .p4qp-tiers th { padding-top: 7px; padding-bottom: 7px; background: var(--p4qp-soft); border-bottom: 1px solid var(--p4qp-line);
    font: 700 11.5px/1.2 var(--p4qp-head); letter-spacing: .08em; text-transform: uppercase; color: var(--p4qp-muted); text-align: left; }
.p4qp .p4qp-tiers td { border-top: 1px solid var(--p4qp-line); color: var(--p4qp-ink); }
.p4qp .p4qp-tiers tbody tr:first-child td { border-top: 0; }
.p4qp .p4qp-tiers tbody tr:nth-child(even) td { background: #fafbfc; }
.p4qp .p4qp-tiers td:first-child { font: 700 14px/1.2 var(--p4qp-head); white-space: nowrap; }
.p4qp .p4qp-tiers th:nth-child(2), .p4qp .p4qp-tiers td:nth-child(2) { text-align: right; }
.p4qp .p4qp-tiers td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.p4qp .p4qp-tiers th:last-child, .p4qp .p4qp-tiers td:last-child { text-align: right; width: 1%; white-space: nowrap; }
.p4qp-off { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--p4qp-ok-soft);
    color: var(--p4qp-ok); font: 700 11.5px/1.2 var(--p4qp-head); white-space: nowrap; }
.p4qp-none { color: #b3bac6; }
.p4qp .p4qp-tiers tbody tr.on td { background: var(--p4qp-brand-soft); }
.p4qp .p4qp-tiers tbody tr.on td:first-child { box-shadow: inset 4px 0 0 var(--p4qp-ink); }
.p4qp .p4qp-tiers tbody tr.on td:nth-child(2) { font-weight: 800; }
.p4qp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* the size boxes */
.p4qp-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 4px; }
.p4qp-sizes { border-collapse: separate; border-spacing: 8px 0; margin: 0 0 0 -8px; width: auto; }
.p4qp-sizes th { padding: 0 0 6px; text-align: center; background: none; border: 0;
    font: 700 12px/1 var(--p4qp-head); letter-spacing: .06em; text-transform: uppercase; color: var(--p4qp-muted); }
.p4qp-sizes td { text-align: center; vertical-align: top; padding: 0; border: 0; }
.p4qp-sizes input { width: 62px; height: 50px; margin: 0; padding: 0 4px; text-align: center; font: 700 17px/1 var(--p4qp-head);
    color: var(--p4qp-ink); border: 2px solid #b9c1cd; border-radius: 12px; background: #fff; -moz-appearance: textfield;
    transition: border-color .15s, box-shadow .15s, background .15s; }
.p4qp-sizes input::placeholder { color: #b3bac6; font-weight: 500; }
.p4qp-sizes input::-webkit-outer-spin-button, .p4qp-sizes input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p4qp-sizes input:hover { border-color: #9aa3b2; }
.p4qp-sizes input:focus { outline: none; border-color: var(--p4qp-ink); box-shadow: 0 0 0 3px rgba(16, 24, 36, .12); }
.p4qp-sizes input.has { border-color: var(--p4qp-ink); background: var(--p4qp-brand-soft); }
.p4qp-sizes input:disabled { background: var(--p4qp-soft); border: 2px dashed #c9cfd8; color: #aaa; }
.p4qp-note { display: block; max-width: 70px; margin: 5px auto 0; min-height: 14px; font: 600 11px/1.25 var(--p4qp-head);
    color: var(--p4qp-muted); white-space: normal; }
.p4qp-note.ok { color: var(--p4qp-ok); }
.p4qp-note.low { color: #b25e00; font-weight: 700; }
.p4qp-note.out { color: #9aa3b2; }
.p4qp-note.p4qp-extra { margin-top: 2px; min-height: 0; font-weight: 500; }
/* total, saving and add to cart */
.p4qp-summary { margin-top: 16px; border-radius: 14px; background: var(--p4qp-soft); border: 1px solid var(--p4qp-line); padding: 16px; }
.p4qp-lines { font-size: 13px; color: var(--p4qp-muted); margin: 0 0 10px; padding: 0; list-style: none; }
.p4qp-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; margin: 0; }
.p4qp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px;
    padding-top: 10px; border-top: 1px solid var(--p4qp-line); }
.p4qp-lines:empty + .p4qp-total { padding-top: 0; border-top: 0; }
.p4qp-total b { font: 800 24px/1 var(--p4qp-head); }
.p4qp-save { color: var(--p4qp-ok); font-weight: 700; font-size: 14px; margin-top: 6px; }
.p4qp-nudge { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #9aa3b2; font-size: 14px; }
.p4qp-hint { margin: 0; font-size: 14px; color: var(--p4qp-muted); }
.p4qp .p4qp-cart { display: block; margin-top: 14px; width: 100%; min-height: 52px; border-radius: 12px;
    font: 800 16px/1 var(--p4qp-head); letter-spacing: .01em; }
.p4qp .p4qp-cart:disabled { opacity: .5; cursor: not-allowed; }
.p4qp-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.p4qp-msg.ok { background: var(--p4qp-ok-soft); color: var(--p4qp-ok); }
.p4qp-msg.bad { background: #fdecea; color: var(--p4qp-bad); }
.p4qp-msg a { color: inherit; text-decoration: underline; }
.p4qp-err { font-weight: 400; margin-top: 4px; }
.p4qp-mix { font-size: 12.5px; color: var(--p4qp-muted); margin: 10px 0 0; }
@media (max-width: 480px) {
    .p4qp .p4qp-tiers th, .p4qp .p4qp-tiers td { padding-left: 14px; padding-right: 14px; }
    .p4qp-sizes input { width: 54px; height: 46px; }
}
/* the size boxes take over from the shop's own colour/size choice and add-to-cart button */
.p4qp-grid-on .product-add-form { display: none !important; }
