/* Style EPO's actual inputs: selections, validation and prices stay with EPO. */
.summary:has(.poster-epo-design) {color:#161b22;--poster-option-ink:#304778;}
.summary:has(.poster-epo-design) .product_title {font-size:clamp(26px,2.5vw,36px);line-height:1.22;font-weight:600;letter-spacing:-.025em;margin-bottom:14px;}
.summary:has(.poster-epo-design) .summary-inner>p.price,.summary:has(.poster-epo-design) .summary-inner>p.price .amount {color:#161b22;font-size:26px;font-weight:700;margin-bottom:12px;}
.summary:has(.poster-epo-design) .woocommerce-product-rating {margin-bottom:18px;}
.summary:has(.poster-epo-design) .woocommerce-product-details__short-description {font-size:14px;line-height:1.7;color:#69717e;margin-bottom:24px;}
.poster-epo-design .tm-section-label {display:none;}
.poster-epo-design .tc-section-fields>.tc-row {display:flex;flex-direction:column;gap:0;}
.poster-epo-design .cpf-element {width:100%!important;padding:0!important;margin:0 0 13px!important;}
.poster-epo-design [data-poster-design="material"] {order:1;}
.poster-epo-design [data-poster-design="size"] {order:2;}
.poster-epo-design [data-poster-design="frame"] {order:3;}
.poster-epo-design [data-poster-design="paper"] {order:4;}
.poster-epo-design [data-poster-design="extras"] {order:5;}
.poster-epo-design [data-poster-design="frame"] .tmcp-field-wrap:has(input[value="Không khung_0"]){order:3}
.poster-epo-design [data-poster-design="frame"] .tmcp-field-wrap:has(input[value="Khung cổ điển_1"]){order:1}
.poster-epo-design [data-poster-design="frame"] .tmcp-field-wrap:has(input[value="Khung cao cấp_2"]){order:2}
.poster-epo-design .tm-epo-element-label {position:relative;display:flex;align-items:baseline;gap:5px;font-size:18px!important;font-weight:600!important;color:#171b22;margin:0 0 8px!important;padding:0!important;line-height:1.5;}
.poster-epo-design .tm-epo-required {float:none!important;order:1;color:#d73535;font-size:15px;}
.poster-epo-design .tc-epo-element-label-text {order:0;}
.poster-epo-help {margin-left:auto;order:2;font-size:12px;font-weight:400;}
.poster-epo-help summary {cursor:pointer;text-decoration:underline;list-style:none;color:#424957;}
.poster-epo-help summary::-webkit-details-marker {display:none;}
.poster-epo-help p {position:absolute;z-index:5;top:100%;right:0;width:min(310px,100%);padding:16px;margin:8px 0;background:#fff;border:1px solid #dce1eb;border-radius:8px;box-shadow:0 8px 28px #1b2f5020;font-size:13px;font-weight:400;line-height:1.65;}
.poster-epo-design .cpf-type-radio .tmcp-ul-wrap {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px!important;padding:0!important;margin:0!important;width:100%;}
.poster-epo-design [data-poster-design="material"] .tmcp-ul-wrap {grid-template-columns:repeat(2,minmax(0,1fr));}
.poster-epo-design .cpf-type-radio .tmcp-field-wrap {width:auto!important;max-width:none!important;min-width:0;float:none!important;margin:0!important;padding:0!important;}
.poster-epo-design .cpf-type-radio .tmcp-field-wrap-inner,.poster-epo-design .cpf-type-radio .tc-field-label-wrap {display:block!important;width:100%;height:100%;padding:0!important;margin:0!important;}
.poster-epo-design label.poster-epo-choice {position:relative;display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;min-height:42px;padding:9px 8px!important;margin:0!important;border:1px solid #454a52;border-radius:5px;background:#fff;color:#343a44;cursor:pointer;transition:border-color .16s,box-shadow .16s,background .16s;}
.poster-epo-choice .tc-label-wrap,.poster-epo-choice .tc-label,.poster-epo-choice .tc-label-inner {display:block!important;width:100%!important;text-align:center;margin:0!important;padding:0!important;}
.poster-epo-choice .tc-label-text {font-size:14px;font-weight:400;line-height:1.3;}
.poster-epo-choice .tc-price-wrap {display:none!important;}
.poster-epo-choice .tc-input-wrap {position:absolute!important;inset:0;opacity:0!important;margin:0!important;}
.poster-epo-choice input {position:absolute!important;inset:0;width:100%!important;height:100%!important;margin:0!important;cursor:pointer;}
.poster-epo-choice:has(input:checked) {border-color:var(--poster-option-ink);box-shadow:inset 0 0 0 1px var(--poster-option-ink);background:#f9faff;}
.poster-epo-choice:hover {border-color:var(--poster-option-ink);background:#f9faff;}
.poster-epo-choice:has(input:focus-visible) {outline:3px solid #a5b5de;outline-offset:3px;}
.poster-epo-choice:has(input:disabled) {opacity:.45;cursor:not-allowed;}
/* Reserve badge space for the whole row, not just the labelled choice. */
.poster-epo-design .cpf-type-radio[data-poster-design="size"] .tmcp-ul-wrap {row-gap:28px!important;}
.poster-epo-offer {position:absolute;right:0;top:-22px;color:var(--poster-option-ink);font-size:11px;line-height:18px;white-space:nowrap;}
/* Hide only the smaller offer's badge when the larger discount is selected. */
.poster-epo-design [data-poster-design="size"]:has([data-poster-discount="15"] input:checked) [data-poster-discount="10"] .poster-epo-offer {visibility:hidden;}
.poster-epo-design [data-poster-design="size"]:has([data-poster-discount] input:checked) [data-poster-popular="true"] .poster-epo-offer {visibility:hidden;}
.poster-epo-design .cpf-type-checkbox .tmcp-ul-wrap {margin:0!important;padding:0!important;}
.poster-epo-design .cpf-type-checkbox .tmcp-field-wrap {padding:2px 0!important;margin:0!important;}
.poster-epo-design .cpf-type-checkbox label {font-size:14px;cursor:pointer;}
.poster-epo-design .cpf-type-checkbox .tc-label-wrap {align-items:center;}
.poster-epo-design .cpf-type-checkbox input {accent-color:#304778;}
.poster-epo-design .cpf-type-checkbox .tc-price {font-size:13px;color:#687182;}
/* Flatten only visible add-on groups visually; keep EPO's conditional fields intact. */
.poster-epo-design .poster-unified-extras.tc-container-enabled,
.poster-epo-design .poster-unified-extras.tc-container-enabled > .tc-element-inner-wrap,
.poster-epo-design .poster-unified-extras.tc-container-enabled > .tc-element-inner-wrap > .tc-row,
.poster-epo-design .poster-unified-extras.tc-container-enabled .tc-element-container,
.poster-epo-design .poster-unified-extras.tc-container-enabled .tmcp-ul-wrap{display:contents!important}
.poster-epo-design .poster-unified-extras .tm-epo-element-label{order:5}
.poster-epo-design .poster-paper-note{font-size:12px;line-height:1.5;color:#69717e;margin:0 0 7px}
.poster-epo-design .poster-paper-addon.cpf-element{margin-bottom:3px!important}
.poster-epo-design [data-poster-addon="protection"]{order:6}
.poster-epo-design [data-poster-addon="card"]{order:7;margin-bottom:13px!important}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals {width:100%;padding:9px 0;margin:0 0 12px;border-top:1px solid #e6e8ed;border-bottom:1px solid #e6e8ed;}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dt {color:#69717e;font-size:13px;}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dd {text-align:right;}
.summary:has(.poster-epo-design) .poster-reference-original{display:inline-block;margin-right:10px;color:#8b8b8b;font-size:16px;font-weight:400}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals .amount {color:#182336;font-size:22px;font-weight:700;}
.summary:has(.poster-epo-design) .single_add_to_cart_button {border-radius:5px;min-height:52px!important;font-size:14px;font-weight:600;transition:background .2s,transform .2s;}
.summary:has(.poster-epo-design) .single_add_to_cart_button:hover {background:#253a68!important;transform:translateY(-1px);}
@media(max-width:480px) {.poster-epo-design .cpf-type-radio .tmcp-ul-wrap {gap:10px!important;}.poster-epo-choice .tc-label-text {font-size:12px;}.poster-epo-design .tm-epo-element-label {font-size:17px!important;}.poster-epo-design .cpf-element {margin-bottom:12px!important;}}
/* Compact the product purchase block without reducing control hit areas. */
.summary:has(.poster-epo-design) .product_title{margin-bottom:8px!important}
.summary:has(.poster-epo-design) .summary-inner>p.price{margin-bottom:7px!important}
.summary:has(.poster-epo-design) .woocommerce-product-rating{margin-bottom:9px!important}
.summary:has(.poster-epo-design) .woocommerce-product-details__short-description{margin-bottom:12px!important;line-height:1.55}
.summary:has(.poster-epo-design) .woocommerce-product-details__short-description p{margin-bottom:0!important}
.poster-epo-design .cpf-element{margin-bottom:8px!important}
.poster-epo-design .tm-epo-element-label{margin-bottom:5px!important}
.poster-epo-design .poster-paper-note{margin-bottom:3px}
.poster-epo-design .poster-paper-addon.cpf-element{margin-bottom:2px!important}
.poster-epo-design [data-poster-addon="card"]{margin-bottom:6px!important}
.summary:has(.poster-epo-design) .tm-extra-product-options{margin-bottom:0!important;padding-bottom:0!important}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals{padding:6px 0!important;margin:0 0 7px!important}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dt,
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dd{margin-top:0!important;margin-bottom:5px!important;padding-top:0!important;padding-bottom:0!important}
.summary:has(.poster-epo-design) form.cart{margin-top:0!important;gap:8px!important;row-gap:8px!important}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:4px}
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dt,
.summary:has(.poster-epo-design) .tm-extra-product-options-totals dd{float:none!important;clear:none!important;width:auto!important;margin:0!important;line-height:1.4}
