/* Shared shopping details use the established surface and control tokens. */
/* Checkout presentation only. Native fields, order review and gateway nodes stay intact. */
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) #maincontent {
 padding-top:16px!important;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .bradcrumbs {
 display:flex;align-items:center;gap:8px;padding:0;margin:0 0 12px;font-size:13px;line-height:1.5;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .bradcrumbs :is(a,span) {
 background:transparent!important;color:var(--rm-ui-muted)!important;padding:0;margin:0;font-weight:500;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .bradcrumbs a {
 text-decoration:underline;text-underline-offset:3px;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .bradcrumbs span::before {
 content:"/";margin-right:8px;color:var(--rm-ui-muted);
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .vw-page-title {
 font-size:clamp(26px,3vw,34px);line-height:1.2;margin:0 0 18px;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) {
 margin:0 0 12px;padding:12px 16px 12px 44px;font-size:14px;line-height:1.5;border-top-width:2px;
}
html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error)::before {
 top:12px;left:16px;
}
@media(min-width:861px) {
 html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) {
  display:inline-block;width:calc(50% - 12px);vertical-align:top;
 }
 html:root body.rm-m2.woocommerce-checkout:has(form.rm-checkout-layout) .woocommerce-form-login-toggle {margin-right:12px}
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout {
 display:grid;grid-template-columns:minmax(0,1.12fr) minmax(350px,.88fr);gap:28px;align-items:start;margin-top:22px;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout > *,
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #customer_details > * {min-width:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #customer_details {
 display:grid;gap:24px;width:100%;margin:0;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #customer_details::before,
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #customer_details::after {display:none}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout :is(.woocommerce-billing-fields h3,.woocommerce-additional-fields h3,#order_review_heading) {
 font-size:20px;line-height:1.3;margin:0 0 16px;color:var(--rm-ui-ink);
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .woocommerce-account-fields {
 margin:0 0 22px;padding:12px 14px;border:1px solid var(--rm-surface-edge);border-radius:var(--rm-radius-control);background:var(--rm-surface-quiet);
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .woocommerce-account-fields p.create-account {margin:0;padding:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .woocommerce-account-fields div.create-account {margin-top:12px}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .rm-checkout-payment-link {display:none}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .form-row {
 margin:0 0 12px;padding:0;min-width:0;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .form-row label {
 font-size:13px;line-height:1.5;margin-bottom:5px;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .form-row :is(input.input-text,input[type="email"],input[type="tel"],textarea) {
 min-height:44px;padding:9px 11px;font-size:16px;line-height:1.5;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .form-row textarea {
 height:88px;min-height:88px;resize:vertical;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .select2-container .select2-selection--single {
 height:44px;min-height:44px;padding:0;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .select2-container--default .select2-selection--single :is(.select2-selection__rendered,.select2-selection__arrow) {
 height:42px;min-height:0;line-height:42px;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #ship-to-different-address {
 font-size:14px;line-height:1.5;margin:0 0 16px;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout :is(.woocommerce-account-fields,#ship-to-different-address) label {
 display:inline-flex;align-items:center;gap:9px;min-height:24px;margin:0;font-size:14px;line-height:1.5;font-weight:600;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout :is(.woocommerce-account-fields,#ship-to-different-address) input[type="checkbox"] {
 width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--rm-ui-focus);
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review {
 padding:18px;margin:0;width:100%;box-sizing:border-box;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review table.shop_table {
 margin:0 0 12px;font-size:14px;line-height:1.35;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review table.shop_table :is(th,td) {
 padding:5px 0;font-size:inherit;letter-spacing:normal;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review table.shop_table :is(th,td):last-child {padding-left:12px}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review table.shop_table :is(p,ul) {margin:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review #shipping_method li {
 margin:0 0 6px;line-height:1.35;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review #shipping_method li:last-child {margin-bottom:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review #shipping_method label {
 margin:0;font-size:13px;line-height:1.35;font-weight:500;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review #shipping_method input[type="radio"] {accent-color:var(--rm-ui-focus)}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods {
 padding:14px 0;border-top:1px solid var(--rm-surface-edge);
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods > li {margin:0 0 12px}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods > li:last-child {margin-bottom:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods > li > label {
 display:inline;font-size:14px;line-height:1.5;font-weight:650;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods > li > input[type="radio"] {
 display:inline-block;width:16px;height:16px;min-height:0;margin:0 8px 0 0;vertical-align:middle;accent-color:var(--rm-ui-focus);
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment div.payment_box {
 margin:12px 0;padding:14px;font-size:14px;line-height:1.5;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment .place-order {padding:14px 0 0;margin:0}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment .woocommerce-privacy-policy-text p {
 font-size:12px;line-height:1.6;margin:0 0 14px;
}
/* Two native methods share a choice row; the selected native box spans below.
   Other method counts and browsers without :has retain the ordinary list flow. */
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) {
 display:grid;grid-template-columns:24px minmax(0,1fr) 24px minmax(0,1fr);gap:0 8px;align-items:center;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3)))::before,
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3)))::after {display:none}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li {display:contents}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li::before {
 content:"";grid-row:1;align-self:stretch;background:var(--rm-ui-field);border:1px solid var(--rm-surface-edge);border-radius:var(--rm-radius-control);min-width:0;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:has(>input:checked)::before {border-color:var(--rm-ui-focus)}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(1)::before {grid-column:1/3}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(2)::before {grid-column:3/5}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li > input[type="radio"] {
 grid-row:1;position:relative;z-index:1;justify-self:end;margin:0;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li > label {
 grid-row:1;position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;min-height:54px;width:auto;padding:12px 8px 12px 0;margin:0;font-size:13px;cursor:pointer;
}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(1) > input {grid-column:1}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(1) > label {grid-column:2}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(2) > input {grid-column:3}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li:nth-child(2) > label {grid-column:4}
html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment ul.payment_methods:has(>li:nth-child(2)):not(:has(>li:nth-child(3))) > li > .payment_box {
 grid-column:1/-1;grid-row:2;width:100%;box-sizing:border-box;margin:14px 0 0;
}
@media(max-width:860px) {
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout {grid-template-columns:minmax(0,1fr);gap:28px;margin-top:20px}
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #order_review {padding:16px}
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .woocommerce-account-fields {margin-bottom:10px}
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout .rm-checkout-payment-link {
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;margin:0 0 20px;padding:10px 14px;
  border:1px solid var(--rm-ui-boundary);border-radius:var(--rm-radius-control);color:var(--rm-ui-ink);background:var(--rm-ui-field);font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px;
 }
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment {scroll-margin-top:160px}
 html:root body.rm-m2.woocommerce-checkout form.rm-checkout-layout #payment:target {outline:2px solid var(--rm-ui-focus);outline-offset:6px}
}
/* Keep responsive geometry immediate even when a hovered ancestor has a transition. */
html:root body.rm-m2 #yith-quick-view-modal,
html:root body.rm-m2 #yith-quick-view-modal :is(.yith-wcqv-wrapper,.yith-wcqv-main,#yith-quick-view-content),
html:root body.rm-m2 #yith-quick-view-content :is(.product,.images,.summary,.summary-content,form.cart) {
 transition-property:opacity,transform;
}
html:root body.rm-m2 .woocommerce form .form-row :is(input.input-text,input[type="email"],input[type="tel"],textarea),
html:root body.rm-m2 #yith-quick-view-modal form .form-row :is(input.input-text,input[type="email"],input[type="tel"],textarea) {
 border-radius:var(--rm-radius-control);min-height:46px;padding:11px 13px;
 border:1px solid var(--rm-ui-boundary);background:var(--rm-ui-field);color:var(--rm-ui-ink);
 font:inherit;font-size:16px;line-height:1.5;max-width:100%;box-sizing:border-box;
}
html:root body.rm-m2 .woocommerce form .form-row :is(input.input-text,input[type="email"],input[type="tel"],textarea)::placeholder {
 color:var(--rm-ui-muted);opacity:1;
}
html:root body.rm-m2 .woocommerce .select2-container .select2-selection--single {
 min-height:46px;border-radius:var(--rm-radius-control);box-sizing:border-box;
}
html:root body.rm-m2 .woocommerce .select2-container--default .select2-selection--single :is(.select2-selection__rendered,.select2-selection__arrow) {
 min-height:44px;line-height:44px;
}
/* Match the parent checkout phone selector while keeping native fields intact. */
html:root body.rm-m2 .woocommerce form.checkout .form-row :is(input#billing_phone,input#shipping_phone,input[type="email"],input[type="text"]) {
 border-radius:var(--rm-radius-control);
}
/* A native picker remains the input. Its complete selected value can wrap below. */
html:root body.rm-m2 form.variations_form .rm-option-selection {
 margin:8px 0 0;font-size:14px;line-height:1.55;color:var(--rm-ui-muted);
 white-space:normal;overflow-wrap:anywhere;max-width:100%;
}
html:root body.rm-m2 form.variations_form .rm-option-selection[hidden] {display:none!important}
html:root body.rm-m2 form.variations_form .variations :is(th,td) {min-width:0}
html:root body.rm-m2 #yith-quick-view-modal .summary-content>form.cart {margin:20px 0}
html:root body.rm-m2 #yith-quick-view-modal .product_meta a {
 color:var(--rm-ui-ink)!important;text-decoration:underline!important;text-underline-offset:.18em;
}
html:root body.rm-m2 #yith-quick-view-modal .summary-content>.woocommerce-product-details__short-description {
 margin-top:24px;padding-top:20px;border-top:1px solid var(--rm-surface-edge);
}
/* Keep each variation's existing subscription form and challenge in its own panel. */
html:root body.rm-m2 .ambisn-outer-container [data-rm-admail-role="container"] {
 padding:20px!important;border:1px solid var(--rm-surface-edge)!important;
 border-radius:var(--rm-radius-panel)!important;box-shadow:none!important;
 background:var(--rm-surface-quiet)!important;color:var(--rm-ui-ink)!important;
 max-width:min(100%,calc(100vw - 32px));box-sizing:border-box;
}
html:root body.rm-m2 .ambisn-outer-container .wc-ambisn-form :is(h5,.ambisn-sf-consent,.ambisn-sf-consent a),
html:root body.rm-m2 .ambisn-outer-container .ambisn-subscribed>div:not(.icon) {
 color:var(--rm-ui-ink)!important;white-space:normal;overflow-wrap:anywhere;
}
html:root body.rm-m2 .ambisn-outer-container .wc-ambisn-form h5 {margin:0 0 14px;line-height:1.5}
html:root body.rm-m2 .ambisn-outer-container input[data-rm-admail-role="email"] {
 min-width:0;min-height:46px;border-radius:var(--rm-radius-control);
 border:1px solid var(--rm-ui-boundary)!important;background:var(--rm-ui-field)!important;
 color:var(--rm-ui-ink)!important;font-size:16px;
}
html:root body.rm-m2 .ambisn-outer-container input[data-rm-admail-role="email"]::placeholder {color:var(--rm-ui-muted);opacity:1}
html:root body.rm-m2 .ambisn-outer-container button[data-rm-admail-role="submit"] {
 min-height:46px;border-radius:var(--rm-radius-control);border:1px solid var(--rm-action);
 background:var(--rm-action)!important;color:#fff;font:inherit;font-weight:650;
}
html:root body.rm-m2 .ambisn-outer-container button[data-rm-admail-role="submit"]:hover {background:var(--rm-action-hover)!important}
html:root body.rm-m2 .ambisn-outer-container .ambisn-err-notice {color:var(--rm-ui-danger)!important;line-height:1.5;overflow-wrap:anywhere}
html:root body.rm-m2 .ambisn-outer-container [data-rm-admail-role="unsubscribe"] {color:var(--rm-ui-ink)!important}
html:root body.rm-m2 .ambisn-outer-container .ambisn-sf-consent a {text-decoration:underline;text-underline-offset:.2em}
/* Overview items can stack without the native table losing its table semantics. */
html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
 gap:20px;margin:24px 0;padding:24px;background:var(--rm-surface-quiet);
 border:1px solid var(--rm-surface-edge);border-radius:var(--rm-radius-panel);
}
html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview::before,
html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview::after {display:none;content:none}
html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview li {
 float:none;min-width:0;margin:0;padding:0;border:0;font-size:13px;line-height:1.55;
 color:var(--rm-ui-muted);text-transform:none;overflow-wrap:anywhere;
}
html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview li strong {
 display:block;margin-top:4px;font-size:16px;line-height:1.5;color:var(--rm-ui-ink);
}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details {table-layout:auto;width:100%}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details :is(th,td) {
 white-space:normal;overflow-wrap:anywhere;vertical-align:top;
}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details .product-total {min-width:5.5em}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details ul.wc-item-meta {margin:8px 0 0;padding:0;list-style:none;font-size:14px}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details ul.wc-item-meta li {margin:0 0 5px}
html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details ul.wc-item-meta p {display:inline;margin:0}
html:root body.rm-m2 .retromania-video-description {
 background:var(--rm-surface-quiet);color:var(--rm-ui-ink);
 border:1px solid var(--rm-surface-edge);border-radius:var(--rm-radius-panel);
}
html:root body.rm-m2 :is(.retromania-video-description p,.retromania-video-description dt,.retromania-video-description dd) {color:var(--rm-ui-ink)!important}
html:root body.rm-m2 .retromania-caption-draft {
 background:var(--rm-surface-quiet);color:var(--rm-ui-ink)!important;
 border:1px solid var(--rm-ui-boundary);border-radius:var(--rm-radius-control);
 font-size:14px;line-height:1.6;
}
@media(max-width:800px) {
 html:root body.rm-m2 #yith-quick-view-modal form.cart .single_add_to_cart_button {
  float:none;clear:both;width:100%!important;max-width:100%;min-height:48px!important;
  box-sizing:border-box;white-space:normal;
 }
}
@media(max-width:480px) {
 html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details {table-layout:fixed}
 html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details thead .product-name {width:60%}
 html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details thead .product-total {width:40%}
 html:root body.rm-m2 .woocommerce-order ul.woocommerce-order-overview {gap:16px;padding:18px}
 html:root body.rm-m2 .woocommerce-order .woocommerce-table--order-details :is(th,td) {padding:12px 10px;font-size:14px}
 html:root body.rm-m2 .ambisn-outer-container [data-rm-admail-role="container"] {padding:16px!important}
 html:root body.rm-m2 .ambisn-outer-container .wc-ambisn-form .subscription-form {flex-wrap:wrap;gap:10px}
}
