/**
 * Login / register popup shown when a logged-out visitor clicks "Add to cart".
 *
 * Uses the original Age Checker class names (age-checker-*, vape_auth_box, auth_txt) for
 * styling, but every rule is scoped under the unique root id #atcl-login-overlay so it
 * styles only this plugin's popup — never the Age Checker plugin's own #age-checker-overlay
 * — and wins over any bare-class rules. Background images load from assets/images/
 * (relative to this file): log_bg.png and year11.png.
 */

#atcl-login-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

#atcl-login-overlay.is-open {
	display: flex;
}

#atcl-login-overlay .age-checker-box {
	position: relative;
	background: #ffffff;
	border-radius: 25px;
	text-align: center;
	max-width: 600px;
	padding: 0;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#atcl-login-overlay .age-checker-close {
	position: absolute;
	top: 10px;
	right: 16px;
	z-index: 2;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

#atcl-login-overlay .age-checker-screen-auth {
	background: url(images/log_bg.png) no-repeat center center / cover;
	border-radius: 24px;
}
.vape_auth_box .mo-clp-field label, .vape_auth_box .mo-clp-hint, #atcl-login-overlay .vape_auth_box .age-checker-form label{
	color: #fff;
}
#atcl-login-overlay .mo-clp-remember label, #atcl-login-overlay .mo-clp-lost-password{
  color: #9b9b9b;
}
#atcl-login-overlay .mo-clp-body {
  padding: 0;
}
#atcl-login-overlay .mo-clp-input{
	padding: 6px 12px;
}
#atcl-login-overlay .age-checker-screen-auth h2,
#atcl-login-overlay .age-checker-auth-title {
  color: #fff;
  font-size: 40px;
  font-family: "Hellix";
	padding: 20px 20px 0 20px;
  font-weight: 400;
  line-height: 50px;
  text-align: center;
  margin-bottom: 30px;
}

#atcl-login-overlay .vape_auth_box {
	background: url(images/year11.png) no-repeat left bottom;
	padding: 0 20px 30px 250px;
}

#atcl-login-overlay .vape_auth_box .auth_txt {
	color: #fff;
	font-size: 16px;
	line-height: 22px;
	margin-bottom: 30px;
}

/* ---- Tabs ---- */
#atcl-login-overlay .age-checker-tabs {
	display: flex;
	border-bottom: 1px solid #9b9b9b;
	margin-left: 20px;
	margin-bottom: 20px;
}

#atcl-login-overlay .age-checker-tab {
	flex: 1;
	padding: 10px 0;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 14px;
	font-weight: 600;
	color: #9b9b9b;
	cursor: pointer;
	margin-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}

#atcl-login-overlay .age-checker-tab.active {
	color: #fff;
	border-bottom-color: #9b9b9b;
}

#atcl-login-overlay .age-checker-panel {
	display: none;
	padding-left: 20px;
}

#atcl-login-overlay .age-checker-panel.active {
	display: block;
}

/* ---- Register form ---- */
#atcl-login-overlay .age-checker-form label {
	display: block;
	text-align: left;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #9b9b9b;
}

#atcl-login-overlay .age-checker-form input[type="text"],
#atcl-login-overlay .age-checker-form input[type="email"],
#atcl-login-overlay .age-checker-form input[type="password"] {
	width: 100%;
	padding: 6px 12px;
	margin-bottom: 8px;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	box-sizing: border-box;
}

#atcl-login-overlay .age-checker-form input:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

#atcl-login-overlay .age-checker-form button[type="submit"] {
	width: 100%;
	padding: 12px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

#atcl-login-overlay .age-checker-form button[type="submit"]:hover {
	background: #1d4ed8;
}

#atcl-login-overlay .age-checker-form button[type="submit"]:disabled {
	background: #93b4f5;
	cursor: not-allowed;
}

#atcl-login-overlay .age-checker-required {
	color: #b91c1c;
}

#atcl-login-overlay .age-checker-note {
	font-size: 12px;
	color: #9b9b9b;
	text-align: left;
	margin: 0 0 12px;
}

#atcl-login-overlay .age-checker-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 12px;
	text-align: left;
}

#atcl-login-overlay .age-checker-consent label {
	margin: 0;
	font-size: 13px;
	color: #fff;
	cursor: pointer;
}

#atcl-login-overlay .age-checker-consent input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	cursor: pointer;
}

#atcl-login-overlay .age-checker-privacy {
	font-size: 12px;
	color: #9b9b9b;
	text-align: left;
	margin: 0 0 16px;
	line-height: 1.5;
}

#atcl-login-overlay .age-checker-privacy a {
	color: #9b9b9b;
	text-decoration: underline;
}

#atcl-login-overlay .age-checker-msg {
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	display: none;
	text-align: left;
}

#atcl-login-overlay .age-checker-msg.error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	display: block;
}

#atcl-login-overlay .age-checker-msg.success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
	display: block;
}

/* ---- MiniOrange login embedded inside our popup ---- */
#atcl-login-overlay .age-checker-panel-login .mo-clp-backdrop {
	position: static !important;
	display: block !important;
	background: none !important;
	padding: 0 !important;
	min-height: auto !important;
	z-index: auto !important;
}

#atcl-login-overlay .age-checker-panel-login .mo-clp-modal {
	position: static !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	transform: none !important;
	background: transparent !important;
	overflow:hidden;
}

#atcl-login-overlay .age-checker-panel-login .mo-clp-close,
#atcl-login-overlay .age-checker-panel-login .mo-clp-header {
	display: none !important;
}

#atcl-login-overlay .age-checker-panel-login .mo-clp-loader {
	display: none;
}

#atcl-login-overlay .mo-clp-subtitle,
#atcl-login-overlay .mo-clp-otp-info,
#atcl-login-overlay .mo-clp-otp-info strong,
#atcl-login-overlay #mo-clp-use-different-email,
#atcl-login-overlay .mo-clp-otp-label {
	color: #9b9b9b;
}

/* ---- Responsive ---- */
@media screen and (max-width: 767px) {
	#atcl-login-overlay .vape_auth_box {
		padding: 0 20px 200px 20px;
    background-size: 170px;
	}

	#atcl-login-overlay .vape_auth_box .auth_txt {
		font-size: 14px;
		line-height: 18px;
		margin-bottom: 20px;
	}
	#atcl-login-overlay .age-checker-screen-auth h2, #atcl-login-overlay .age-checker-auth-title{
		font-size: 24px;
		line-height: 1.2;
		margin-bottom: 20px;
	}
}
