/* Popup Checkout — modern popup shell */

.rixes-occ-checkout-open {
	overflow: hidden;
}

.rixes-occ-checkout-popup {
	--rixes-occ-popup-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--rixes-occ-popup-font);
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-popup[hidden] {
	display: none !important;
}

.rixes-occ-checkout-popup :focus-visible {
	outline: 2px solid var(--rixes-occ-popup-accent, #10b981);
	outline-offset: 2px;
}

.rixes-occ-checkout-popup__overlay {
	position: absolute;
	inset: 0;
	background: var(--rixes-occ-popup-overlay, rgba(15, 23, 42, 0.45));
	backdrop-filter: blur(4px);
}

.rixes-occ-checkout-popup__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(var(--rixes-occ-popup-max-width, 920px), calc(100vw - 2rem));
	max-height: none;
	height: auto;
	overflow: visible;
	background: var(--rixes-occ-popup-bg, #fff);
	border-radius: var(--rixes-occ-popup-radius, 20px);
	border: 0;
	box-shadow: var(--rixes-occ-popup-shadow, 0 25px 50px -12px rgba(15, 23, 42, 0.18));
}

/* Accent title strip (card layouts) — not the WC #place_order hook */
.rixes-occ-checkout-popup__title-bar {
	display: none;
	position: relative;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0.75rem 3.25rem;
	background: var(--rixes-occ-popup-accent, #10b981);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	border-radius: var(--rixes-occ-popup-radius-lg, 22px)
		var(--rixes-occ-popup-radius-lg, 22px) 0 0;
}

.rixes-occ-checkout-popup__title-bar:not([hidden]) {
	display: flex;
}

.rixes-occ-checkout-popup__title-bar-text {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	margin: 0;
	text-align: center;
}

/* Banner is above the title bar; accent strip spans full panel width below it */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner
	.rixes-occ-checkout-popup__banner.rixes-occ-checkout-popup__banner--visible
	+ .rixes-occ-checkout-popup__title-bar:not([hidden]) {
	border-radius: 0;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card
	.rixes-occ-checkout-popup__title-bar:not([hidden]):first-child {
	border-radius: var(--rixes-occ-popup-radius-lg, 22px)
		var(--rixes-occ-popup-radius-lg, 22px) 0 0;
}

/* WooCommerce payment hooks — off-screen, never overlay banner or panel chrome */
.rixes-occ-checkout-popup .rixes-occ-checkout-wc-hooks {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.rixes-occ-checkout-popup .rixes-occ-checkout-wc-hooks #place_order,
.rixes-occ-checkout-popup .rixes-occ-checkout-wc-hooks .wc-custom-place-order-button,
.rixes-occ-checkout-popup form.checkout > .rixes-occ-checkout-wc-hooks .button.alt {
	display: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__panel {
	max-height: 90vh;
	overflow: hidden;
}

.rixes-occ-checkout-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #374151;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, transform 0.15s ease;
}

.rixes-occ-checkout-popup__close:hover {
	background: #fff;
	transform: scale(1.04);
}

/* Close lives inside accent title bar on card layouts */
.rixes-occ-checkout-popup--title-bar-active .rixes-occ-checkout-popup__title-bar .rixes-occ-checkout-popup__close {
	top: 50%;
	right: 12px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transform: translateY(-50%);
}

.rixes-occ-checkout-popup--title-bar-active
	.rixes-occ-checkout-popup__title-bar
	.rixes-occ-checkout-popup__close:hover {
	background: rgba(255, 255, 255, 0.34);
	color: #fff;
	transform: translateY(-50%) scale(1.04);
}

.rixes-occ-checkout-popup--title-bar-active
	.rixes-occ-checkout-popup__title-bar
	.rixes-occ-checkout-popup__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Product banner visible, before title bar mounts: close floats on image */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner:not(.rixes-occ-checkout-popup--title-bar-active)
	.rixes-occ-checkout-popup__panel
	> .rixes-occ-checkout-popup__close {
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
}

.rixes-occ-checkout-popup__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0;
	overflow: visible;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__content {
	overflow: hidden;
}

.rixes-occ-checkout-popup__checkout {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.rixes-occ-checkout-popup__scroll {
	flex: 0 1 auto;
	overflow: visible;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 45%, #cbd5e1) transparent;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__scroll::-webkit-scrollbar {
	width: 6px;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__scroll::-webkit-scrollbar-track {
	background: transparent;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__scroll::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 50%, #94a3b8);
}

.rixes-occ-checkout-popup__footer {
	flex-shrink: 0;
	padding: 0.6rem 1.25rem 0.75rem;
	border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
	background: var(--rixes-occ-popup-bg, #fff);
	position: sticky;
	bottom: 0;
	z-index: 4;
	box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.04);
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__footer:not(.rixes-occ-checkout-popup__footer--in-aside) {
	background: var(--rixes-occ-popup-bg, #fff);
}

.rixes-occ-checkout-popup__footer-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem 0.65rem;
	max-width: 100%;
}

.rixes-occ-checkout-popup__legal {
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--rixes-occ-popup-muted, #6b7280);
	text-align: center;
}

.rixes-occ-checkout-popup__legal[hidden] {
	display: none !important;
}

.rixes-occ-checkout-popup__legal a {
	color: var(--rixes-occ-popup-muted, #6b7280);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rixes-occ-checkout-popup__legal a:hover {
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-popup__loading,
.rixes-occ-checkout-popup__error {
	margin: 2rem 1.5rem 1rem;
}

.rixes-occ-checkout-popup__error {
	color: #b91c1c;
	font-weight: 500;
}

.rixes-occ-checkout-popup[data-rixes-occ-state="loading"] .rixes-occ-checkout-popup__loading {
	display: block;
}

.rixes-occ-checkout-popup__body {
	min-height: 0;
}

/* Two-column layout */
.rixes-occ-checkout-popup__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	min-height: 0;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__layout,
.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"] .rixes-occ-checkout-popup__layout,
.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"] .rixes-occ-checkout-popup__layout {
	min-height: 360px;
}

.rixes-occ-checkout-popup__main {
	padding: 1.75rem 1.5rem 1.75rem 1.75rem;
	overflow: visible;
}

.rixes-occ-checkout-popup__main-inner {
	max-width: 100%;
}

.rixes-occ-checkout-popup__aside {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--rixes-occ-popup-surface, #f9fafb);
	border-left: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
}

.rixes-occ-checkout-popup__aside > .rixes-occ-checkout-popup__footer--in-aside {
	width: 100%;
}

.rixes-occ-checkout-summary__heading {
	margin: 0 0 1.25rem;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-summary {
	flex: 1;
	min-height: 0;
}

.rixes-occ-checkout-summary--totals-only .rixes-occ-checkout-summary__total {
	margin-top: 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
}

.rixes-occ-checkout-summary__items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.rixes-occ-checkout-summary__item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 0.65rem 0.85rem;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
}

.rixes-occ-checkout-summary__item--editable {
	align-items: start;
}

.rixes-occ-checkout-summary__item-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.rixes-occ-checkout-summary__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.rixes-occ-checkout-summary__qty-static {
	font-size: 0.8125rem;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-summary__qty-input {
	width: 4.25rem;
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--rixes-occ-popup-divider, #d1d5db);
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.2;
	color: var(--rixes-occ-popup-text, #111827);
	background: #fff;
}

.rixes-occ-checkout-summary__remove {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rixes-occ-popup-accent, #10b981);
	text-decoration: underline;
	cursor: pointer;
}

.rixes-occ-checkout-summary__remove:hover {
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-summary__item:last-child {
	border-bottom: 0;
}

.rixes-occ-checkout-summary__item img {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rixes-occ-checkout-summary__name {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-summary__line {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rixes-occ-popup-text, #111827);
	white-space: nowrap;
}

.rixes-occ-checkout-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.4rem 0;
	font-size: 0.9375rem;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-summary__row strong {
	font-weight: 600;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-summary__total {
	margin-top: 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	font-size: 1rem;
	font-weight: 700;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-summary__total strong {
	font-size: 1.0625rem;
}

.rixes-occ-checkout-aside-fields {
	margin-top: 0.5rem;
}

.rixes-occ-checkout-aside-fields .rixes-occ-checkout-section {
	margin-bottom: 1rem;
}

.rixes-occ-checkout-aside-fields .rixes-occ-checkout-section__title {
	display: none;
}

.rixes-occ-checkout-aside-fields .rixes-occ-checkout-section--aside .rixes-occ-checkout-section__title {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"] .rixes-occ-checkout-aside-fields .rixes-occ-checkout-section--payment {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
}

.rixes-occ-checkout-popup__scroll > form.rixes-occ-checkout-form {
	display: contents;
}

/* Actions live in sticky footer (popup-shell.php) — inline, right-aligned */
.rixes-occ-checkout-popup__aside-actions,
.rixes-occ-checkout-popup__footer-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem 0.65rem;
	margin-top: 0;
	padding-top: 0;
}

.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-next,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__cta,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__secondary,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__wizard-next,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__cta,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__secondary {
	width: auto;
	flex: 0 0 auto;
}

.rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup__wizard-next {
	padding: 0.6rem 1rem;
	border: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	border-radius: 999px;
	background: #fff;
	color: var(--rixes-occ-popup-text, #111827);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rixes-occ-checkout-popup__wizard-prev:hover,
.rixes-occ-checkout-popup__wizard-next:hover {
	border-color: var(--rixes-occ-popup-accent, #10b981);
	background: #fff;
}

.rixes-occ-checkout-popup__cta {
	width: auto;
	min-width: 120px;
	margin: 0;
	padding: 0.7rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--rixes-occ-popup-accent, #10b981);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 35%, transparent);
	transition:
		background 0.15s ease,
		transform 0.1s ease,
		box-shadow 0.15s ease;
}

.rixes-occ-checkout-popup__cta:hover {
	background: var(--rixes-occ-popup-accent-hover, #059669);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 40%, transparent);
}

.rixes-occ-checkout-popup__cta:active {
	transform: translateY(1px);
}

.rixes-occ-checkout-popup__cta:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* Form fields — clean, airy */
.rixes-occ-checkout-section {
	margin-bottom: 1.5rem;
}

.rixes-occ-checkout-section__title {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--rixes-occ-popup-text, #111827);
}

.rixes-occ-field {
	margin-bottom: 1rem;
}

.rixes-occ-field__label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rixes-occ-popup-text, #374151);
}

.rixes-occ-field__label .required {
	color: var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-field__input {
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	border-radius: 10px;
	background: var(--rixes-occ-popup-bg, #fff);
	font-size: 0.9375rem;
	color: var(--rixes-occ-popup-text, #111827);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rixes-occ-field__input:focus {
	border-color: var(--rixes-occ-popup-accent, #10b981);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 18%, transparent);
	outline: none;
}

.rixes-occ-field__input.rixes-occ-field--error,
.rixes-occ-field--error .rixes-occ-field__input {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.rixes-occ-field__desc {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

/* Terms — checkbox + linked terms page copy */
.rixes-occ-field--terms .rixes-occ-field__checkbox,
.rixes-occ-field--terms .rixes-occ-field__terms-label,
.rixes-occ-field--checkbox .rixes-occ-field__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--rixes-occ-popup-muted, #4b5563);
	cursor: pointer;
}

.rixes-occ-field--terms .rixes-occ-field__terms-copy {
	flex: 1;
	min-width: 0;
}

.rixes-occ-field--terms .rixes-occ-field__terms-copy a {
	color: var(--rixes-occ-popup-accent, #10b981);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rixes-occ-field--terms .rixes-occ-field__terms-copy a:hover {
	color: var(--rixes-occ-popup-accent-hover, #059669);
}

/* Terms — square checkbox (not the circular style used for other checkboxes) */
.rixes-occ-field--terms .rixes-occ-field__checkbox input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: checkbox;
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	min-width: 1.125rem;
	margin: 0.15rem 0 0;
	border: none;
	border-radius: 0.2rem;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	accent-color: var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-field--terms .rixes-occ-field__checkbox input[type="checkbox"]:checked {
	box-shadow: none;
}

.rixes-occ-field--checkbox .rixes-occ-field__checkbox input[type="checkbox"] {
	appearance: none;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0.1rem 0 0;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rixes-occ-field--checkbox .rixes-occ-field__checkbox input[type="checkbox"]:checked {
	border-color: var(--rixes-occ-popup-accent, #10b981);
	background: var(--rixes-occ-popup-accent, #10b981);
	box-shadow: inset 0 0 0 3px #fff;
}

.rixes-occ-field--terms a,
.rixes-occ-field--checkbox a {
	color: var(--rixes-occ-popup-accent, #10b981);
	font-weight: 600;
	text-decoration: none;
}

.rixes-occ-field--terms a:hover,
.rixes-occ-field--checkbox a:hover {
	text-decoration: underline;
}

/* Payment methods — WC-compatible list + gateway card fields */
.rixes-occ-field__payment-methods,
.rixes-occ-wc-payment-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

.rixes-occ-field__payment-methods {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rixes-occ-payment-method-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rixes-occ-checkout-popup .payment_box {
	padding: 0.75rem 0 0.25rem;
	margin: 0;
}

.rixes-occ-checkout-popup .payment_box .form-row,
.rixes-occ-checkout-popup .payment_box fieldset {
	margin-bottom: 0.65rem;
}

.rixes-occ-checkout-popup .payment_box input.input-text,
.rixes-occ-checkout-popup .payment_box select {
	width: 100%;
	max-width: 100%;
}

.rixes-occ-field__payment-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	border-radius: 10px;
	background: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rixes-occ-field__payment-option:has(input:checked) {
	border-color: var(--rixes-occ-popup-accent, #10b981);
	box-shadow: 0 0 0 1px var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-field__payment-option input[type="radio"] {
	accent-color: var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-field__coupon {
	display: flex;
	gap: 0.5rem;
}

.rixes-occ-field__coupon .rixes-occ-field__input {
	flex: 1;
}

.rixes-occ-field__coupon .rixes-occ-coupon-apply {
	flex-shrink: 0;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 10px;
	background: var(--rixes-occ-popup-surface, #f3f4f6);
	color: var(--rixes-occ-popup-text, #111827);
	font-weight: 600;
	cursor: pointer;
}

.rixes-occ-field__coupon .rixes-occ-coupon-apply:hover {
	background: #e5e7eb;
}

.rixes-occ-checkout-field-errors {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #991b1b;
	font-size: 0.875rem;
}

.rixes-occ-checkout-field-errors__list {
	margin: 0;
	padding-left: 1.1rem;
}

.rixes-occ-checkout-upsell {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
	font-size: 0.875rem;
}

.rixes-occ-checkout-upsell__title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-success {
	text-align: center;
	padding: 3rem 1.5rem;
}

.rixes-occ-checkout-success__icon {
	font-size: 2.75rem;
	color: var(--rixes-occ-popup-accent, #10b981);
	margin: 0;
}

.rixes-occ-checkout-success__title {
	margin: 0.75rem 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.rixes-occ-checkout-success__link {
	color: var(--rixes-occ-popup-accent, #10b981);
	font-weight: 600;
}

.rixes-occ-checkout-popup--dark .rixes-occ-checkout-popup__panel {
	background: #18181b;
	color: #f4f4f5;
}

.rixes-occ-checkout-popup--dark .rixes-occ-checkout-popup__aside {
	background: #27272a;
	border-left-color: #3f3f46;
}

.rixes-occ-checkout-popup--dark .rixes-occ-field__input {
	background: #27272a;
	border-color: #3f3f46;
	color: #f4f4f5;
}

/* Mobile responsive rules — see end of file. They live there so that they reliably win
   source-order battles with the wide / actions_right desktop rules defined later in this file. */

/* --- Popup layout presets (card variants) --- */

.rixes-occ-checkout-popup__hero {
	display: none;
	text-align: center;
	padding: 1.5rem 1.5rem 0.5rem;
}

.rixes-occ-checkout-popup__hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 0.75rem;
	border-radius: 14px;
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #2563eb) 12%, #fff);
	color: var(--rixes-occ-popup-accent, #2563eb);
}

.rixes-occ-checkout-popup__hero-title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.rixes-occ-checkout-popup__hero-lead {
	margin: 0;
	font-size: 0.875rem;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-popup__secondary {
	width: auto;
	min-width: 88px;
	margin: 0;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	border-radius: 999px;
	background: var(--rixes-occ-popup-surface-elevated, #fff);
	color: var(--rixes-occ-popup-muted, #6b7280);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.rixes-occ-checkout-popup__secondary:hover {
	color: var(--rixes-occ-popup-text, #111827);
	text-decoration: underline;
}

/* Wide layouts (two column, dark, actions right) */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__panel {
	width: min(var(--rixes-occ-popup-max-width, 920px), calc(100vw - 2rem));
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__layout {
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	min-height: 360px;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__hero,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__banner {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	border: 0 !important;
}

/* Banner hidden everywhere except Product banner layout when JS marks it visible */
.rixes-occ-checkout-popup__banner:not(.rixes-occ-checkout-popup__banner--visible) {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__main {
	padding: 1.75rem 1.5rem 1.75rem 1.75rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__aside {
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--rixes-occ-popup-surface, #f9fafb);
	border-left: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
}

/*
 * Wide two-column: no popup-level scroll — left column scrolls fields;
 * right column keeps summary + actions visible (aside scrolls only if its stack overflows).
 */
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__content,
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__body,
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__checkout {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__scroll > form.rixes-occ-checkout-form {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__layout {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: 100%;
	overflow: hidden;
	align-items: stretch;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main {
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 45%, #cbd5e1) transparent;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main::-webkit-scrollbar {
	width: 6px;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main::-webkit-scrollbar-track {
	background: transparent;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 50%, #94a3b8);
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__aside {
	min-height: 0;
	overflow: hidden;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-summary__heading {
	flex-shrink: 0;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll [data-rixes-occ-summary],
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-aside-fields {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 35%, #cbd5e1) transparent;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll [data-rixes-occ-summary]::-webkit-scrollbar,
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-aside-fields::-webkit-scrollbar {
	width: 6px;
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll [data-rixes-occ-summary]::-webkit-scrollbar-thumb,
.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-aside-fields::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 40%, #94a3b8);
}

.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__footer--in-aside {
	flex-shrink: 0;
	margin-top: auto;
}

@media (max-width: 768px) {
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__layout {
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll [data-rixes-occ-summary],
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-aside-fields {
		overflow: visible;
		max-height: none;
	}
}

/* Two column: Pay now spans full width of the summary column */
.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__footer--in-aside .rixes-occ-checkout-popup__footer-actions {
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	gap: 0.5rem;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__footer--in-aside .rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__cta,
.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__footer--in-aside .rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__footer--in-aside .rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-next {
	width: 100%;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__footer--in-aside .rixes-occ-checkout-popup__cta {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

/* Pill-shaped footer actions (cancel, continue, pay now) */
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__cta,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__secondary,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-next,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__cta,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__secondary,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__wizard-prev,
.rixes-occ-checkout-popup__aside-actions .rixes-occ-checkout-popup__wizard-next {
	border-radius: 9999px;
}

.rixes-occ-checkout-popup--wizard-hide-summary .rixes-occ-checkout-popup__aside {
	align-content: flex-start;
}

.rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> .rixes-occ-checkout-summary__heading,
.rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> [data-rixes-occ-summary] {
	display: none !important;
}

/* Two-column layouts: summary rail always visible (no multistep). */
.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> .rixes-occ-checkout-summary__heading,
.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> [data-rixes-occ-summary],
.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> .rixes-occ-checkout-summary__heading,
.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> [data-rixes-occ-summary],
.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> .rixes-occ-checkout-summary__heading,
.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"].rixes-occ-checkout-popup--wizard-hide-summary
	.rixes-occ-checkout-popup__aside
	> [data-rixes-occ-summary] {
	display: block !important;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] [data-rixes-occ-summary],
.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"] [data-rixes-occ-summary],
.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"] [data-rixes-occ-summary] {
	display: block;
}

/* Compact card shell (radio / split / banner) — full preset width; centered is narrower in theme */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-card:not(.rixes-occ-layout-mode-centered) .rixes-occ-checkout-popup__panel {
	width: min(var(--rixes-occ-popup-max-width, 480px), calc(100vw - 2rem));
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__layout {
	grid-template-columns: 1fr;
	min-height: 0;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__main {
	padding: 0.25rem 1.5rem 0.75rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__aside {
	border-left: 0;
	border-top: 0;
	padding: 0 1.5rem 0.75rem;
	background: transparent;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__footer {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__secondary {
	display: block;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__hero {
	display: none;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-card:not(.rixes-occ-layout-mode-banner) .rixes-occ-checkout-popup__hero:not([hidden]) {
	display: block;
}

.rixes-occ-checkout-popup__footer--in-aside {
	margin-top: auto;
	padding: 0.75rem 0 0;
	border-top: 0;
	background: transparent;
	position: static;
}

.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__footer--in-aside {
	position: sticky;
	bottom: 0;
	padding-bottom: 0.25rem;
	background: var(--rixes-occ-popup-surface, #f9fafb);
	z-index: 3;
}

.rixes-occ-checkout-popup--dark .rixes-occ-checkout-popup__footer--in-aside {
	background: #27272a;
}

/* Centered card — compact, centered stack (icon header, dashed summary) */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-card[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__hero {
	padding-top: 1.75rem;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__hero {
	padding-top: 1.75rem;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__hero-lead {
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main {
	text-align: center;
	padding-bottom: 0.5rem;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main .rixes-occ-field,
.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main .rixes-occ-checkout-section {
	text-align: left;
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main .rixes-occ-checkout-section__title {
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__aside {
	text-align: center;
	padding-top: 0.25rem;
	border-top: 1px dashed var(--rixes-occ-popup-divider, #e5e7eb);
	margin: 0 1.5rem;
	padding-left: 0;
	padding-right: 0;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-summary__heading {
	display: none;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-summary__items {
	text-align: left;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-field--payment_method {
	max-width: 380px;
	margin-left: auto;
	margin-right: auto;
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-field__payment-option {
	justify-content: center;
	text-align: center;
}

/* Card + radio list — vertical list with visible radio circles (not chips) */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-checkout-popup__main-inner {
	display: block;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-checkout-popup__main {
	padding-top: 0.5rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-field--payment_method {
	margin-top: 0.75rem;
	padding-top: 0.85rem;
	border-top: 2px solid var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-field__payment-methods.rixes-occ-radio-stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-radio-stack .rixes-occ-field__payment-option {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 58px;
	margin: 0;
	padding: 0.85rem 1rem 0.85rem 3rem;
	border-radius: 14px;
	border: 2px solid var(--rixes-occ-popup-divider, #e5e7eb);
	background: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-radio-stack .rixes-occ-field__payment-option:has(input:checked) {
	border-color: var(--rixes-occ-popup-accent, #10b981);
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 8%, #fff);
	box-shadow: inset 4px 0 0 var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-radio-stack .rixes-occ-field__payment-option input[type="radio"] {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block !important;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--rixes-occ-popup-accent, #10b981);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-field--terms .rixes-occ-field__checkbox,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-field--checkbox .rixes-occ-field__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.75rem 0;
	border: 0;
	background: transparent;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-field--terms .rixes-occ-field__checkbox input[type="checkbox"] {
	position: static;
	transform: none;
	display: inline-block !important;
	appearance: auto;
	-webkit-appearance: checkbox;
	width: 1.125rem;
	height: 1.125rem;
	min-height: 0;
	border: none;
	border-radius: 0.2rem;
	background: transparent;
	box-shadow: none;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-split-toggle {
	display: none !important;
}

/* Card + split toggles — 2-col fields + horizontal chip row */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 0.85rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-checkout-section,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-field--payment_method,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-field--terms,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-field--coupon,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-field--textarea,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner .rixes-occ-checkout-field-errors {
	grid-column: 1 / -1;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-field--payment_method {
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--rixes-occ-popup-divider, #d1d5db);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-field__payment-methods.rixes-occ-payment-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.65rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-payment-split .rixes-occ-field__payment-option {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-payment-method-item .payment_box {
	grid-column: 1 / -1;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-payment-split .rixes-occ-split-toggle__opt {
	width: 100%;
	min-height: 46px;
	border-radius: 10px;
	font-size: 0.8125rem;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-radio-stack,
.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-field__payment-option input[type="radio"] {
	display: none !important;
}

.rixes-occ-split-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin: 0.25rem 0 0.5rem;
}

.rixes-occ-split-toggle__opt {
	padding: 0.85rem 0.75rem;
	border: 1px solid var(--rixes-occ-popup-divider, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	color: var(--rixes-occ-popup-muted, #6b7280);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.rixes-occ-split-toggle__opt:hover {
	border-color: color-mix(in srgb, var(--rixes-occ-popup-accent, #2563eb) 40%, #e5e7eb);
}

.rixes-occ-split-toggle__opt.is-active {
	border-color: var(--rixes-occ-popup-accent, #2563eb);
	color: var(--rixes-occ-popup-accent, #2563eb);
	box-shadow: 0 0 0 1px var(--rixes-occ-popup-accent, #2563eb);
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #2563eb) 8%, #fff);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-field--checkbox .rixes-occ-field__checkbox {
	display: none;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-field--checkbox .rixes-occ-field__label-text {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rixes-occ-popup-text, #374151);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__aside {
	border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
	margin-top: 0.25rem;
	padding-top: 1rem;
}

/* Product banner — ONLY card_banner + --visible class */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner.rixes-occ-checkout-popup__banner--visible {
	position: relative;
	display: block !important;
	width: 100%;
	height: 168px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	visibility: visible !important;
	border-radius: 0;
	background: var(--rixes-occ-popup-surface, #f3f4f6);
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner--visible .rixes-occ-checkout-popup__banner-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner--visible .rixes-occ-checkout-popup__banner-overlay {
	position: absolute;
	inset: auto 0 0;
	padding: 1rem 1.25rem;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 100%);
	color: #fff;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner-title {
	margin: 0 0 0.2rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner-price {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	opacity: 0.95;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__panel {
	overflow: hidden;
	padding-top: 0;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner:not(.rixes-occ-checkout-popup--title-bar-active)
	.rixes-occ-checkout-popup__panel
	> .rixes-occ-checkout-popup__close {
	background: rgba(255, 255, 255, 0.9);
	color: #0f172a;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-summary__items {
	display: none;
}

.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-summary__heading {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

/* Actions on the right layout */
.rixes-occ-checkout-popup.rixes-occ-layout-mode-actions-right .rixes-occ-checkout-popup__layout {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"] .rixes-occ-checkout-popup__secondary:hover {
	text-decoration: none;
	border-color: var(--rixes-occ-popup-muted, #9ca3af);
}

.rixes-occ-checkout-popup__footer--actions-right .rixes-occ-checkout-popup__cta {
	min-width: 140px;
}

/* Success — full-panel overlay on top of checkout */
.rixes-occ-checkout-popup__success {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem 1.5rem;
	background: var(--rixes-occ-popup-bg, #fff);
	border-radius: inherit;
	overflow-x: hidden;
	overflow-y: auto;
	box-sizing: border-box;
}

.rixes-occ-checkout-popup__success[hidden] {
	display: none !important;
}

.rixes-occ-checkout-popup--success .rixes-occ-checkout-popup__close {
	z-index: 25;
}

.rixes-occ-checkout-popup--success .rixes-occ-checkout-popup__content {
	visibility: hidden;
	pointer-events: none;
}

.rixes-occ-checkout-popup--success.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__panel {
	overflow: hidden;
}

.rixes-occ-checkout-success--card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1rem 1.5rem;
}

.rixes-occ-checkout-success--card .rixes-occ-checkout-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 16px;
	background: color-mix(in srgb, var(--rixes-occ-popup-accent, #2563eb) 14%, #fff);
	color: var(--rixes-occ-popup-accent, #2563eb);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.rixes-occ-checkout-success--card .rixes-occ-checkout-success__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.rixes-occ-checkout-success--card .rixes-occ-checkout-success__subtitle {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: var(--rixes-occ-popup-muted, #6b7280);
}

.rixes-occ-checkout-success--card .rixes-occ-checkout-success__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 320px;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--rixes-occ-popup-accent, #2563eb);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.rixes-occ-checkout-success--card .rixes-occ-checkout-success__dismiss {
	margin-top: 0.75rem;
	border: 0;
	background: transparent;
	color: var(--rixes-occ-popup-muted, #6b7280);
	font-size: 0.9375rem;
	cursor: pointer;
}

/* ============================================================
   Mobile responsive (tablet → phone → compact phone → landscape)
   These rules sit at the end of the file on purpose: several
   `--layout-mode-wide` / `[data-rixes-occ-layout="…"]` rules above
   share the same specificity, so source-order wins.
   ============================================================ */

/* Tablet (≤900px): ease padding only — two-column layouts stay two-column. */
@media (max-width: 900px) {
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__main,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-actions-right .rixes-occ-checkout-popup__main {
		padding: 1.5rem 1.25rem 0.75rem;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-actions-right .rixes-occ-checkout-popup__aside {
		padding: 1.5rem 1.25rem 1.25rem;
	}
}

/* Phone bottom-sheet (≤768px) — primary mobile breakpoint. */
@media (max-width: 768px) {
	.rixes-occ-checkout-popup {
		align-items: flex-end;
		padding: 0;
	}

	/* Force every layout (including wide / actions-right) to stack on phones. */
	.rixes-occ-checkout-popup__layout,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__layout,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__layout,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"] .rixes-occ-checkout-popup__layout,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"] .rixes-occ-checkout-popup__layout,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-actions-right .rixes-occ-checkout-popup__layout {
		display: block;
		grid-template-columns: 1fr;
		min-height: 0;
	}

	/* Column-scroll (used by wide layouts) — drop its forced overflow so single column can flow. */
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__panel,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__content,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__body,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__checkout,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__scroll,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__scroll > form.rixes-occ-checkout-form,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__main,
	.rixes-occ-checkout-popup.rixes-occ-checkout-popup--column-scroll .rixes-occ-checkout-popup__aside {
		overflow: visible;
		min-height: 0;
		max-height: none;
	}

	/* Wide-layout asides: drop the left rail, sit below the form. */
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-wide .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="two_column"] .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="dark_slate"] .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="actions_right"] .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-actions-right .rixes-occ-checkout-popup__aside {
		border-left: 0;
		border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
		box-shadow: none;
		background: var(--rixes-occ-popup-surface, #f9fafb);
	}

	/* Bottom-sheet panel. */
	.rixes-occ-checkout-popup__panel {
		width: 100%;
		max-width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: var(--rixes-occ-popup-radius, 16px) var(--rixes-occ-popup-radius, 16px) 0 0;
		align-self: flex-end;
	}

	.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__panel {
		max-height: 92vh;
		max-height: 92dvh;
	}

	/* Drag-hint handle. */
	.rixes-occ-checkout-popup__panel::before {
		content: "";
		position: absolute;
		top: 6px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 999px;
		background: rgba(15, 23, 42, 0.18);
		z-index: 4;
		pointer-events: none;
	}

	.rixes-occ-checkout-popup--title-bar-active .rixes-occ-checkout-popup__panel::before,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__panel::before {
		display: none;
	}

	.rixes-occ-checkout-popup__main {
		padding: 1.25rem 1rem 0.5rem;
	}

	.rixes-occ-checkout-popup__aside {
		padding: 1rem 1rem 1.25rem;
		border-left: 0;
		border-top: 1px solid var(--rixes-occ-popup-divider, #eef0f3);
	}

	.rixes-occ-checkout-popup__footer {
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	}

	/* Stack footer actions: CTA full-width on top, wizard buttons share a row, cancel last. */
	.rixes-occ-checkout-popup__footer-actions {
		flex-wrap: wrap;
		justify-content: stretch;
		gap: 0.5rem;
	}

	.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__cta {
		flex: 1 1 100%;
		order: 1;
		min-height: 48px;
		min-width: 0;
	}

	.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-prev,
	.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__wizard-next {
		flex: 1 1 calc(50% - 0.25rem);
		order: 2;
		min-height: 44px;
	}

	.rixes-occ-checkout-popup__footer-actions .rixes-occ-checkout-popup__secondary {
		flex: 1 1 100%;
		order: 3;
		min-height: 40px;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		background: transparent;
		border: 0;
		text-align: center;
	}

	/* Touch-friendly inputs + iOS-safe font size (≥ 16px to prevent focus zoom). */
	.rixes-occ-field__input,
	.rixes-occ-checkout-popup .payment_box input.input-text,
	.rixes-occ-checkout-popup .payment_box select,
	.rixes-occ-checkout-summary__qty-input {
		font-size: 16px;
		padding: 0.75rem 0.85rem;
	}

	.rixes-occ-checkout-summary__qty-input {
		width: 4.5rem;
	}

	.rixes-occ-checkout-summary__item {
		grid-template-columns: 48px 1fr auto;
		gap: 0.5rem 0.65rem;
		padding: 0.65rem 0;
	}

	.rixes-occ-checkout-summary__item img {
		width: 48px;
		height: 48px;
	}

	.rixes-occ-checkout-summary__heading {
		font-size: 1rem;
		margin-bottom: 0.75rem;
	}

	.rixes-occ-checkout-popup__title-bar {
		padding-left: 1rem;
		padding-right: 3rem;
		min-height: 48px;
		font-size: 0.9375rem;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner.rixes-occ-checkout-popup__banner--visible {
		height: 140px;
	}

	.rixes-occ-field__coupon {
		flex-wrap: wrap;
	}
	.rixes-occ-field__coupon .rixes-occ-field__input {
		flex: 1 1 60%;
		min-width: 0;
	}
	.rixes-occ-field__coupon .rixes-occ-coupon-apply {
		flex: 1 1 auto;
		min-height: 44px;
	}

	.rixes-occ-checkout-popup__close {
		width: 40px;
		height: 40px;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__main,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-card .rixes-occ-checkout-popup__footer {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* True phone (≤640px). */
@media (max-width: 640px) {
	.rixes-occ-checkout-popup__panel {
		width: 100%;
	}

	.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main .rixes-occ-field,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__main .rixes-occ-checkout-section,
	.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-field--payment_method {
		max-width: 100%;
	}

	.rixes-occ-checkout-popup[data-rixes-occ-layout="card_centered"] .rixes-occ-checkout-popup__aside {
		margin: 0;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-radio-stack .rixes-occ-field__payment-option {
		min-height: 52px;
		padding: 0.75rem 0.85rem 0.75rem 2.75rem;
		font-size: 0.9375rem;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-radio .rixes-occ-radio-stack .rixes-occ-field__payment-option input[type="radio"] {
		left: 0.85rem;
		width: 20px;
		height: 20px;
	}

	.rixes-occ-checkout-popup__hero {
		padding: 1.25rem 1rem 0.25rem;
	}
	.rixes-occ-checkout-popup__hero-icon {
		width: 44px;
		height: 44px;
		margin-bottom: 0.5rem;
	}
	.rixes-occ-checkout-popup__hero-title {
		font-size: 1.125rem;
	}
	.rixes-occ-checkout-popup__hero-lead {
		font-size: 0.8125rem;
	}

	.rixes-occ-checkout-success {
		padding: 2rem 1rem;
	}

	.rixes-occ-checkout-summary__row,
	.rixes-occ-checkout-summary__total {
		font-size: 0.9375rem;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-split .rixes-occ-checkout-popup__main-inner {
		grid-template-columns: 1fr;
		gap: 0.5rem 0.65rem;
	}
}

/* Compact phones (≤480px). */
@media (max-width: 480px) {
	.rixes-occ-checkout-popup__main {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}
	.rixes-occ-checkout-popup__aside,
	.rixes-occ-checkout-popup__footer {
		padding-left: 0.9rem;
		padding-right: 0.9rem;
	}

	.rixes-occ-checkout-popup__close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}

	.rixes-occ-checkout-summary__item {
		grid-template-columns: 44px 1fr auto;
		gap: 0.4rem 0.55rem;
	}
	.rixes-occ-checkout-summary__item img {
		width: 44px;
		height: 44px;
	}

	.rixes-occ-checkout-summary__name {
		font-size: 0.875rem;
	}
	.rixes-occ-checkout-summary__line {
		font-size: 0.8125rem;
	}

	.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner.rixes-occ-checkout-popup__banner--visible {
		height: 120px;
	}

	.rixes-occ-checkout-popup__title-bar {
		padding-right: 2.75rem;
		font-size: 0.875rem;
	}
}

/* Short / landscape phones. */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
	.rixes-occ-checkout-popup__hero,
	.rixes-occ-checkout-popup.rixes-occ-layout-mode-banner .rixes-occ-checkout-popup__banner {
		display: none !important;
	}
	.rixes-occ-checkout-popup__panel {
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		border-radius: 0;
	}
	.rixes-occ-checkout-popup--scrollable .rixes-occ-checkout-popup__panel {
		max-height: 100vh;
		max-height: 100dvh;
	}
	.rixes-occ-checkout-popup__panel::before {
		display: none;
	}
}

/* Touch devices: skip hover transforms that feel laggy after tap. */
@media (hover: none) {
	.rixes-occ-checkout-popup__close:hover {
		transform: none;
	}
	.rixes-occ-checkout-popup--title-bar-active .rixes-occ-checkout-popup__title-bar .rixes-occ-checkout-popup__close:hover {
		transform: translateY(-50%);
	}
	.rixes-occ-checkout-popup__cta:hover {
		box-shadow: 0 4px 14px color-mix(in srgb, var(--rixes-occ-popup-accent, #10b981) 35%, transparent);
	}
}
