.axs-method-options {
	border: 0;
	padding: 0;
	margin: 18px 0 0;
	min-width: 0;
}

.axs-method-options legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 0.875em;
	font-weight: 600;
	color: #475569;
}

.axs-method-options label.axs-method-option {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	padding: 15px 16px;
	margin: 0 0 10px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #172b40;
	cursor: pointer;
	line-height: 1.45;
	transition: border-color 120ms ease, background-color 120ms ease;
}

.axs-method-options label.axs-method-option:hover {
	border-color: #64748b;
}

.axs-method-options label.axs-method-option.is-selected {
	border-color: #1e3a5f;
	background: #f2f6fa;
	box-shadow: inset 0 0 0 1px #1e3a5f;
}

.axs-method-options label.axs-method-option:focus-within {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
}

/* Use the native single-choice control, with no custom checkmark. */
.axs-method-options .axs-method-option input.axs-method-option__input {
	appearance: auto;
	-webkit-appearance: radio;
	accent-color: #1e3a5f;
	position: static;
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: revert;
	border-radius: revert;
	background: revert;
	box-shadow: none;
	cursor: pointer;
}

.axs-method-options .axs-method-option input.axs-method-option__input::before,
.axs-method-options .axs-method-option input.axs-method-option__input::after {
	content: none !important;
	display: none !important;
}

.axs-method-option__content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Card brands can wrap on narrow checkout columns without covering the label. */
.axs-method-options .axs-method-option__logos {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	max-width: 50%;
}

/* Natural logo widths avoid blank space before the narrower PayNow mark. */
.axs-method-options .axs-method-option img.axs-method-option__logo {
	display: block;
	float: none;
	flex: 0 0 auto;
	width: auto;
	height: 36px;
	max-width: 100%;
	max-height: none;
	min-width: 0;
	margin: 0;
	margin-inline-start: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	object-fit: contain;
	object-position: left center;
}

.axs-method-option__title {
	font-weight: 600;
}

.axs-method-option__charge {
	font-size: 0.85em;
	color: #475569;
}

@media (prefers-reduced-motion: reduce) {
	.axs-method-options label.axs-method-option { transition: none; }
}

/* Keep the AXS fee last in the native block totals, before the separate grand
   total. CSS leaves the React-owned DOM in place during cart updates. */
:is(.wp-block-woocommerce-checkout-order-summary-totals-block,
 .wp-block-woocommerce-cart-order-summary-totals-block):has(.wc-block-components-totals-fees__axs-method-fee) {
 display: flex;
 flex-direction: column;
}
:is(.wp-block-woocommerce-checkout-order-summary-totals-block,
 .wp-block-woocommerce-cart-order-summary-totals-block):has(.wc-block-components-totals-fees__axs-method-fee)
 :is(.wp-block-woocommerce-checkout-order-summary-fee-block,
 .wp-block-woocommerce-cart-order-summary-fee-block),
:is(.wp-block-woocommerce-checkout-order-summary-fee-block,
 .wp-block-woocommerce-cart-order-summary-fee-block):has(.wc-block-components-totals-fees__axs-method-fee) > .wc-block-components-totals-wrapper {
 display: contents;
}
.wc-block-components-totals-fees__axs-method-fee {
 order: 10;
}
