/* Vexere's privacy portals live outside #vexereSearchWidget. Retain the
 * provider's z-index and React consent/read-to-end logic. */
.ant-modal:has( #consent-heading ) {
	max-width: calc( 100vw - 32px );
	padding-bottom: 0;
}
.ant-modal:has( #consent-heading ) .ant-modal-content {
	display: flex;
	flex-direction: column;
	max-height: calc( 100vh - 32px );
	max-height: calc( 100dvh - 32px );
	overflow: hidden;
	border-radius: 16px;
	color: #000;
}
.ant-modal:has( #consent-heading ) .ant-modal-body {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.ant-modal:has( #consent-heading ) .ant-modal-footer {
	flex: 0 0 auto;
	padding: 16px;
	padding-bottom: max( 16px, env( safe-area-inset-bottom ) );
	text-align: left;
}
.ant-modal:has( #consent-heading ) :is( p, h3, label, .purpose-name ) {
	color: #000;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}
.ant-modal:has( #consent-heading ) :is( h3, .purpose-name ) { font-weight: 600; }
#consent-heading { font-size: 18px; font-weight: 700; line-height: 1.4; color: #000; }
.ant-modal:has( #consent-heading ) .ant-modal-footer > div > div:has( #consent-acknowledged ) {
	flex-wrap: wrap;
	gap: 8px;
}
.ant-modal:has( #consent-acknowledged:disabled ) .ant-modal-footer > div > div:has( #consent-acknowledged )::before {
	content: "Mở Chính sách bảo mật, đọc đến cuối và bấm Đồng ý để bật ô xác nhận.";
	flex-basis: 100%;
	padding: 10px;
	border-radius: 8px;
	background: #fff3f3;
	color: #000;
	font-size: 13px;
	line-height: 1.5;
}
.ant-modal:has( #consent-heading ) label[for="consent-acknowledged"] { flex: 1; }
.ant-modal:has( #consent-heading ) button:not( .ant-switch ),
.ant-drawer:has( #consent-policy-heading ) button {
	font: inherit;
	font-family: var( --wp--preset--font-family--montserrat, Montserrat, sans-serif );
}
.ant-modal:has( #consent-heading ) :is( .purpose-detail, label[for="consent-acknowledged"] button ) {
	color: var( --wp--preset--color--brand, #c92228 );
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ant-modal:has( #consent-heading ) .ant-btn-primary:not( :disabled ),
.ant-drawer:has( #consent-policy-heading ) .ant-btn-primary:not( :disabled ) {
	background: var( --wp--preset--color--brand, #c92228 );
	border-color: var( --wp--preset--color--brand, #c92228 );
	color: #fff;
}
.ant-modal:has( #consent-heading ) .ant-checkbox-checked .ant-checkbox-inner {
	background: var( --wp--preset--color--brand, #c92228 );
	border-color: var( --wp--preset--color--brand, #c92228 );
}
.ant-modal:has( #consent-heading ) .ant-checkbox-wrapper { padding: 4px; }
.ant-drawer:has( #consent-policy-heading ) .ant-drawer-header {
	background: var( --wp--preset--color--brand, #c92228 );
}
#consent-policy-heading { color: #fff; font-size: 18px; line-height: 1.4; margin: 0; }
.ant-drawer:has( #consent-policy-heading ) .ant-drawer-content {
	height: 100%;
	max-height: 100dvh;
}
.ant-drawer:has( #consent-policy-heading ) .ant-drawer-footer {
	padding-bottom: max( 16px, env( safe-area-inset-bottom ) );
}
@media ( max-width: 600px ) {
	.ant-modal:has( #consent-heading ) { width: calc( 100vw - 32px ) !important; margin: 16px auto; top: 0; }
	.ant-modal:has( #consent-heading ) .ant-modal-body { padding: 16px; }
	.ant-drawer:has( #consent-policy-heading ) .ant-drawer-content-wrapper { width: 100% !important; }
}
