.dm18-overlay[hidden],
.dm18-wrap[hidden] {
	display: none !important;
}

.dm18-alcohol-content {
	line-height: 1.6;
	max-height: calc(100vh - 36px);
	max-height: calc(100dvh - 36px);
	overflow-y: auto;
	overflow-wrap: anywhere;
}

.dm18-alcohol-content h2.thb_styled_header.style1 {
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.1;
	text-align: center;
}

.dm18-alcohol-content .form-row,
.dm18-alcohol-content .dm18-document {
	clear: both;
	float: none;
	margin: 0 0 18px;
	width: 100%;
}

.dm18-alcohol-content input[type="file"] {
	color: inherit;
	height: auto;
	max-width: 100%;
	padding: 12px 0;
}

.dm18-alcohol-content label {
	color: inherit;
}

.dm18-alcohol-content .description {
	color: #aaa;
	display: block;
	font-size: 13px;
	line-height: 1.6;
}

.dm18-alcohol-content .dm18-declaration label {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	font-size: 14px;
	letter-spacing: normal;
	line-height: 1.65;
	text-transform: none;
}

.dm18-alcohol-content .dm18-declaration input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 6px 0 0;
}

.dm18-alcohol-content a:not(.button) {
	color: inherit;
	text-decoration: underline;
}

.dm18-alcohol-content .dm18-alcohol-actions a.button {
	background: #fff;
	border: 1px solid #fff;
	color: #151515;
}

.dm18-alcohol-content .dm18-alcohol-actions .button.black {
	background: transparent;
	color: #fff;
}

.dm18-alcohol-content :focus-visible {
	outline: 2px solid #1aa97f;
	outline-offset: 4px;
}

.dm18-alcohol-content [hidden] {
	display: none !important;
}

.dm18-alcohol-content .woocommerce-error,
.dm18-alcohol-content .woocommerce-message {
	background: #fff;
	color: #151515;
	font-size: 14px;
	letter-spacing: normal;
	line-height: 1.6;
	padding: 16px;
	text-transform: none;
}

.dm18-alcohol-content .woocommerce-error,
.dm18-alcohol-content .woocommerce-message,
.woocommerce-info.dm18-bulk-notice,
.woocommerce-info.dm18-cart-notice {
	animation: none;
	bottom: auto;
	display: block;
	left: auto;
	margin: 0 0 18px;
	min-height: 0;
	overflow: visible;
	position: static;
	text-align: left;
	transform: none;
	width: auto;
	z-index: auto;
}

.woocommerce-info.dm18-bulk-notice,
.woocommerce-info.dm18-cart-notice {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}

.dm18-bulk-notice p {
	margin-bottom: 12px;
}

.woocommerce-info.dm18-bulk-notice a.button,
.woocommerce-info.dm18-cart-notice a.button {
	display: inline-flex;
	float: none;
	margin: 8px 0;
	white-space: normal;
}

.dm18-overlay {
	background: rgba(0, 0, 0, 0.72);
	height: 100%;
	left: 0;
	opacity: 1;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9998;
}

.dm18-wrap {
	display: flex;
	height: 100%;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	position: fixed;
	width: 100%;
	z-index: 9999;
	-webkit-overflow-scrolling: touch;
}

html.dm18-modal-open,
body.dm18-modal-open {
	overflow: hidden !important;
}

.dm18-wrap .mfp-container {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 100%;
	padding: 18px;
	width: 100%;
}

.dm18-wrap .mfp-container::before {
	display: none;
}

.dm18-wrap .mfp-content {
	max-width: 760px;
	width: 100%;
}

.dm18-wrap .dm18-modal-content {
	background: #151515;
	bottom: auto;
	color: #fff;
	display: flex;
	flex-direction: column;
	left: auto;
	margin: 0 auto;
	max-width: 760px;
	opacity: 1;
	padding: 34px 26px 30px;
	position: relative;
	-webkit-transform: none;
	-moz-transform: none;
	-ms-transform: none;
	-o-transform: none;
	transform: none;
	width: 100%;
}

.dm18-modal-content.mfp-with-anim {
	opacity: 1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

.dm18-modal-content .row {
	justify-content: center;
	width: 100%;
}

.dm18-modal-content .columns {
	padding-left: 0;
	padding-right: 0;
}

.dm18-modal-content .thb_styled_header.style1 {
	color: #fff;
	font-size: 32px;
	margin-bottom: 24px;
	padding-bottom: 24px;
}

.dm18-modal-content .thb_styled_header.style1::after {
	background: #fff;
	left: 50%;
	transform: translateX(-50%);
	width: 110px;
}

.dm18-modal-content p {
	margin-left: auto;
	margin-right: auto;
	max-width: 640px;
}

.dm18-wrap [data-dm18-content] p:first-child {
	color: #1aa97f;
	font-size: 12px;
	letter-spacing: 0.24em;
	line-height: 1;
	margin-bottom: 18px;
	text-transform: uppercase;
}

.dm18-modal-content .button {
	margin: 8px 6px 0;
}

@media only screen and (min-width: 64.063em) {
	.dm18-wrap .dm18-modal-content {
		padding: 46px 42px 40px;
	}

	.dm18-modal-content .thb_styled_header.style1 {
		font-size: 46px;
		padding-bottom: 28px;
	}

	.dm18-modal-content .thb_styled_header.style1::after {
		width: 180px;
	}
}

@media only screen and (max-width: 40em) {
	.dm18-wrap .dm18-modal-content {
		padding: 28px 22px 24px;
	}

	.dm18-modal-content .thb_styled_header.style1 {
		font-size: 28px;
	}

	.dm18-modal-content .button {
		display: block;
		margin: 8px 0 0;
		width: 100%;
	}
}

/* Keep empty notices hidden even when theme WooCommerce rules force display. */
.dm18-wrap .dm18-alcohol-content .woocommerce-error[hidden],
.dm18-wrap .dm18-alcohol-content .dm18-form-error:empty {
	display: none !important;
}

.dm18-alcohol-content .dm18-alcohol-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
}

.dm18-wrap .dm18-alcohol-content .dm18-alcohol-actions > .button {
	align-items: center;
	display: inline-flex;
	float: none;
	justify-content: center;
	/* Theme button margins must not add to the shared flex gap. */
	margin: 0 !important;
	height: 42px;
	line-height: normal;
	padding: 0 18px;
	width: auto;
}

.dm18-alcohol-content input[type="file"] {
	background: transparent;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: 13px;
	width: 100%;
}

.dm18-alcohol-content input[type="file"]::file-selector-button {
	background: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #151515;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	margin-right: 12px;
	min-height: 42px;
	padding: 12px 18px;
	text-transform: uppercase;
}

.dm18-alcohol-content input[type="file"]::file-selector-button:hover {
	background: transparent;
	color: #fff;
}
