/**
 * Checkout age gate — disable Place order only until verification (body class from PHP).
 * After OAuth redirect the class is omitted so the button is not stuck by CSS.
 */

body.ageonce-checkout-requires-verification #place_order,
body.ageonce-checkout-requires-verification .place-order button,
body.ageonce-checkout-requires-verification .wc-block-components-checkout-place-order-button {
	opacity: 0.4 !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
	background-color: #ccc !important;
}

body.ageonce-checkout-requires-verification .wc-block-components-express-payment {
	opacity: 0.4;
	pointer-events: none;
}

.wc-block-checkout .ageonce-gate-container,
.wc-block-checkout .ageonce-checkout-verified {
	margin: 16px 0 24px;
}

.ageonce-gate-container {
	background: var(--ageonce-inline-bg, #fdfdfd);
	border: 1px solid #dcdcdc;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	text-align: center;
	border-top: 3px solid var(--ageonce-inline-accent, #d63638);
}

/* Verified message (checkout, age-restricted cart) */
.woocommerce-message.ageonce-checkout-verified {
	margin-bottom: 20px;
}

.ageonce-checkout-verified .ageonce-checkout-verified-icon {
	color: #4ab866;
	vertical-align: middle;
}

.ageonce-checkout-verified .ageonce-checkout-verified-text {
	font-weight: 600;
	vertical-align: middle;
}

.ageonce-gate-title {
	margin-top: 0;
}

.ageonce-gate-lead {
	font-size: 14px;
	margin-bottom: 15px;
}

.ageonce-verify-btn.ageonce-verify-btn--full {
	width: 100%;
	display: block;
	margin: 0 0 8px;
	text-align: center;
}

.ageonce-gate-footnote,
.ageonce-secured-with {
	margin: 8px 0 0;
	padding: 0;
	font-size: 11px;
	line-height: 1.4;
	color: #888;
	text-align: center;
}

.ageonce-secured-with__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.ageonce-secured-with__link:hover {
	color: #555;
}

.ageonce-secured-with__brand {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-weight: 600;
}

/* Themes often set img { max-width:100%; height:auto } — keep the mark tiny. */
.ageonce-secured-with__logo {
	display: block !important;
	height: 9px !important;
	width: auto !important;
	max-width: 42px !important;
	max-height: 9px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	opacity: 0.9;
}

.ageonce-secured-with__link:hover .ageonce-secured-with__logo {
	opacity: 1;
}
