/**
 * Checkout polish for the payment options block + the inline Whop pane.
 *
 * THE RADIO DEFECT, measured live before this file existed: the theme paints
 * `.wc-block-components-radio-control-accordion-option` with a dark 1.5px
 * INSET box-shadow at border-radius 4px, while wc-blocks paints the checked
 * option's blue ring + tint at border-radius 11px. Two rings, two radii, one
 * element stack — the dark ring pokes out past the blue one at every corner,
 * and the radio dot picks up the theme's global black focus outline as a
 * second circle. The fix is one ring per state: the wrapper keeps a single
 * hairline, the checked row owns the accent ring, radii agree, and focus is
 * a soft offset halo instead of a black hug.
 */

/* ── one surface, one radius ── */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
	box-shadow: none !important;
	outline: none !important;
	border-radius: 11px !important;
}

/* the checked row keeps wc-blocks' accent ring; make it the ONLY ring */
.wc-block-checkout__payment-method .wc-block-components-radio-control__option {
	outline: none !important;
	border-radius: 11px;
}

/* ── the radio dot: single accent ring, soft accessible focus ── */
.wc-block-checkout__payment-method .wc-block-components-radio-control__input {
	outline: none !important;
	box-shadow: none !important;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control__input:focus-visible {
	outline: 2px solid color-mix(in srgb, currentColor 35%, transparent) !important;
	outline-offset: 2px !important;
}

/* ── the inline Whop pane ── */
.whop-inline {
	padding: 2px 2px 6px;
}
.whop-inline__description {
	margin: 0 0 10px;
	font-size: 14px;
	opacity: 0.75;
}
.whop-inline__host {
	min-height: 0;
}
.whop-inline__host.is-ready {
	min-height: 180px; /* card number + expiry/cvc rows — stops layout jump */
}
.whop-inline__reassure {
	margin: 10px 0 2px;
	font-size: 12px;
	letter-spacing: 0.01em;
	opacity: 0.55;
}
.whop-inline__error {
	margin: 4px 0;
	font-size: 14px;
	color: #b00020;
}

/* skeleton while the session mints — three shimmering field bars */
.whop-inline__skeleton span {
	display: block;
	height: 42px;
	margin: 0 0 10px;
	border-radius: 10px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.09) 37%, rgba(0, 0, 0, 0.05) 63%);
	background-size: 400% 100%;
	animation: whop-shimmer 1.4s ease infinite;
}
.whop-inline__skeleton span:nth-child(2),
.whop-inline__skeleton span:nth-child(3) {
	width: 48%;
	display: inline-block;
	margin-right: 4%;
}
.whop-inline__skeleton span:nth-child(3) {
	margin-right: 0;
}
@keyframes whop-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.whop-inline__skeleton span { animation: none; }
}
