.dhxpo{margin:22px 0;padding:18px;border:1px solid #e1e7ed;border-radius:16px;background:#fff}.dhxpo-set+.dhxpo-set{margin-top:18px}.dhxpo-set-title{margin:0 0 14px}.dhxpo-field{margin:0 0 16px}.dhxpo-label{display:block;font-weight:700;margin-bottom:6px}.dhxpo-description{font-size:.92em;color:#66717d;margin:0 0 8px}.dhxpo input[type=text],.dhxpo input[type=number],.dhxpo input[type=color],.dhxpo input[type=file],.dhxpo select,.dhxpo textarea{width:100%;max-width:100%;box-sizing:border-box}.dhxpo textarea{min-height:100px}.dhxpo-choices{display:grid;gap:10px}.dhxpo-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dfe5eb;border-radius:12px;cursor:pointer}.dhxpo-choice.is-image{align-items:flex-start}.dhxpo-choice.is-image img{width:72px;height:72px;object-fit:cover;border-radius:8px}.dhxpo-summary{margin-top:14px;padding-top:12px;border-top:1px solid #e7ebef}.dhxpo .required{color:#b42318}@media(min-width:700px){.dhxpo-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dhxpo-choice-copy{display:flex;flex-direction:column;gap:2px}.dhxpo-choice-description{font-size:12px;line-height:1.4;color:#66717d}.dhxpo-field[hidden]{display:none!important}

.dhxpo-choices.has-images{grid-template-columns:1fr}.dhxpo-choice.is-image{align-items:center;gap:14px;min-height:92px}.dhxpo-choice.is-image .dhxpo-choice-image{width:64px;height:64px;flex:0 0 64px;object-fit:contain;border-radius:999px;background:#fff;border:1px solid #e5e7eb;padding:4px}.dhxpo-choice:has(input:checked){border-color:#173a5b;box-shadow:0 0 0 2px rgba(23,58,91,.12);background:#f8fbfd}.dhxpo-choice input[type=radio]{margin-top:0}.dhxpo-choice-label{font-weight:700}.dhxpo-choice-description{display:block}.dhxpo-choice.is-image .dhxpo-choice-copy{gap:4px}@media(min-width:700px){.dhxpo-choices.has-images{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dhxpo-choice.is-image .dhxpo-choice-image{display:block!important;width:58px!important;height:58px!important;flex:0 0 58px!important;object-fit:contain!important;border-radius:12px!important;background:#f7f4ee!important;border:1px solid #e1e7ed!important;padding:5px!important}.dhxpo-choice.is-image{padding:12px 14px!important}.dhxpo-choices.has-images .dhxpo-choice-copy{min-width:0}.dhxpo-choices.has-images .dhxpo-choice-label{font-size:1rem}.dhxpo-choices.has-images .dhxpo-choice-description{font-size:.86rem;line-height:1.35}@media(max-width:699px){.dhxpo-choices.has-images{grid-template-columns:1fr!important}.dhxpo-choice.is-image{grid-template-columns:auto 58px 1fr;gap:12px}.dhxpo-choice.is-image input[type=radio]{flex:0 0 auto}}

.dhxpo-colour-control{display:grid;gap:7px}.dhxpo-colour-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:8px;align-items:center}.dhxpo-colour-swatch{display:block;width:58px;height:46px;border:1px solid #d7dee5;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer}.dhxpo-colour-picker{width:100%!important;height:100%!important;min-height:46px;border:0!important;padding:0!important;background:transparent!important;cursor:pointer}.dhxpo-colour-picker::-webkit-color-swatch-wrapper{padding:3px}.dhxpo-colour-picker::-webkit-color-swatch{border:0;border-radius:7px}.dhxpo-colour-picker::-moz-color-swatch{border:0;border-radius:7px}.dhxpo-colour-hex{height:46px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-transform:uppercase}.dhxpo-colour-hex.is-invalid{border-color:#b42318!important;box-shadow:0 0 0 1px #b42318!important}.dhxpo-colour-clear{height:46px;padding:0 14px;border:1px solid #d7dee5;border-radius:10px;background:#fff;color:#173a5b;font-weight:700;cursor:pointer}.dhxpo-colour-clear:hover{background:#f7f9fb}.dhxpo-colour-help{display:block;color:#66717d;font-size:.8rem;line-height:1.35}.dhxpo-colour-control:not(.has-value) .dhxpo-colour-swatch{opacity:.72}.dhxpo-colour-control:not(.has-value) .dhxpo-colour-swatch:after{content:'';display:block;position:relative;width:70px;height:2px;background:#b42318;transform:rotate(-38deg);top:-25px;left:-6px;pointer-events:none}@media(max-width:520px){.dhxpo-colour-row{grid-template-columns:52px minmax(0,1fr)}.dhxpo-colour-swatch{width:52px}.dhxpo-colour-clear{grid-column:1/-1;width:100%}}

.dhxpo-summary{display:grid;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e7ebef}.dhxpo-price-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.dhxpo-price-row span{color:#5f6b76}.dhxpo-price-row strong{white-space:nowrap}.dhxpo-price-row-options strong{font-size:1rem}.dhxpo-price-row-total{padding-top:4px}.dhxpo-price-row-total span,.dhxpo-price-row-total strong{font-size:1.15rem;font-weight:800;color:#123453}.dhxpo-price-breakdown{font-size:.86rem;line-height:1.45;color:#6b7280;text-align:right}.dhxpo-price-breakdown[hidden]{display:none!important}

.dhxpo-qr{display:grid;gap:14px}.dhxpo-qr-fields>[data-qr-panel]{display:grid;gap:8px;margin-top:12px}.dhxpo-qr-fields>[data-qr-panel][hidden]{display:none!important}.dhxpo-qr-fields label,.dhxpo-qr-options label{font-weight:600;font-size:.92rem}.dhxpo-qr-grid{grid-template-columns:1fr}.dhxpo-qr-check{display:flex!important;align-items:center;gap:8px}.dhxpo-qr-check input{width:auto!important}.dhxpo-qr-preview-wrap{display:grid;grid-template-columns:160px 1fr;gap:16px;align-items:start;padding:14px;border:1px solid #e1e7ed;border-radius:12px;background:#fafcfd}.dhxpo-qr-preview{position:relative;display:inline-block;line-height:0}.dhxpo-qr-preview svg{width:160px;height:160px;display:block;background:#fff}.dhxpo-qr-logo-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:18%;height:18%;min-width:30px;min-height:30px;max-width:44px;max-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none}.dhxpo-qr-logo-preview{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px}.dhxpo-qr-copy pre{white-space:pre-wrap;word-break:break-word;max-height:160px;overflow:auto;font-size:11px;background:#fff;padding:8px;border:1px solid #e5e7eb;border-radius:8px}.dhxpo-qr-copy small{color:#66717d}@media(min-width:700px){.dhxpo-qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.dhxpo-qr-preview-wrap{grid-template-columns:1fr}.dhxpo-qr-preview{display:block;width:max-content;margin:auto}.dhxpo-qr-preview svg{width:180px;height:180px;margin:auto}}

.dhxpo-qr-colours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.dhxpo-qr-colour{display:grid;gap:6px}.dhxpo-qr-colour-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;align-items:center}.dhxpo-qr-colour-row input[type=color]{width:52px!important;height:44px!important;padding:2px!important;border:1px solid #d7dee5!important;border-radius:10px!important;background:#fff!important}.dhxpo-qr-colour-row input[type=text]{height:44px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-transform:uppercase}.dhxpo-qr-colour-row input[type=text].is-invalid{border-color:#b42318!important;box-shadow:0 0 0 1px #b42318!important}.dhxpo-qr-colour-help{display:block;margin-top:7px;color:#66717d;font-size:.8rem;line-height:1.35}.dhxpo-qr-colour-help.is-warning{color:#b42318;font-weight:600}@media(max-width:560px){.dhxpo-qr-colours{grid-template-columns:1fr}}

.dhxpo-qr-copy pre[data-empty="1"]:empty::before{content:"Enter QR details above to preview the encoded data.";color:#7a8490;font-family:inherit;font-style:italic}

/* v0.4 visual layout engine */
.dhxpo-set{display:grid;gap:16px}.dhxpo-section{box-sizing:border-box}.dhxpo-section[hidden]{display:none!important}.dhxpo-section-card{padding:16px;border:1px solid #e1e7ed;border-radius:14px;background:#fbfcfd}.dhxpo-section-title{margin:0 0 6px;font-size:1.08rem;font-weight:800;color:#172f50}.dhxpo-section-description{margin:0 0 12px;color:#66717d}.dhxpo-section-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 14px}.dhxpo-field{grid-column:span 12}.dhxpo-field[data-width="75"]{grid-column:span 9}.dhxpo-field[data-width="66"]{grid-column:span 8}.dhxpo-field[data-width="50"]{grid-column:span 6}.dhxpo-field[data-width="33"]{grid-column:span 4}.dhxpo-field[data-width="25"]{grid-column:span 3}.dhxpo-section-accordion{border:1px solid #e1e7ed;border-radius:12px;padding:0 14px}.dhxpo-section-accordion>summary{cursor:pointer;padding:14px 0;list-style:none}.dhxpo-section-accordion>summary::-webkit-details-marker{display:none}.dhxpo-section-accordion>summary:after{content:'+';float:right}.dhxpo-section-accordion[open]>summary:after{content:'−'}.dhxpo-section-accordion .dhxpo-section-fields{padding-bottom:14px}.dhxpo input[type=email],.dhxpo input[type=url],.dhxpo input[type=tel],.dhxpo input[type=date],.dhxpo input[type=time],.dhxpo input[type=datetime-local],.dhxpo input[type=range]{width:100%;max-width:100%;box-sizing:border-box}.dhxpo select[multiple]{min-height:120px}.dhxpo-range-wrap{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.dhxpo-range-wrap output{min-width:54px;text-align:center;font-weight:700;padding:7px 9px;border:1px solid #dfe5eb;border-radius:8px;background:#f8fafc}.dhxpo-file-help{display:block;margin-top:5px;color:#66717d}.dhxpo-checkbox-group .dhxpo-choice input[type=checkbox]{flex:0 0 auto}.dhxpo-field input:invalid,.dhxpo-field select:invalid,.dhxpo-field textarea:invalid{box-shadow:none}@media(max-width:700px){.dhxpo-section-fields{display:block}.dhxpo-field{width:100%!important}.dhxpo-field[data-width]{grid-column:auto}}
/* v0.5 choice layout controls */
.dhxpo-field[data-columns-desktop] .dhxpo-choices{display:grid;grid-template-columns:repeat(var(--dhxpo-cols-desktop,2),minmax(0,1fr));gap:10px}
.dhxpo-field[data-display-style="text"] .dhxpo-choice-image{display:none!important}
.dhxpo-field[data-display-style="compact"] .dhxpo-choice{padding:8px 10px;min-height:auto}
.dhxpo-field[data-display-style="image"] .dhxpo-choice{align-items:center;text-align:center;flex-direction:column}
.dhxpo-field[data-display-style="image"] .dhxpo-choice-image{width:100%;max-width:150px;aspect-ratio:1/1;object-fit:cover}
@media(max-width:900px){.dhxpo-field[data-columns-tablet] .dhxpo-choices{grid-template-columns:repeat(var(--dhxpo-cols-tablet,2),minmax(0,1fr))}}
@media(max-width:560px){.dhxpo-field[data-columns-mobile] .dhxpo-choices{grid-template-columns:repeat(var(--dhxpo-cols-mobile,1),minmax(0,1fr))}}

/* v0.5.4 EPO parity: compact accessible field tooltips */
.dhxpo-tooltip{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:5px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:700;line-height:1;cursor:help;vertical-align:middle;position:relative}
.dhxpo-tooltip:focus{outline:2px solid currentColor;outline-offset:2px}
.dhxpo-tooltip:hover:after,.dhxpo-tooltip:focus:after{content:attr(data-tooltip);position:absolute;z-index:1000;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(320px,80vw);padding:8px 10px;border-radius:6px;background:#1f2937;color:#fff;font-size:12px;font-weight:400;line-height:1.4;white-space:normal;box-shadow:0 5px 20px rgba(0,0,0,.2)}
.dhxpo-qr-colour-entry-help{display:block;margin-top:6px;color:#66717d;font-size:.82rem;line-height:1.4}.dhxpo-qr-colour-row input[data-qr-foreground-hex],.dhxpo-qr-colour-row input[data-qr-background-hex]{min-width:0}
.dhxpo-qr-colour-row{grid-template-columns:minmax(0,1fr) 48px!important}.dhxpo-qr-colour-preview{display:block;width:48px;height:44px;border:1px solid #cfd8e3;border-radius:9px;background:#000}.dhxpo-qr-palette{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.dhxpo-qr-palette-swatch{flex:0 0 38px;width:38px;height:38px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--dhxpo-swatch);box-shadow:0 0 0 1px #b7c1cc;cursor:pointer;touch-action:manipulation}.dhxpo-qr-palette-swatch:focus-visible{outline:3px solid #173a5b;outline-offset:3px}.dhxpo-qr-palette-swatch:active{transform:scale(.93)}
.dhxpo-qr-visual-picker{display:grid;gap:10px;margin-top:5px}.dhxpo-qr-color-pad{position:relative;width:100%;height:132px;overflow:hidden;border:1px solid #c5ced8;border-radius:10px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--dhxpo-hue,#f00));cursor:crosshair;touch-action:none}.dhxpo-qr-color-pad:focus-visible{outline:3px solid #173a5b;outline-offset:3px}.dhxpo-qr-color-marker{position:absolute;width:20px;height:20px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.7);transform:translate(-50%,-50%);pointer-events:none}.dhxpo-qr-hue-label{display:grid;gap:4px;font-size:.78rem!important;color:#5f6b76}.dhxpo-qr-hue-label input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:28px!important;margin:0;padding:0!important;border:0!important;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)!important;cursor:pointer}.dhxpo-qr-hue-label input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:var(--dhxpo-hue,#f00);box-shadow:0 0 0 1px #44515e}.dhxpo-qr-hue-label input[type=range]::-moz-range-thumb{width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:var(--dhxpo-hue,#f00);box-shadow:0 0 0 1px #44515e}.dhxpo-qr-hue-label input[type=range]:focus-visible{outline:3px solid #173a5b;outline-offset:3px}
.dhxpo-product-bundle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}.dhxpo-product-bundle-card{display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border:1px solid #dfe5eb;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}.dhxpo-product-bundle-card:has(input:checked){border-color:#173a5b;box-shadow:0 0 0 2px rgba(23,58,91,.12);background:#f8fbfd}.dhxpo-product-bundle-card>input{flex:0 0 auto;margin:0}.dhxpo-product-bundle-image{width:64px;height:64px;object-fit:cover;border-radius:8px}.dhxpo-product-bundle-copy{display:grid;gap:4px;min-width:0}.dhxpo-product-bundle-copy strong{line-height:1.3}.dhxpo-product-bundle-price{color:#52606d}.dhxpo-product-bundle-price .amount{font-weight:700}

.dhxpo-variation-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.dhxpo-variation-button{padding:8px 12px;border:1px solid #ccd5dc;border-radius:6px;background:#fff;color:#102d45;cursor:pointer}.dhxpo-variation-button[aria-pressed="true"]{background:#102d45;color:#fff}.dhxpo-variation-button:disabled{opacity:.4;cursor:not-allowed}

/* Keep form headings independent from product-summary heading width rules. */
.single-product .dhxpo .dhxpo-set{grid-template-columns:minmax(0,1fr);min-width:0}
.single-product .dhxpo .dhxpo-set-title{width:100%!important;max-width:none!important;min-width:0;grid-column:1/-1;font-size:clamp(1.35rem,2.2vw,1.75rem);line-height:1.25;white-space:normal;text-wrap:wrap;margin:0 0 12px}
.dhxpo-native-variations-slot .variations{width:100%;margin:0}.dhxpo-native-variations-slot select[hidden]{display:none!important}
.dhxpo-variation-button img{width:56px;height:56px;object-fit:contain}.dhxpo-variation-swatch{display:inline-block;width:28px;height:28px;border:1px solid #ccc;border-radius:50%;vertical-align:middle;margin-right:8px}

.single-product .dhxpo .dhxpo-set>.dhxpo-field,.single-product .dhxpo .dhxpo-set>.dhxpo-section{grid-column:1/-1;min-width:0}

/* Native variation tables need stacked labels inside the options builder. */
.single-product .dhxpo .dhxpo-native-variations-slot table.variations,.single-product .dhxpo .dhxpo-native-variations-slot table.variations tbody,.single-product .dhxpo .dhxpo-native-variations-slot table.variations tr,.single-product .dhxpo .dhxpo-native-variations-slot table.variations th,.single-product .dhxpo .dhxpo-native-variations-slot table.variations td{display:block;width:100%!important;max-width:none!important;padding:0;border:0;text-align:left;box-sizing:border-box}
.single-product .dhxpo .dhxpo-native-variations-slot table.variations th{margin:0 0 10px;line-height:1.3}
.single-product .dhxpo .dhxpo-native-variations-slot table.variations th label{display:block;margin:0;white-space:normal;line-height:1.3}
.single-product .dhxpo .dhxpo-variation-buttons{gap:10px;width:100%;margin:0 0 12px}
.single-product .dhxpo .dhxpo-variation-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:52px;height:auto;padding:10px 12px;font-size:15px;font-weight:500;line-height:1.35;white-space:normal;overflow-wrap:break-word;text-align:center;border-radius:7px;box-sizing:border-box}
@media(max-width:600px){.single-product .dhxpo .dhxpo-variation-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.single-product .dhxpo .dhxpo-variation-button{font-size:14px;padding:10px 8px}}
@media(max-width:360px){.single-product .dhxpo .dhxpo-variation-buttons{grid-template-columns:minmax(0,1fr)!important}}

.dhxpo-qr-colour[hidden]{display:none!important}

.dhxpo-price-breakdown{font-size:.95rem;line-height:1.5;text-align:left;overflow-wrap:break-word}.dhxpo-price-row-total{border-top:1px solid #e7ebef;padding-top:12px}

/* A fixed included material is information, with its submitted value retained. */
.dhxpo-fixed-material .dhxpo-choices{display:block!important}.dhxpo-fixed-material .dhxpo-choice{border:0!important;box-shadow:none!important;background:#f7f9fb!important;cursor:default;min-height:0;display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px 12px}.dhxpo-fixed-material .dhxpo-choice input{display:none!important}.dhxpo-fixed-material .dhxpo-choice .dhxpo-choice-image{width:42px!important;height:42px!important;grid-row:span 2}.dhxpo-fixed-material .dhxpo-choice-description,.dhxpo-fixed-material>.dhxpo-description{display:none}.dhxpo-material-included{grid-column:2;font-size:.82rem;color:#5f6b76}.dhxpo-fixed-material .dhxpo-choice:not(:has(img)){grid-template-columns:1fr}.dhxpo-fixed-material .dhxpo-choice:not(:has(img)) .dhxpo-material-included{grid-column:1}

/* Proof service is the final personalisation choice, before the price summary. */
.dhxpo-proof-service{margin:20px 0 0;padding:18px 0 0;border-top:1px solid #e1e7ed;min-width:0}
.dhxpo-proof-service h4{margin:0 0 12px;font-size:1.05em;line-height:1.35}
.dhxpo-proof-service .dhxart-proof-choice{margin:0}
.dhxpo-proof-service .dhxart-proof-choice label{display:flex;align-items:flex-start;gap:10px;font-weight:600;line-height:1.45;cursor:pointer}
.dhxpo-proof-service .dhxart-proof-choice input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin:3px 0 0;accent-color:#102e49}
.dhxpo-proof-service .dhxart-proof-choice br{display:none}
.dhxpo-proof-service .dhxart-proof-choice small{display:block;margin-top:8px;color:#66717d;font-size:.88em;line-height:1.6}

.dhxpo-proof-service small{display:block;margin-top:8px;color:#66717d;font-size:.88em;line-height:1.6}.dhxpo-proof-service a{display:inline-block;margin-top:8px;font-size:.9em}.dhxpo-proof-service .dhxpo-choice{grid-template-columns:none;align-items:flex-start}.dhxpo-proof-service .dhxpo-choice input{flex:0 0 auto;margin-top:3px}
