/* AREN CVI: existing Poppins and Murrey. White surfaces, shared field and spacing rules. */
.aren-retail-checkout { --rc-ink:#30242c; --rc-brand:#74154c; --rc-line:#e8dfe4; --rc-selected:#fcf7fa; --rc-muted:#665961; }
.aren-retail-checkout #primary>.title-wrap { display:none; }
.aren-retail-checkout .aren-rc-heading { max-width:1200px; margin:24px auto 32px; color:var(--rc-ink); }
.aren-retail-checkout .aren-rc-heading h1 { font-size:clamp(28px,3.5vw,42px); line-height:1.2; margin:0; }
.aren-retail-checkout form.aren-rc-form { max-width:1200px; width:100%; margin:0 auto 56px; color:var(--rc-ink); }
.aren-rc-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr); align-items:start; gap:48px; }
.aren-rc-main,.aren-rc-side { min-width:0; }
.aren-retail-checkout .aren-rc-card { border:0; border-bottom:1px solid var(--rc-line); border-radius:0; padding:0 0 32px; background:#fff; margin:0 0 32px; }
.aren-retail-checkout .aren-rc-card h2,.aren-retail-checkout .aren-rc-summary h2 { display:flex; align-items:center; gap:12px; font-size:20px; line-height:1.4; font-weight:700; margin:0 0 20px; color:var(--rc-ink); }
.aren-rc-hint { font-size:13px; margin:0 0 20px; color:#665961; }
.aren-rc-hint a { color:var(--rc-brand); text-decoration:underline; margin-left:6px; }
.aren-retail-checkout #customer_details { display:block!important; width:100%; }
.aren-retail-checkout .aren-rc-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; align-items:start; }
.aren-retail-checkout #customer_details .form-row { float:none; width:auto; max-width:none; margin:0; padding:0; display:block; order:0; min-width:0; box-sizing:border-box; }
.aren-retail-checkout #customer_details .form-row-wide,.aren-retail-checkout #customer_details #billing_country_field,.aren-retail-checkout #customer_details #order_comments_field { grid-column:1 / -1; width:100%; }
.aren-retail-checkout #customer_details #billing_email_field,.aren-retail-checkout #customer_details #billing_phone_field { grid-column:auto; }
.aren-retail-checkout #customer_details label { display:block; height:auto; font-size:13px; line-height:20px; margin:0 0 8px; color:var(--rc-ink); font-weight:400; }
.aren-retail-checkout #customer_details #billing_postcode_field,.aren-retail-checkout #customer_details #billing_city_field { grid-column:auto; width:auto; }
.aren-retail-checkout #customer_details input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.aren-retail-checkout #customer_details select,.aren-retail-checkout #customer_details textarea { box-sizing:border-box; width:100%; min-height:48px; height:48px; background:#fff; border:1px solid #cabdc5; border-radius:6px; padding:10px 12px; font:inherit; font-size:14px; color:var(--rc-ink); box-shadow:none; }
.aren-retail-checkout #customer_details textarea { min-height:80px; height:80px; resize:vertical; }
.aren-retail-checkout #customer_details .woocommerce-input-wrapper { display:block; width:100%; }
.aren-retail-checkout #customer_details .select2-container { width:100%!important; }
.aren-retail-checkout #customer_details .select2-selection--single { box-sizing:border-box; height:48px; min-height:48px; border:1px solid #cabdc5; border-radius:6px; padding:0 12px; }
.aren-retail-checkout #customer_details .select2-selection__rendered { padding:0 24px 0 0; line-height:46px; height:46px; font-size:14px; color:var(--rc-ink); }
.aren-retail-checkout #customer_details .select2-selection__arrow { top:0; height:46px; right:6px; }
.aren-retail-checkout #customer_details .woocommerce-invalid input { border-color:#a01b35!important; }
.aren-retail-checkout #customer_details .optional { font-size:11px; }
.aren-retail-checkout input[type=checkbox],.aren-retail-checkout input[type=radio] { accent-color:var(--rc-brand); }
.aren-retail-checkout :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--rc-brand); outline-offset:3px; }
.aren-retail-checkout .custom-shipping-wrapper { margin-top:24px; width:100%; }
.aren-rc-shipping-types { display:flex; gap:8px; margin-bottom:18px; }
.aren-retail-checkout .aren-rc-shipping-types button { flex:1; padding:12px 6px; min-height:44px; font-size:12px; background:#fff; color:var(--rc-ink); border:1px solid #cabdc5; border-radius:6px; }
.aren-retail-checkout .aren-rc-shipping-types button[aria-pressed=true] { background:var(--rc-selected); border-color:var(--rc-brand); color:var(--rc-brand); }
.aren-retail-checkout #shipping_method li[hidden] { display:none!important; }
.aren-retail-checkout #shipping_method { list-style:none; padding:0; margin:12px 0 0; width:100%; }
.aren-retail-checkout #shipping_method li { border:1px solid var(--rc-line); padding:12px; border-radius:6px; margin:8px 0; font-size:13px; }
.aren-retail-checkout #shipping_method li:has(>input:checked) { border-color:var(--rc-brand); background:#fcf7fa; }
.aren-retail-checkout #shipping_method li>label { display:inline!important; margin:0!important; font-size:13px!important; cursor:pointer; }
.aren-retail-checkout #shipping_method li>input { margin-right:8px; }
.aren-retail-checkout .custom-shipping-wrapper td,.aren-retail-checkout .custom-shipping-wrapper th { display:block; padding:0; width:100%; border:0; }
.aren-retail-checkout #payment { background:#fff; margin:0; border-radius:0; width:100%; border:0; padding:0; }
.aren-retail-checkout #payment ul.payment_methods { display:block!important; padding:0; margin:0; border:0; list-style:none; }
.aren-retail-checkout #payment ul.payment_methods>li { display:grid!important; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:0 10px; background:#fff; border:1px solid var(--rc-line); border-radius:6px; padding:16px; margin:12px 0 0; font-size:14px; }
.aren-retail-checkout #payment ul.payment_methods>li:has(>input:checked) { border-color:var(--rc-brand); }
.aren-retail-checkout #payment ul.payment_methods>li>label { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:24px; margin:0; font-size:14px; font-weight:600; cursor:pointer; }
.aren-retail-checkout #payment ul.payment_methods>li>input { margin:3px 0 0; width:18px; height:18px; }
.aren-retail-checkout #payment ul.payment_methods>li>label img,.aren-retail-checkout #payment .aren-rc-method-heading img { display:block; flex:0 0 auto; width:auto!important; height:24px!important; max-width:none!important; max-height:none!important; object-fit:contain; float:none!important; margin:0!important; }
.aren-retail-checkout #payment ul.payment_methods>li.payment_method_wc_montonio_card>label img { height:20px!important; }
.aren-retail-checkout #payment div.payment_box { grid-column:1 / -1; margin:16px 0 0; padding:0; background:transparent; color:#51434b; font-size:12px; line-height:1.7; }
.aren-retail-checkout #payment div.payment_box::before { display:none; }
.aren-retail-checkout #payment .montonio-bnpl-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.aren-retail-checkout #payment .montonio-bnpl-item { font-size:12px; padding:12px 6px; border-radius:6px; min-width:0; cursor:pointer; }
.aren-retail-checkout #payment .montonio-bnpl-item.active { border-color:var(--rc-brand); background:var(--rc-selected); }
.aren-retail-checkout .aren-rc-side { border:0; border-left:1px solid var(--rc-line); border-radius:0; padding-left:24px; overflow:visible; position:sticky; top:24px; background:#fff; }
.aren-retail-checkout #order_review { float:none; width:100%; border:0; padding:0; }
.aren-retail-checkout .aren-rc-summary { padding:0 0 24px; margin:0; }
.aren-rc-company { margin-top:22px; font-size:13px; }
.aren-rc-company summary { cursor:pointer; color:var(--rc-brand); margin-bottom:14px; }
.aren-rc-final-total { display:none; justify-content:space-between; gap:12px; font-size:20px; margin:0 0 18px; }
.aren-rc-item { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:12px; padding:18px 0; border-bottom:1px solid var(--rc-line); }
.aren-rc-item:first-child { padding-top:0; }
.aren-rc-image img { width:58px; height:68px; object-fit:contain; }
.aren-rc-product-name { display:block; font-size:13px; line-height:1.5; color:var(--rc-ink); font-weight:500; text-decoration:none; }
.aren-rc-item-info .variation { font-size:11px; margin:4px 0; }
.aren-rc-unit { display:block; font-size:11px; color:#665961; margin:6px 0; }
.aren-rc-quantity { display:inline-flex; border:1px solid #cabdc5; border-radius:6px; overflow:hidden; }
.aren-retail-checkout .aren-rc-quantity button { border:0; background:#fff; color:var(--rc-brand); min-width:40px; min-height:44px; padding:0; font-size:20px; }
.aren-retail-checkout input.aren-rc-qty { border:0; border-radius:0; padding:0; width:46px; min-width:0; height:44px; text-align:center; font-size:13px; appearance:textfield; }
.aren-rc-qty::-webkit-inner-spin-button,.aren-rc-qty::-webkit-outer-spin-button { appearance:none; }
.aren-rc-item-end { display:flex; flex-direction:column; align-items:flex-end; gap:12px; font-size:14px; }
.aren-rc-item-end .tax_label { display:none; }
.aren-retail-checkout .aren-rc-remove { border:0; background:none; text-decoration:underline; font-size:11px; min-height:38px; padding:0; color:#665961; }
.aren-retail-checkout #order_review table.aren-rc-totals { width:100%; border:0; border-radius:0; box-shadow:none; overflow:visible; border-collapse:collapse; font-size:13px; margin:16px 0 0; }
.aren-retail-checkout .aren-rc-totals :is(tbody,tr,th,td) { border-radius:0; box-shadow:none; }
.aren-retail-checkout #order_review .aren-rc-totals th,.aren-retail-checkout #order_review .aren-rc-totals td { padding:7px 0; border:0; background:none; font-weight:400; }
.aren-rc-totals th { text-align:left; }
.aren-rc-totals td { text-align:right; }
.aren-retail-checkout .aren-rc-totals .order-total th,.aren-retail-checkout .aren-rc-totals .order-total td { font-size:20px; font-weight:700; padding-top:16px; border-top:1px solid var(--rc-line); }
.aren-rc-totals .includes_tax { display:block; font-size:11px; font-weight:400; line-height:1.5; margin-top:5px; color:#665961; }
.aren-rc-coupon { padding:0 0 24px; font-size:12px; }
.aren-rc-coupon summary { cursor:pointer; color:var(--rc-brand); }
.aren-rc-coupon-row { display:flex; gap:8px; margin-top:12px; }
.aren-retail-checkout .aren-rc-coupon-row input { min-width:0; width:100%; border:1px solid #cabdc5; border-radius:6px; padding:10px; font-size:13px; }
.aren-retail-checkout .aren-rc-apply-coupon { padding:10px 14px; border:1px solid var(--rc-brand); color:var(--rc-brand); background:#fff; border-radius:6px; }
.aren-rc-submit { padding:24px 0 0; border-top:1px solid var(--rc-line); background:#fff; }
.aren-retail-checkout .aren-rc-submit .place-order { display:block; padding:0; margin:0; width:100%; }
.aren-retail-checkout .aren-rc-submit .form-row { display:block; text-align:left; }
.aren-retail-checkout .aren-rc-submit .woocommerce-terms-and-conditions-wrapper { display:block; font-size:11px; line-height:1.7; }
.aren-retail-checkout .aren-rc-submit .woocommerce-terms-and-conditions-wrapper a { color:var(--rc-brand); text-decoration:underline; }
.aren-retail-checkout .aren-rc-submit label { font-size:12px; line-height:1.7; }
.aren-retail-checkout .aren-rc-submit #place_order { display:block; width:100%; float:none; margin:18px 0 0; padding:16px; background:var(--rc-brand); color:#fff; border:0; border-radius:7px; font-size:14px; font-weight:700; min-height:52px; }
.aren-rc-secure { font-size:11px; color:#665961; text-align:center; margin:14px 0 0; }
.aren-rc-status:not(.is-error) { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.aren-rc-status { font-size:13px; color:var(--rc-brand); margin-bottom:12px; }
.aren-rc-status:empty { display:none; }
.aren-rc-status.is-error { color:#a01b35; padding:12px; border:1px solid #a01b35; border-radius:6px; }
.aren-retail-checkout button:disabled { opacity:.5; cursor:wait; }
@media(max-width:900px) {
    .aren-rc-layout { grid-template-columns:minmax(0,1fr) minmax(300px,.9fr); gap:18px; }
    .aren-retail-checkout .aren-rc-card { padding:0 0 28px; }
    .aren-retail-checkout .aren-rc-side { padding-left:20px; }
    .aren-rc-item { grid-template-columns:44px minmax(0,1fr); gap:10px; }
    .aren-rc-image img { width:44px; height:54px; }
    .aren-rc-item-end { grid-column:2; flex-direction:row; justify-content:space-between; }
}
@media(max-width:780px) {
    .aren-retail-checkout .aren-rc-heading { margin-top:24px; }
    .aren-rc-layout { display:flex; flex-direction:column; gap:20px; }
    .aren-rc-main,.aren-rc-side { width:100%; display:contents; }
    .aren-retail-checkout .aren-rc-side { position:static; border:0; padding:0; }
    .aren-retail-checkout #order_review { order:0; border:0; border-bottom:1px solid var(--rc-line); border-radius:0; }
    .aren-retail-checkout .aren-rc-summary { padding:0 0 24px; }
    .aren-retail-checkout .aren-rc-final-total { display:flex; }
    .aren-retail-checkout #customer_details { order:1; }
    .aren-retail-checkout #payment { order:2; }
    .aren-retail-checkout .aren-rc-coupon { order:3; padding:0; width:100%; }
    .aren-retail-checkout .aren-rc-submit { order:4; border-radius:0; padding:24px 0 0; width:100%; box-sizing:border-box; }
    .aren-retail-checkout .aren-rc-card { padding:0 0 24px; margin-bottom:24px; }
    .aren-retail-checkout #payment { border:0; padding:0; margin:0; }
    .aren-retail-checkout .aren-rc-fields { grid-template-columns:minmax(0,1fr); gap:16px; }
    .aren-retail-checkout .aren-rc-card h2,.aren-retail-checkout .aren-rc-summary h2 { font-size:18px; }
    .aren-retail-checkout #customer_details #billing_email_field,.aren-retail-checkout #customer_details #billing_phone_field { grid-column:1 / -1; }
    .aren-retail-checkout #payment .montonio-bnpl-items { grid-template-columns:1fr; }
    .aren-rc-item { grid-template-columns:58px minmax(0,1fr); }
    .aren-rc-item-end { grid-column:2; flex-direction:row; }
    .aren-retail-checkout #customer_details input,.aren-retail-checkout #customer_details select,.aren-retail-checkout #customer_details textarea { font-size:16px!important; }
}

/* Native theme defaults must not distort payment brands or company fields. */
.aren-retail-checkout #customer_details .aren-rc-fields input { box-sizing:border-box!important; }
.aren-retail-checkout #customer_details .form-row .required { color:inherit; }
.aren-retail-checkout #payment ul.payment_methods>li.aren-rc-unavailable { display:block!important; color:var(--rc-muted); }
.aren-rc-method-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:24px; }
.aren-rc-unavailable p { margin:10px 0 0; font-size:12px; line-height:1.65; }
.aren-retail-checkout #payment .montonio-bnpl-item.active { color:var(--rc-brand); }
.aren-retail-checkout #payment .montonio-bnpl-item--disabled { color:#665961; opacity:1; background:#f6f4f5; }
.aren-retail-checkout #payment li>label { flex-wrap:wrap; }
.aren-retail-checkout .aren-rc-product-name:hover { text-decoration:underline; }
.aren-retail-checkout #customer_details .optional { display:inline; }
.aren-retail-checkout #order_review .aren-rc-product-name { color:var(--rc-ink); font-weight:500; text-decoration:none; }
.aren-retail-checkout #order_review .aren-rc-product-name:hover { text-decoration:underline; }
.aren-retail-checkout #payment .montonio-bank-items--grid { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.aren-retail-checkout #payment .montonio-bank-item { box-sizing:border-box; flex:0 0 calc((100% - 24px)/4); width:auto; min-width:0; height:60px; margin:0; padding:8px; border-radius:6px; }
.aren-retail-checkout #payment .montonio-bank-item img { width:auto; height:auto; max-width:100%; max-height:32px; object-fit:contain; }
@media(max-width:900px) {
    .aren-retail-checkout #payment .montonio-bank-item { flex-basis:calc((100% - 16px)/3); }
}

/* Checkbox text wraps as a sentence; the required marker stays with the text. */
.aren-retail-checkout .aren-rc-submit label.woocommerce-form__label-for-checkbox { display:block!important; position:relative; padding-left:24px; }
.aren-retail-checkout .aren-rc-submit label.woocommerce-form__label-for-checkbox input { position:absolute; left:0; top:3px; margin:0; }
.aren-retail-checkout .aren-rc-submit label .required { display:inline; color:inherit; }
