:root {
	--paychain-coral: #ff5055;
	--paychain-coral-2: #ff675f;
	--paychain-coral-dark: #f33f46;
	--paychain-navy: #0b1736;
	--paychain-blue: #2766d7;
	--paychain-muted: #6f7890;
	--paychain-border: #e7eaf0;
	--paychain-soft: #f7f8fb;
	--paychain-white: #ffffff;
	--paychain-shadow: 0 18px 48px rgba(14, 29, 64, .07);
}

/* PayChain's direct crypto payment method. */
.payment_method_paychain_xrp > label,
.paychain-block-label {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	font-weight: 750;
	color: var(--paychain-navy);
}

.payment_method_paychain_xrp > label img,
.paychain-block-label__logo {
	width: 38px !important;
	height: 38px !important;
	max-height: 38px !important;
	object-fit: contain;
	border-radius: 11px;
}

.paychain-gateway-choice,
.paychain-block-content {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0 2px;
	margin-top: 8px;
	background: transparent;
}

.paychain-gateway-choice__icon img {
	width: 44px;
	height: 44px;
	border-radius: 13px;
}

.paychain-gateway-choice__copy { flex: 1; }
.paychain-gateway-choice__copy strong,
.paychain-block-content strong { font-size: 16px; color: var(--paychain-navy); }
.paychain-gateway-choice__copy p,
.paychain-block-content p {
	margin: 5px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--paychain-muted);
}
.paychain-gateway-choice__copy p p { margin: 0; }

.paychain-recommended {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #fff0f0;
	color: var(--paychain-coral-dark);
	font-size: 11px;
	font-weight: 800;
	vertical-align: middle;
}

.paychain-block-content { display: block; }
.paychain-block-content small { display: block; margin-top: 8px; color: #8790a4; }

/* Shared PayChain checkout shell, while the gateways themselves remain native. */
.pc-native-payment-list {
	--pc-list-gap: 12px;
	position: relative;
}

.pc-checkout-brand-row {
	list-style: none !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.pc-checkout-brand__brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--paychain-border);
	border-radius: 18px;
	background: rgba(255,255,255,.96);
	box-shadow: var(--paychain-shadow);
}

.pc-checkout-brand__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.pc-checkout-brand__identity img { width: 36px; height: 36px; object-fit: contain; }
.pc-checkout-brand__identity strong {
	color: var(--paychain-navy);
	font-size: 21px;
	line-height: 1;
	letter-spacing: -.03em;
}
.pc-checkout-brand__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 11px;
	border-radius: 999px;
	background: #f1f6ff;
	color: var(--paychain-blue);
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
}
.pc-checkout-brand__secure svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pc-native-payment-list .pc-crypto-payment-option,
.pc-native-payment-list .pc-other-native-gateway,
.pc-other-payment-toggle {
	box-sizing: border-box;
	margin: 0 0 var(--pc-list-gap) !important;
	border: 1px solid var(--paychain-border) !important;
	border-radius: 18px !important;
	background: var(--paychain-white) !important;
	box-shadow: 0 10px 30px rgba(14,29,64,.045);
	overflow: hidden;
}

.pc-native-payment-list .pc-crypto-payment-option {
	border-color: rgba(255,80,85,.34) !important;
	box-shadow: 0 14px 34px rgba(255,80,85,.08);
}

/* Classic checkout: keep WooCommerce gateway markup/functionality untouched. */
.pc-classic-payment-list {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
.pc-classic-payment-list > li.wc_payment_method {
	padding: 16px 18px !important;
	list-style: none !important;
}
.pc-classic-payment-list > li.wc_payment_method > label {
	margin: 0 !important;
	cursor: pointer;
	color: var(--paychain-navy) !important;
	font-weight: 700;
}
.pc-classic-payment-list > li.wc_payment_method > input[type="radio"] {
	accent-color: var(--paychain-coral);
}
.pc-classic-payment-list .payment_box {
	margin: 14px -2px -2px !important;
	padding: 16px !important;
	border: 1px solid #edf0f5 !important;
	border-radius: 14px !important;
	background: #f8f9fb !important;
	color: var(--paychain-navy) !important;
	box-shadow: none !important;
}
.pc-classic-payment-list .payment_box::before { display: none !important; }
.pc-classic-payment-list .payment_box p:last-child { margin-bottom: 0; }

/* The key privacy rule: PayChain only hides/reveals the merchant's native gateway UI. */
.pc-native-payment-list .pc-other-native-gateway { display: none !important; }
.pc-native-payment-list.pc-other-methods-open .pc-other-native-gateway { display: block !important; }

.pc-other-payment-toggle {
	list-style: none !important;
	padding: 0 !important;
}
.pc-other-payment-toggle__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 66px;
	padding: 13px 16px;
	border: 0;
	background: transparent;
	color: var(--paychain-navy);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.pc-other-payment-toggle__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.pc-other-payment-toggle__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.pc-other-payment-toggle__copy strong { font-size: 15px; font-weight: 750; }
.pc-other-payment-toggle__copy small {
	display: block;
	color: var(--paychain-muted);
	font-size: 11px;
	line-height: 1.35;
}
.pc-other-payment-toggle__chevron {
	font-size: 24px;
	line-height: 1;
	color: #70798d;
	transition: transform .2s ease;
}
.pc-other-payment-toggle__button[aria-expanded="true"] .pc-other-payment-toggle__chevron { transform: rotate(180deg); }

.pc-other-payment-icons { display: flex; align-items: center; }
.pc-mini-card {
	position: relative;
	display: inline-block;
	width: 31px;
	height: 21px;
	margin-right: -7px;
	border: 1px solid #dfe3ea;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 3px 8px rgba(15,29,60,.08);
}
.pc-mini-card:nth-child(1) { background: #f8f9fb; z-index: 3; }
.pc-mini-card:nth-child(2) { background: #eef4ff; z-index: 2; }
.pc-mini-card:nth-child(3) { background: #fff0f0; z-index: 1; }
.pc-mini-card i {
	position: absolute;
	left: 5px;
	right: 5px;
	top: 7px;
	height: 2px;
	border-radius: 2px;
	background: rgba(11,23,54,.22);
}

/* WooCommerce Checkout Block support. We only style option wrappers. */
.pc-block-payment-list > .pc-crypto-payment-option,
.pc-block-payment-list > .pc-other-native-gateway {
	padding: 4px 12px !important;
}
.pc-block-payment-list .wc-block-components-radio-control__label,
.pc-block-payment-list .wc-block-components-radio-control-accordion-option__label {
	color: var(--paychain-navy);
	font-weight: 700;
}
.pc-block-payment-list .wc-block-components-radio-control-accordion-content {
	padding: 0 4px 14px !important;
}

/* So hosted/tokenised gateway fields visually sit inside the PayChain surface. */
.pc-native-payment-list iframe {
	max-width: 100%;
}
.pc-native-payment-list input[type="text"],
.pc-native-payment-list input[type="tel"],
.pc-native-payment-list input[type="email"],
.pc-native-payment-list input[type="number"],
.pc-native-payment-list select {
	border-radius: 11px;
}

@media (max-width: 640px) {
	.pc-checkout-brand__brand { padding: 14px; }
	.pc-checkout-brand__identity strong { font-size: 19px; }
	.pc-checkout-brand__secure { padding: 7px 9px; font-size: 11px; }
	.pc-other-payment-toggle__copy small { display: none; }
	.pc-classic-payment-list > li.wc_payment_method { padding: 15px !important; }
}

/* v0.6 merchant-owned public branding. PayChain is intentionally invisible here. */
.pc-checkout-brand__identity img,
.pc-checkout-brand__initial {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 12px;
}
.pc-checkout-brand__identity img {
	object-fit: contain;
	background: #fff;
}
.pc-checkout-brand__initial {
	display: grid;
	place-items: center;
	background: var(--paychain-navy);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}
.pc-checkout-brand__merchant-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.pc-checkout-brand__merchant-copy strong {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--paychain-navy);
	font-size: 18px;
	line-height: 1.1;
	letter-spacing: -.02em;
}
.pc-checkout-brand__merchant-copy small {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--paychain-muted);
	font-size: 11px;
}

@media (max-width: 640px) {
	.pc-checkout-brand__merchant-copy strong { max-width: 170px; font-size: 16px; }
	.pc-checkout-brand__merchant-copy small { max-width: 170px; }
	.pc-checkout-brand__identity img,
	.pc-checkout-brand__initial { width: 38px; height: 38px; }
}

/* v0.6 direct-crypto asset picker. The shopper selects what they send; no swap occurs. */
.pc-asset-picker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.pc-asset-option { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--paychain-border); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pc-asset-option:hover { border-color: #cfd6e2; transform: translateY(-1px); }
.pc-asset-option input { position: absolute; opacity: 0; pointer-events: none; }
.pc-asset-option:has(input:checked) { border-color: var(--paychain-coral); box-shadow: 0 8px 24px rgba(255,80,85,.10); }
.pc-asset-option__badge { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 11px; background: #f4f6fa; color: var(--paychain-navy); font-size: 10px; font-weight: 900; letter-spacing: -.02em; }
.pc-asset-option__badge img { width: 21px; height: 21px; object-fit: contain; }
.pc-asset-option__copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pc-asset-option__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pc-asset-option__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paychain-muted); font-size: 10px; }
.pc-asset-option__tick { display: none; margin-left: auto; color: var(--paychain-coral-dark); font-weight: 900; }
.pc-asset-option:has(input:checked) .pc-asset-option__tick { display: inline; }
.pc-same-asset-note { display: block; margin: 11px 0 0 !important; color: var(--paychain-muted); font-size: 11px !important; line-height: 1.45; }
.paychain-block-label__crypto { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; background: #f3f5f9; color: var(--paychain-navy); font-weight: 900; }

@media (max-width: 640px) {
	.pc-asset-picker { grid-template-columns: 1fr; }
	.pc-asset-option { padding: 11px 12px; }
}

/* v0.9.1 · FlareSignal checkout surface */
.payment_method_paychain_xrp .payment_box,.pc-crypto-payment-option{--paychain-coral:#f62058;--paychain-coral-dark:#f62058}
.payment_method_paychain_xrp .payment_box{border:1px solid rgba(246,32,88,.24)!important;border-radius:16px!important;background:#101015!important;color:#f7f7f8!important;box-shadow:none!important}
.payment_method_paychain_xrp .payment_box:before{border-bottom-color:#101015!important}
.payment_method_paychain_xrp>label,.paychain-block-label,.paychain-gateway-choice__copy strong,.paychain-block-content strong{color:#f7f7f8!important}
.paychain-gateway-choice__copy p,.paychain-block-content p,.pc-same-asset-note{color:#9797a1!important}
.paychain-recommended{background:rgba(246,32,88,.10)!important;color:#ff5b87!important}
.pc-asset-option{border-color:rgba(255,255,255,.09)!important;background:#15151b!important;color:#f7f7f8!important}
.pc-asset-option:has(input:checked){border-color:rgba(246,32,88,.52)!important;background:rgba(246,32,88,.07)!important;box-shadow:0 0 0 1px rgba(246,32,88,.12)!important}
.pc-asset-option__copy small{color:#9797a1!important}.pc-asset-option__tick{color:#f62058!important}
.pc-checkout-brand-row{border-color:rgba(246,32,88,.24)!important;background:linear-gradient(90deg,rgba(246,32,88,.08),rgba(246,32,88,.02)),#0e0e12!important;color:#f7f7f8!important}
.pc-checkout-brand__merchant-copy strong{color:#f7f7f8!important}.pc-checkout-brand__merchant-copy small{color:#9797a1!important}.pc-checkout-brand__secure{color:#ff5b87!important;border-color:rgba(246,32,88,.25)!important;background:rgba(246,32,88,.07)!important}
