/* PD.Cash customer checkout */

/* Font Awesome Free 6.7.2, locally subset to the six glyphs used below.
   Font license: assets/fonts/LICENSE-font-awesome.txt. */
@font-face {
	font-family: "PD.Cash Font Awesome Brands";
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url( "../fonts/pdcash-fa-brands.woff2" ) format( "woff2" );
}

@font-face {
	font-family: "PD.Cash Font Awesome Solid";
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url( "../fonts/pdcash-fa-solid.woff2" ) format( "woff2" );
}

.pdcash-checkout-icons {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	max-width: 430px;
	margin-left: 10px;
	line-height: 1;
	vertical-align: middle;
}

/* Shared icon base */
.pdcash-checkout-icon,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

/* SVG icon sizing */
.pdcash-checkout-icon--svg,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg {
	object-fit: contain;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--card,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--card {
	width: 34px;
	height: 24px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--apple-pay,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--apple-pay {
	width: 48px;
	height: 20px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--google-pay,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--google-pay {
	width: 56px;
	height: 22px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--cash-app,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--cash-app {
	width: 22px;
	height: 22px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--paypal,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--paypal {
	width: 22px;
	height: 24px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--chime,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--chime {
	width: 70px;
	height: 16px;
}

.pdcash-checkout-icon--svg.pdcash-checkout-icon--crypto,
.woocommerce-checkout .payment_method_pdcash .pdcash-checkout-icon--svg.pdcash-checkout-icon--crypto {
	width: 26px;
	height: 26px;
}

/* Namespaced Font Awesome webfont helpers avoid collisions with whatever
   Font Awesome version a theme or another plugin happens to load. */
.pdcash-fa {
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pdcash-fa-brands {
	font-family: "PD.Cash Font Awesome Brands";
	font-weight: 400;
}

.pdcash-fa-solid {
	font-family: "PD.Cash Font Awesome Solid";
	font-weight: 900;
}

.pdcash-fa-apple::before { content: "\f179"; }
.pdcash-fa-google::before { content: "\f1a0"; }
.pdcash-fa-paypal::before { content: "\f1ed"; }
.pdcash-fa-bitcoin::before { content: "\f379"; }
.pdcash-fa-dollar-sign::before { content: "\0024"; }

/* These are availability badges styled like compact pill buttons. They remain
   non-interactive because WooCommerce nests gateway artwork inside a radio label. */
.pdcash-payment-pill,
.woocommerce-checkout .payment_method_pdcash .pdcash-payment-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	box-sizing: border-box;
	min-height: 26px;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 999px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.16 ), inset 0 1px 0 rgba( 255, 255, 255, 0.18 );
}

.pdcash-checkout-icon--fa {
	display: inline-block;
	font-size: 13px;
	line-height: 1;
	width: 1em;
	height: 1em;
	text-align: center;
}

.pdcash-generic-card-glyph {
	position: relative;
	box-sizing: border-box;
	width: 16px;
	height: 11px;
	border: 1.5px solid currentColor;
	border-radius: 2px;
}

.pdcash-generic-card-glyph::before {
	position: absolute;
	top: 2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	content: "";
}

.pdcash-payment-pill__label {
	display: inline-block;
	line-height: 1;
}

/* Chime brand mark: white rounded badge with a green "C" (no suitable FA glyph). */
.pdcash-chime-c-glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	border-radius: 4px;
	background: #ffffff;
	color: #1ec677;
	font: 800 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pdcash-chime-c-glyph::before {
	content: "C";
}

.pdcash-payment-pill--card {
	background: #334155;
	color: #ffffff;
}

.pdcash-payment-pill--apple-pay {
	background: #111418;
	color: #ffffff;
}

.pdcash-payment-pill--google-pay {
	border-color: #dadce0;
	background: #ffffff;
	color: #3c4043;
}

.pdcash-payment-pill--google-pay .pdcash-checkout-icon--fa {
	color: #4285f4;
}

.pdcash-payment-pill--cash-app {
	background: #00d632;
	color: #062b13;
}

.pdcash-payment-pill--paypal {
	background: #003087;
	color: #ffffff;
}

.pdcash-payment-pill--paypal .pdcash-checkout-icon--fa {
	color: #52b8e8;
}

.pdcash-payment-pill--chime {
	background: #25c85b;
	color: #063018;
}

.pdcash-payment-pill--crypto {
	background: #f7931a;
	color: #261707;
}

.pdcash-blocks-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	width: 100%;
	min-width: 0;
}

.pdcash-blocks-title {
	flex: 0 0 auto;
}

.pdcash-blocks-label .pdcash-checkout-icons {
	justify-content: flex-end;
	margin-left: auto;
}

.pdcash-checkout-logo {
	display: block;
	width: auto;
	height: 20px;
}

@media screen and ( max-width: 480px ) {
	.pdcash-checkout-icons {
		gap: 5px;
		max-width: 100%;
		margin-top: 7px;
		margin-left: 0;
	}

	.pdcash-payment-pill,
	.woocommerce-checkout .payment_method_pdcash .pdcash-payment-pill {
		min-height: 25px;
		padding: 4px 7px;
		font-size: 10px;
	}

	.pdcash-blocks-label .pdcash-checkout-icons {
		justify-content: flex-start;
		width: 100%;
		margin-left: 0;
	}
}

.pdcash-blocks-content {
	color: #50575e;
	line-height: 1.45;
}

.pdcash-blocks-content p {
	margin: 0;
}

/* Order-received / view-order payment box (theme-aware: inherits the theme's
   text color and derives surfaces from it). */
.pdcash-pay-box {
	margin: 1.5em 0;
	padding: 1.1em 1.35em 1.25em;
	border: 1px solid color-mix( in srgb, currentColor 18%, transparent );
	border-radius: 10px;
	background: color-mix( in srgb, currentColor 4%, transparent );
}

.pdcash-pay-box h2 {
	margin: 0 0 0.4em;
	font-size: 1.1em;
}

.pdcash-pay-amount {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 0.5em;
}

.pdcash-pay-amount > span {
	opacity: 0.7;
	font-size: 0.9em;
}

.pdcash-pay-amount strong {
	font-size: 1.15em;
}

.pdcash-pay-invoice {
	font-size: 0.8em;
	opacity: 0.65;
}

.pdcash-pay-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0.75em 0 0;
	font-size: 0.88em;
	opacity: 0.75;
}

.pdcash-pay-spinner {
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: pdcash-pay-spin 0.8s linear infinite;
}

@keyframes pdcash-pay-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pdcash-pay-spinner {
		animation: none;
	}
}
