/*
 * The Links Market Age Verification - customer facing styles.
 * Deliberately self contained so it cannot clash with the active theme.
 */

.tlm-av-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.tlm-av-modal[hidden] {
	display: none !important;
}

.tlm-av-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}

.tlm-av-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	background: #ffffff;
	color: #1f2937;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}

.tlm-av-modal__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
	color: #111827;
}

.tlm-av-modal__message,
.tlm-av-modal__challenge {
	margin: 0 0 12px;
}

.tlm-av-modal__challenge {
	color: #475569;
	font-size: 14px;
}

.tlm-av-field {
	display: block;
	margin: 0 0 14px;
}

.tlm-av-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.tlm-av-field--check > label {
	font-weight: 400;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.tlm-av-field input[type="text"],
.tlm-av-field input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	font-size: 16px;
	line-height: 1.4;
}

.tlm-av-field input[type="checkbox"] {
	margin-top: 3px;
}

.tlm-av-hint {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #64748b;
}

.tlm-av-req {
	color: #b91c1c;
}

.tlm-av-privacy {
	margin: 12px 0 16px;
	font-size: 13px;
	color: #475569;
}

.tlm-av-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tlm-av-feedback {
	margin-top: 14px;
	font-weight: 600;
}

.tlm-av-feedback--error {
	color: #b91c1c;
}

.tlm-av-feedback--ok {
	color: #15803d;
}

.tlm-av-open {
	margin: 8px 0;
}

body.tlm-av-modal-open {
	overflow: hidden;
}

/* Express / one tap checkout is hidden while an alcohol cart is unverified. */
body.tlm-av-hide-express .wcpay-payment-request-wrapper,
body.tlm-av-hide-express #wcpay-express-checkout-element,
body.tlm-av-hide-express .wcpay-express-checkout,
body.tlm-av-hide-express .wc-block-components-express-payment,
body.tlm-av-hide-express .wcpay-woopay-button,
body.tlm-av-hide-express #wc-stripe-payment-request-wrapper,
body.tlm-av-hide-express .ppc-button-wrapper,
body.tlm-av-hide-express .wc-amazon-pay-button,
body.tlm-av-hide-express #wc_amazon_pay_button {
	display: none !important;
}

@media (max-width: 520px) {
	.tlm-av-modal__dialog {
		padding: 18px;
		border-radius: 10px;
	}

	.tlm-av-modal__title {
		font-size: 19px;
	}
}
