/* Liberty Subscriptions UI. Inherit the store's font; scope all rules to subscriptions. */
:root {
	--lsui-navy: #1e3060;
	--lsui-accent: #b61f42;
	--lsui-ink: #202a3b;
	--lsui-muted: #606c80;
	--lsui-line: #dfe4ed;
	--lsui-soft: #f5f7fb;
	--lsui-blue-soft: #eef2fa;
	--lsui-radius: 16px;
}

body.lsui-enabled :is(.lsui-account, .lsui-related, .lsui-receipt) {
	color: var(--lsui-ink);
	font-size: 14px;
	line-height: 1.6;
	margin-block: 0 32px;
	min-width: 0;
	max-width: 100%;
}
body.lsui-enabled :is(.lsui-account, .lsui-related, .lsui-receipt) *,
body.lsui-enabled :is(.wcsatt-options-wrapper, .wcs-modal) * { box-sizing: border-box; }
body.lsui-enabled .lsui-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(24px, 3vw, 36px);
	margin: 0 0 24px;
	border: 1px solid var(--lsui-navy);
	border-radius: var(--lsui-radius);
	background: var(--lsui-navy);
	background-image: radial-gradient(ellipse at 100% 0%, #ffffff14, transparent 65%);
	color: #fff;
	box-shadow: 0 8px 24px #1e306012;
}
body.lsui-enabled .lsui-hero__copy { min-width: 0; }
body.lsui-enabled .lsui-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	color: #d5dff4;
	margin-bottom: 12px;
}
body.lsui-enabled .lsui-hero h2 {
	font: inherit;
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.035em;
	color: #fff;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	overflow-wrap: anywhere;
}
body.lsui-enabled .lsui-hero p { color: #e0e6f3; font-size: 13px; line-height: 1.7; margin: 0; max-width: 470px; }
body.lsui-enabled .lsui-hero__icon {
	display: grid;
	place-items: center;
	flex: 0 0 76px;
	height: 76px;
	border: 1px solid #ffffff30;
	border-radius: 22px;
	background: #ffffff0c;
	color: #fff;
}
body.lsui-enabled .lsui-hero__icon svg { width: 48px; height: 48px; }
body.lsui-enabled a.lsui-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--lsui-navy); margin-bottom: 16px; text-decoration: none; }
body.lsui-enabled a.lsui-back:hover { text-decoration: underline; }
body.lsui-enabled .lsui-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 28px;
	padding: 6px 0;
	border: 1px solid var(--lsui-line);
	border-radius: var(--lsui-radius);
	background: #fff;
}
body.lsui-enabled .lsui-summary > div { padding: 16px 22px; min-width: 0; }
body.lsui-enabled .lsui-summary > div + div { border-inline-start: 1px solid var(--lsui-line); }
body.lsui-enabled .lsui-summary dt { margin: 0 0 10px; color: var(--lsui-muted); font-size: 11px; font-weight: 600; }
body.lsui-enabled .lsui-summary dd { margin: 0; color: var(--lsui-navy); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
body.lsui-enabled .lsui-summary__total { font-size: 13px; }
body.lsui-enabled .lsui-summary__total .amount { font-size: 20px; font-weight: 750; }

/* Native tables: preserve columns, extension cells, links and pagination. */
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) {
	width: 100%;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--lsui-line);
	border-radius: var(--lsui-radius);
	background: #fff;
	margin: 0 0 24px;
	font-size: 13px;
	line-height: 1.6;
	box-shadow: 0 3px 12px #1e306005;
}
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) :is(th, td) {
	padding: 18px 16px;
	border: 0;
	border-bottom: 1px solid var(--lsui-line);
	background: transparent;
	text-align: start;
	vertical-align: middle;
	overflow-wrap: anywhere;
}
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) thead th {
	padding-block: 13px;
	background: var(--lsui-soft);
	color: var(--lsui-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .065em;
	text-transform: uppercase;
}
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) tr:first-child > :first-child { border-start-start-radius: 15px; }
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) tr:first-child > :last-child { border-start-end-radius: 15px; }
body.lsui-enabled :is(table.woocommerce-orders-table--subscriptions, table.my_account_subscriptions, .lsui-detail table.shop_table) > :last-child > tr:last-child > * { border-bottom: 0; }
body.lsui-enabled :is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) .subscription-id > a { color: var(--lsui-navy); font-weight: 750; font-size: 15px; text-decoration: none; }
body.lsui-enabled .lsui-item-names { display: block; color: var(--lsui-muted); font-size: 11px; line-height: 1.6; font-weight: 400; max-width: 180px; margin-top: 5px; }
body.lsui-enabled :is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) small { display: inline-block; color: var(--lsui-muted); font-size: 11px; margin-top: 5px; }
body.lsui-enabled :is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) .subscription-total { color: var(--lsui-navy); font-weight: 600; }
body.lsui-enabled :is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) .subscription-status { white-space: normal !important; }
body.lsui-enabled .lsui-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border-radius: 100px;
	background: #edf0f6;
	color: #536079;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	white-space: normal;
}
body.lsui-enabled .lsui-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
body.lsui-enabled :is(.lsui-status--active, .lsui-status--completed, .lsui-status--processing) { background: #e8f5ef; color: #17684e; }
body.lsui-enabled :is(.lsui-status--on-hold, .lsui-status--pending, .lsui-status--pending-cancel) { background: #fff4df; color: #855313; }
body.lsui-enabled :is(.lsui-status--cancelled, .lsui-status--expired, .lsui-status--failed) { background: #f6edef; color: #8b4054; }
body.lsui-enabled .lsui-detail table.subscription_details td:first-child { width: 35%; color: var(--lsui-muted); font-size: 12px; }
body.lsui-enabled .lsui-detail table.subscription_details td:last-child { font-weight: 550; }
body.lsui-enabled .lsui-detail h2:not(.lsui-hero h2),
body.lsui-enabled .lsui-related h2 { font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--lsui-navy); margin: 28px 0 14px; }
body.lsui-enabled .lsui-detail table.order_details tfoot th { color: var(--lsui-muted); font-weight: 500; }
body.lsui-enabled .lsui-detail table.order_details tfoot tr:last-child > * { background: var(--lsui-soft); color: var(--lsui-navy); font-weight: 700; }
body.lsui-enabled .lsui-detail .woocommerce-customer-details address { border: 1px solid var(--lsui-line); border-radius: 14px; padding: 22px; line-height: 1.8; background: #fff; width: 100%; }
body.lsui-enabled .lsui-detail .woocommerce-OrderUpdates { margin: 0 0 24px; padding: 0; list-style: none; }
body.lsui-enabled .lsui-detail .woocommerce-OrderUpdate { border-inline-start: 2px solid var(--lsui-line); padding: 4px 20px 16px; margin: 0; }
body.lsui-enabled .lsui-detail .woocommerce-OrderUpdate .meta { color: var(--lsui-muted); font-size: 11px; }

/* Buttons: only within subscription components. No payment action is added or intercepted. */
body.lsui-enabled :is(.lsui-account, .lsui-related, .woocommerce-orders-table--subscriptions, .wcsatt-add-to-subscription-wrapper, .wcsatt-add-cart-to-subscription-wrapper, .wcs-modal) a.button,
body.lsui-enabled .lsui-detail a.wcs-switch-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid var(--lsui-line);
	border-radius: 9px;
	background: #fff;
	color: var(--lsui-navy);
	font: inherit;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	white-space: normal;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease;
}
body.lsui-enabled :is(.lsui-account, .lsui-related, .woocommerce-orders-table--subscriptions, .wcs-modal) a.button:hover { background: var(--lsui-soft); border-color: #b5bfd2; color: var(--lsui-navy); }
body.lsui-enabled :is(.lsui-account, .lsui-related, .woocommerce-orders-table--subscriptions) a.button:is(.view, .pay, .reactivate),
body.lsui-enabled .no_subscriptions a.button,
body.lsui-enabled #early_renewal_modal_submit { background: var(--lsui-accent); border-color: var(--lsui-accent); color: #fff; }
body.lsui-enabled :is(.lsui-account, .lsui-related, .woocommerce-orders-table--subscriptions) a.button:is(.view, .pay, .reactivate):hover,
body.lsui-enabled .no_subscriptions a.button:hover { background: var(--lsui-navy); border-color: var(--lsui-navy); color: #fff; }
body.lsui-enabled .lsui-detail .subscription_details a.button { width: auto; max-width: 100%; margin: 4px 6px 4px 0; }
body.lsui-enabled .lsui-detail a.button.cancel { color: #9a2947; background: #fff; border-color: #e8c4ce; }
body.lsui-enabled .lsui-detail a.button.cancel:hover { background: var(--lsui-rose); }
body.lsui-enabled .lsui-account .woocommerce-pagination { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.lsui-enabled .no_subscriptions.woocommerce-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding: 32px;
	margin: 0;
	border: 1px dashed #c6cede;
	border-radius: var(--lsui-radius);
	background: var(--lsui-soft);
	color: var(--lsui-ink);
	box-shadow: none;
}
body.lsui-enabled .no_subscriptions.woocommerce-info::before { display: none; }
body.lsui-enabled .no_subscriptions a.button { float: none; margin: 0; }
body.lsui-enabled :is(.lsui-account, .lsui-related, .wcs-modal, .wcsatt-options-wrapper, .wcsatt-add-to-subscription-wrapper, .wcsatt-add-cart-to-subscription-wrapper, .wcs-recurring-totals-panel, .woocommerce-orders-table--subscriptions) :is(a, button, input, select):focus-visible {
	outline: 3px solid #4875bf;
	outline-offset: 3px;
}

/* Product choices, including the bundled All Products for Subscriptions integration. */
body.lsui-enabled :is(.wcsatt-options-wrapper, .wcsatt-add-to-subscription-wrapper, .wcsatt-add-cart-to-subscription-wrapper) {
	margin-block: 20px;
	padding: 20px;
	border: 1px solid var(--lsui-line);
	border-radius: 14px;
	background: #fff;
	color: var(--lsui-ink);
	font-size: 14px;
	line-height: 1.6;
	max-width: 100%;
	clear: both;
}
body.lsui-enabled .wcsatt-options-wrapper:empty { margin: 0; padding: 0; border: 0; }
body.lsui-enabled .wcsatt-options-product-prompt { color: var(--lsui-navy); font-weight: 650; }
body.lsui-enabled .wcsatt-options-product-prompt p { margin-bottom: 12px; }
body.lsui-enabled ul.wcsatt-options-product { margin: 12px 0 0; padding: 0; list-style: none; }
body.lsui-enabled ul.wcsatt-options-product > li { margin: 8px 0 0; padding: 0; list-style: none; }
body.lsui-enabled ul.wcsatt-options-product > li > label,
body.lsui-enabled .wcsatt-options-prompt-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 15px;
	border: 1px solid var(--lsui-line);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
body.lsui-enabled ul.wcsatt-options-product > li > label:hover { border-color: #9eafd0; background: #f7f9fd; }
body.lsui-enabled ul.wcsatt-options-product > li > label:has(input:checked) { border-color: var(--lsui-navy); background: var(--lsui-blue-soft); box-shadow: inset 0 0 0 1px var(--lsui-navy); }
body.lsui-enabled .wcsatt-options-prompt-radio:has(input:checked) { border-color: var(--lsui-navy) !important; background: var(--lsui-blue-soft) !important; box-shadow: inset 0 0 0 1px var(--lsui-navy); }
body.lsui-enabled :is(.wcsatt-options-wrapper, .wcsatt-add-to-subscription-wrapper, .wcsatt-add-cart-to-subscription-wrapper) input:is([type=radio], [type=checkbox]) { accent-color: var(--lsui-navy); width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; cursor: pointer; }
body.lsui-enabled ul.wcsatt-options-product label > span { min-width: 0; overflow-wrap: anywhere; }
body.lsui-enabled .wcsatt-options-product .price { font-size: inherit; color: var(--lsui-navy); }
body.lsui-enabled .wcsatt-options-product .subscription-details { color: var(--lsui-muted); font-size: 12px; }
body.lsui-enabled .wcsatt-options-wrapper select { width: 100%; min-height: 46px; padding: 10px 36px 10px 12px; border: 1px solid #c3ccdc; border-radius: 9px; background-color: #fff; color: var(--lsui-ink); font: inherit; margin-block: 10px; }
body.lsui-enabled :is(.woocommerce-subscriptions-apfs-product__trial, .woocommerce-subscriptions-apfs-product__signup-fee) { font-size: 12px; color: var(--lsui-muted); margin: 8px 0 0; }
body.lsui-enabled :is(.wcsatt-options-prompt-label, .wcsatt-add-to-subscription-action-label, .wcsatt-add-cart-to-subscription-action-label) { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
body.lsui-enabled .wcsatt-options-prompt-fieldset { border: 0; margin: 0; padding: 0; }
body.lsui-enabled .wcsatt-options-prompt-fieldset label { margin-bottom: 8px; }
body.lsui-enabled ul.wcsatt-options-prompt-radios { margin: 0; padding: 0; }
body.lsui-enabled .wcsatt-options-prompt-radio + .wcsatt-options-prompt-radio { margin-top: 8px; }
body.lsui-enabled .wcsatt-options-prompt-radio label { width: 100%; margin: 0; }
body.lsui-enabled .wcsatt-add-cart-to-subscription-action-input { position: static; transform: none; }
body.lsui-enabled .wcsatt-add-cart-to-subscription-action-wrapper { font-size: 14px; }
body.lsui-enabled .wcsatt-add-to-subscription-wrapper::before { margin-top: 0; }
body.lsui-enabled button.wcsatt-add-to-subscription-button { min-height: 44px; padding: 11px 16px; border: 0; border-radius: 9px; background: var(--lsui-accent); color: #fff; font: inherit; font-size: 12px; white-space: normal; }
body.lsui-enabled :is(.product-type-subscription, .product-type-variable-subscription) .summary > .price { color: var(--lsui-navy); line-height: 1.6; }
body.lsui-enabled :is(.product-type-subscription, .product-type-variable-subscription) .summary .subscription-details { font-size: 14px; color: var(--lsui-muted); font-weight: 400; }
body.lsui-enabled :is(.product-type-subscription, .product-type-variable-subscription) .single_add_to_cart_button { border-radius: 9px; background: var(--lsui-accent); color: #fff; min-height: 48px; }
body.lsui-enabled :is(.product-type-subscription, .product-type-variable-subscription) .single_add_to_cart_button:hover { background: var(--lsui-navy); }
body.lsui-enabled ul.products :is(.product-type-subscription, .product-type-variable-subscription) .price .subscription-details { font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--lsui-muted); }
body.lsui-enabled :is(.product-price, .product-subtotal, .woocommerce-mini-cart-item) :is(.subscription-price, .subscription-details) { min-width: 0; max-width: 100%; padding-inline: 0; line-height: 1.6; }
body.lsui-enabled .woocommerce-mini-cart-item .subscription-details { font-size: 12px; color: var(--lsui-muted); }

/* Product price comparison: the large price is one-time; billing terms get their own line. */
body.lsui-enabled .price:has(> .lsui-one-time-caption) > .amount { color: var(--lsui-navy); }
body.lsui-enabled .lsui-one-time-caption {
	display: inline-block;
	vertical-align: middle;
	margin-inline-start: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--lsui-muted);
}
body.lsui-enabled .lsui-billing-note {
	display: block !important;
	box-sizing: border-box;
	clear: both;
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	margin-top: 10px !important;
	padding: 14px 16px;
	border-inline-start: 3px solid var(--lsui-navy);
	border-radius: 0 9px 9px 0;
	background: var(--lsui-soft);
	color: var(--lsui-ink);
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.75 !important;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
}
body.lsui-enabled .lsui-billing-note__label {
	display: block !important;
	margin-bottom: 4px;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	letter-spacing: .04em;
	color: var(--lsui-navy);
}
body.lsui-enabled .lsui-billing-note__text { display: block !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.75 !important; }
body.lsui-enabled .lsui-billing-note :is(.amount, .subscription-details, ins, del, bdi) {
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: inherit !important;
	color: inherit;
	background: transparent;
	text-decoration: none;
}
body.lsui-enabled .lsui-billing-note .subscription-details { display: inline; }
/* Keep the title, price, billing details and purchase choices evenly spaced. */
body.lsui-enabled .summary:has(.lsui-billing-note) > h1 { margin-block-end: 10px !important; }
body.lsui-enabled .product:has(.lsui-billing-note) h1:is(.product_title, .entry-title) { margin-block-end: 10px !important; }
body.lsui-enabled .product:has(.lsui-billing-note) h1:is(.product_title, .entry-title),
body.lsui-enabled .summary:has(.lsui-billing-note) > h1 { line-height: 1.15 !important; }
body.lsui-enabled :has(> .lsui-one-time-caption),
body.lsui-enabled .product:has(.lsui-billing-note) :has(> .lsui-one-time-caption) {
	display: block !important;
	float: none !important;
	width: 100%;
	line-height: 1.15 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
body.lsui-enabled .summary:has(.lsui-billing-note) form.cart { margin-block-start: 0 !important; }
body.lsui-enabled .summary:has(.lsui-billing-note) .wcsatt-options-wrapper { margin-block-start: 14px !important; }
body.lsui-enabled .product:has(.lsui-billing-note) form.cart { margin-block-start: 0 !important; }
body.lsui-enabled .product:has(.lsui-billing-note) .wcsatt-options-wrapper { margin-block-start: 14px !important; }
/* Other configurations retain their native "from"/multi-plan wording, at readable body size. */
body.lsui-enabled :is(.summary, .elementor-widget-woocommerce-product-price, .woocommerce-variation-price) .price .wcsatt-sub-options {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
	margin-top: 10px;
	color: var(--lsui-muted);
}
body.lsui-enabled :is(.summary, .elementor-widget-woocommerce-product-price, .woocommerce-variation-price) .price .wcsatt-sub-options :is(.amount, .subscription-details) { font-size: inherit !important; font-weight: inherit; line-height: inherit; }
body.lsui-enabled .wcsatt-options-wrapper .wcsatt-options-prompt-label .price { color: var(--lsui-navy); font-size: inherit; }
body.lsui-enabled .wcsatt-options-wrapper .price ins { color: var(--lsui-navy); background: transparent; text-decoration: none; font-weight: 650; }
body.lsui-enabled .wcsatt-options-wrapper .price ins .amount { color: inherit; }
body.lsui-enabled .lsui-cart-billing { color: var(--lsui-navy); font-size: 12px; line-height: 1.55; font-weight: 500; }
body.lsui-enabled .lsui-cart-billing :is(.amount, .subscription-details) { color: inherit; font-size: inherit !important; line-height: inherit; font-weight: inherit; }
body.lsui-enabled .lsui-cart-billing-line { margin-block-start: 5px; color: var(--lsui-navy); font-size: 12px; font-weight: 500; line-height: 1.55; }
body.lsui-enabled .lsui-cart-billing-line strong { font-weight: 700; }
body.lsui-enabled .lsui-cart-billing-line :is(.amount, .subscription-details) { color: inherit; font-size: inherit !important; line-height: inherit; font-weight: inherit; }

/* Cart / checkout: style the actual recurring rows; keep totals and disclosures intact. */
body.lsui-enabled tr.recurring-totals > th {
	padding: 15px 16px 12px;
	background: var(--lsui-soft);
	border-top: 2px solid var(--lsui-navy);
	color: var(--lsui-navy);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
}
body.lsui-enabled tr.recurring-total > :is(th, td) { background: #fafbfe; border-bottom: 1px solid var(--lsui-line); padding: 13px 14px; font-size: 13px; vertical-align: top; line-height: 1.6; }
body.lsui-enabled tr.recurring-total:not(.order-total) > th { color: var(--lsui-ink); font-weight: 600; }
body.lsui-enabled tr.recurring-total:not(.shipping) > td { text-align: right; }
body.lsui-enabled tr.order-total.recurring-total > :is(th, td) { color: var(--lsui-navy); background: #f0f3fa; font-size: 14px; border-bottom: 2px solid #d4ddeb; }
body.lsui-enabled .first-payment-date { display: block; margin-top: 7px; color: var(--lsui-muted); font-size: 11px; font-weight: 400; line-height: 1.7; }
body.lsui-enabled .wcs-recurring-totals-panel { padding: 18px 16px; margin-block: 16px; border: 1px solid var(--lsui-line); border-radius: 12px; background: var(--lsui-soft); color: var(--lsui-navy); }
body.lsui-enabled .wcs-recurring-totals-panel::after { display: none; }
body.lsui-enabled .wcs-recurring-totals-panel__title { font-weight: 650; line-height: 1.6; }
body.lsui-enabled .wcs-recurring-totals-panel__details { color: var(--lsui-muted); font-size: 12px; }
/* CheckoutWC renders native WCS rows inside a React-owned flex table. */
body.lsui-enabled .cfw-totals-list tr.recurring-totals { padding: 0; margin-top: 18px; background: var(--lsui-soft); }
body.lsui-enabled .cfw-totals-list tr.recurring-totals > th { flex-basis: 100%; width: 100%; padding: 16px 14px 12px; font-size: 14px; font-weight: 700; }
body.lsui-enabled .cfw-totals-list tr.recurring-total { padding: 0; background: #fafbfe; border-bottom: 1px solid var(--lsui-line); }
body.lsui-enabled .cfw-totals-list tr.recurring-total > :is(th, td) { padding: 13px 14px; background: transparent; border: 0; min-width: 0; overflow-wrap: anywhere; }
body.lsui-enabled .cfw-totals-list table tr.order-total.recurring-total:not(:first-child) { border-top: 0; background: #f0f3fa; }
body.lsui-enabled .cfw-totals-list tr.recurring-total .first-payment-date { color: var(--lsui-muted); font-size: 11px; }
body.lsui-enabled .cfw-cart-table .subscription-details { font-size: 12px; line-height: 1.6; color: var(--lsui-muted); }
/* The script combines only a simple recurring shipping label and amount into
   one cell; style that cell without changing the surrounding totals table. */
body.lsui-enabled .cart_totals .shop_table tr.recurring-total.shipping > td.lsui-recurring-shipping-cell {
	display: table-cell !important;
	width: auto !important;
	max-width: none !important;
	padding: 13px 14px !important;
	text-align: left !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}
body.lsui-enabled .cart_totals .shop_table tr.recurring-total.shipping > td.lsui-recurring-shipping-cell::before { display: none !important; content: none !important; }
body.lsui-enabled .lsui-recurring-shipping-layout { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
body.lsui-enabled .lsui-recurring-shipping-label { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--lsui-ink); font-weight: 600; }
body.lsui-enabled .lsui-recurring-shipping-amount { flex: 0 0 auto; max-width: 55%; margin-inline-start: auto; overflow: hidden; white-space: nowrap; text-align: right; color: var(--lsui-navy); }
body.lsui-enabled .lsui-recurring-shipping-amount .woocommerce-shipping-contents { white-space: normal; }
body.lsui-enabled .cfw-totals-list tr.recurring-total.shipping { display: flex !important; align-items: center; flex-wrap: nowrap; gap: 8px; }
body.lsui-enabled .cfw-totals-list tr.recurring-total.shipping > th { flex: 1 1 0%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.lsui-enabled .cfw-totals-list tr.recurring-total.shipping > td { flex: 0 0 auto; margin-inline-start: auto; text-align: right; white-space: nowrap; color: var(--lsui-navy); }
body.lsui-enabled .lsui-receipt ul.order_details { display: flex; flex-wrap: wrap; gap: 20px; background: var(--lsui-soft); border: 1px solid var(--lsui-line); padding: 24px; border-radius: 14px; margin: 0 0 24px; }
body.lsui-enabled .lsui-receipt ul.order_details li { float: none; flex: 1 1 150px; margin: 0; padding: 0; border: 0; color: var(--lsui-muted); font-size: 12px; }
body.lsui-enabled .lsui-receipt ul.order_details strong { display: block; margin-top: 6px; color: var(--lsui-navy); font-size: 15px; }
body.lsui-enabled .lsui-payment #payment { border: 1px solid var(--lsui-line); border-radius: 14px; background: #fff; padding: 22px; }
body.lsui-enabled .lsui-payment #payment ul.payment_methods { background: transparent; padding: 0 0 16px; border-bottom: 1px solid var(--lsui-line); list-style: none; }
body.lsui-enabled .lsui-payment #payment ul.payment_methods li { list-style: none; margin: 0; }
body.lsui-enabled .lsui-payment table.shop_table th.product-quantity { width: 76px; overflow-wrap: normal; letter-spacing: 0; }
body.lsui-enabled .lsui-payment table.shop_table th.product-total { width: 110px; }
body.lsui-enabled .lsui-payment table.shop_table tfoot th { color: var(--lsui-muted); font-weight: 500; }
body.lsui-enabled .lsui-payment table.shop_table tfoot tr:last-child > * { border-bottom: 0; background: var(--lsui-soft); color: var(--lsui-navy); font-weight: 650; }
body.lsui-enabled .lsui-payment #payment .payment_box { border-radius: 10px; background: var(--lsui-soft); }
body.lsui-enabled .lsui-payment #place_order { background: var(--lsui-accent); color: #fff; min-height: 46px; border-radius: 9px; padding: 12px 20px; white-space: normal; }
body.lsui-enabled .lsui-payment .update-all-subscriptions-payment-method-wrap { display: block; margin-block: 16px; font-size: 13px; }
body.lsui-enabled .wcs-gifting-recipient-details-content { padding: 20px; border: 1px solid var(--lsui-line); border-radius: 12px; background: var(--lsui-soft); margin-block: 18px; }

/* Keep the native toggle's hidden, loading, disabled and on/off states intact. */
body.lsui-enabled .lsui-detail .subscription-auto-renew-toggle__i { width: 40px; height: 24px; border-width: 3px; border-color: var(--lsui-accent); background: var(--lsui-accent); }
body.lsui-enabled .lsui-detail .wcs-auto-renew-toggle a { color: var(--lsui-accent); }
body.lsui-enabled .lsui-detail .subscription-auto-renew-toggle__i::before { width: 18px; height: 18px; }
body.lsui-enabled .lsui-detail .subscription-auto-renew-toggle--off .subscription-auto-renew-toggle__i { border-color: #7c899e; background: #7c899e; }
body.lsui-enabled .lsui-detail .subscription-auto-renew-toggle--disabled { opacity: .5; cursor: not-allowed; }
body.lsui-enabled .lsui-detail .subscription-auto-renew-toggle-disabled-note { display: block; margin: 8px 0 0; font-size: 11px; color: var(--lsui-muted); font-weight: 400; }
body.lsui-enabled .wcs-modal.open { background-color: #12213f99; z-index: 100010; }
body.lsui-enabled .wcs-modal.open > .content-wrapper { width: 620px; max-width: calc(100% - 32px); min-width: 0; max-height: calc(100dvh - 32px); height: auto; padding: 28px; border-radius: 18px; box-shadow: 0 24px 80px #10204140; color: var(--lsui-ink); overflow: auto; }
body.lsui-enabled .wcs-modal .content-wrapper .modal-header { height: auto; padding-inline-end: 40px; }
body.lsui-enabled .wcs-modal .modal-header h2 { font-size: 22px; line-height: 1.4; color: var(--lsui-navy); margin: 0 0 20px; }
body.lsui-enabled .wcs-modal .content-wrapper .close { width: 36px; height: 36px; display: grid; place-items: center; color: var(--lsui-navy); border-radius: 8px; background: var(--lsui-soft); }
body.lsui-enabled .wcs-modal.open > .content-wrapper > .content { height: auto; min-height: 0; width: 100%; }
body.lsui-enabled .wcs-modal .content-wrapper .modal-footer { flex-wrap: wrap; gap: 10px; padding-top: 16px; }
body.lsui-enabled .wcs_early_renew_modal_totals_table { height: auto; overflow: auto; }
body.lsui-enabled .wcs_early_renew_modal_note { position: static; width: auto; }
body.lsui-enabled #early_renewal_modal_submit { font-size: 14px; border-radius: 9px; padding: 13px 18px; }

@media (max-width: 900px) {
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) :is(th, td) { padding-inline: 12px; }
}
@media (max-width: 768px) {
	body.lsui-enabled .lsui-hero { padding: 24px; gap: 16px; }
	body.lsui-enabled .lsui-hero__icon { flex-basis: 52px; height: 52px; border-radius: 16px; }
	body.lsui-enabled .lsui-hero__icon svg { width: 36px; height: 36px; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) { display: block; border: 0; background: transparent; box-shadow: none; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; display: block; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody { display: block; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody tr { display: block; border: 1px solid var(--lsui-line); border-radius: 14px; background: #fff; margin: 0 0 16px; padding: 6px 18px; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td { display: block; width: 100%; text-align: end !important; padding: 13px 0; border-radius: 0; border-bottom: 1px solid #edf0f5; background: transparent !important; min-height: 44px; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td::before { content: attr(data-title); float: inline-start; font-size: 11px; font-weight: 550; color: var(--lsui-muted); margin-inline-end: 14px; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td::after { content: ''; display: block; clear: both; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td.subscription-id { text-align: start !important; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td.subscription-id::before { display: none; }
	body.lsui-enabled .lsui-item-names { max-width: none; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) tbody td:last-child { border: 0; }
	body.lsui-enabled :is(.wcsatt-add-to-subscription-options, .wcsatt-add-cart-to-subscription-options) table.my_account_subscriptions tbody td.subscription-status { display: none; }
	body.lsui-enabled table.shop_table:is(.woocommerce-orders-table--subscriptions, .my_account_subscriptions) .subscription-actions a.button { width: 100%; margin: 4px 0; }
	body.lsui-enabled .lsui-detail table.shop_table :is(th, td) { padding: 14px 12px; }
	body.lsui-enabled .lsui-detail table.subscription_details td:first-child { width: 36%; }
	body.lsui-enabled .lsui-detail .subscription_details a.button { display: flex; width: 100%; margin: 6px 0; }
	body.lsui-enabled .lsui-detail .woocommerce-customer-details .col-1,
	body.lsui-enabled .lsui-detail .woocommerce-customer-details .col-2 { width: 100%; float: none; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table { display: block; border: 0; background: transparent; box-shadow: none; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; display: block; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table tbody { display: block; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table tbody tr { display: block; padding: 6px 18px; border: 1px solid var(--lsui-line); border-radius: 14px; margin-bottom: 16px; background: #fff; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table tbody td { display: block; width: 100%; padding: 12px 0; text-align: end !important; border-radius: 0; background: transparent; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table tbody td::before { content: attr(data-title); float: inline-start; color: var(--lsui-muted); font-size: 11px; font-weight: 500; margin-inline-end: 12px; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table tbody td::after { content: ''; display: block; clear: both; }
	body.lsui-enabled #woocommerce-subscriptions-related-orders-table .order-actions a.button { width: 100%; margin: 4px 0; }
}
@media (max-width: 480px) {
	body.lsui-enabled .lsui-hero { padding: 22px; }
	body.lsui-enabled .lsui-hero__icon { display: none; }
	body.lsui-enabled .lsui-summary { grid-template-columns: 1fr; padding: 0 18px; }
	body.lsui-enabled .lsui-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; }
	body.lsui-enabled .lsui-summary > div + div { border-inline-start: 0; border-top: 1px solid var(--lsui-line); }
	body.lsui-enabled .lsui-summary dt { margin: 0; flex: 0 0 35%; }
	body.lsui-enabled .lsui-summary dd { text-align: end; font-size: 13px; }
	body.lsui-enabled .lsui-summary__total .amount { font-size: 17px; }
	body.lsui-enabled .no_subscriptions.woocommerce-info { padding: 24px; }
	body.lsui-enabled .no_subscriptions a.button { width: 100%; }
	body.lsui-enabled :is(.wcsatt-options-wrapper, .wcsatt-add-to-subscription-wrapper, .wcsatt-add-cart-to-subscription-wrapper) { padding: 15px; }
	body.lsui-enabled .wcs-modal.open > .content-wrapper { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	body.lsui-enabled :is(.lsui-account, .wcsatt-options-wrapper, .wcs-modal) *,
	body.lsui-enabled .wcs-modal { transition: none !important; animation: none !important; }
}
