/**
 * MBWS Age Verification — Popup Styles
 *
 * @package MBWS_Age_Verification
 */

/* ============================================
   Reset & Overlay
   ============================================ */
.mbws-age-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	padding: 16px;
}

/* ============================================
   Popup Card
   ============================================ */
.mbws-age-popup {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	max-width: 440px;
	width: 100%;
	padding: 40px 36px 36px;
	text-align: center;
	animation: mbwsFadeIn 0.35s ease-out;
	position: relative;
}

@keyframes mbwsFadeIn {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ============================================
   18+ Icon
   ============================================ */
.mbws-age-icon {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
}

.mbws-age-icon svg {
	display: block;
}

/* ============================================
   Title & Description
   ============================================ */
.mbws-age-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
	line-height: 1.3;
}

.mbws-age-desc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 14px;
	color: #666666;
	margin: 0 0 28px;
	line-height: 1.5;
}

/* ============================================
   Form & Selects
   ============================================ */
.mbws-age-form {
	width: 100%;
}

.mbws-age-selects {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.mbws-age-select {
	flex: 1;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	background: #fafafa;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mbws-age-select:focus {
	outline: none;
	border-color: #d4a843;
	box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.mbws-age-select:hover {
	border-color: #c0c0c0;
}

/* ============================================
   Error Message
   ============================================ */
.mbws-age-error {
	background: #fff5f5;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #dc2626;
	font-size: 13px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	animation: mbwsShake 0.4s ease;
}

@keyframes mbwsShake {

	0%,
	100% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-6px);
	}

	40% {
		transform: translateX(6px);
	}

	60% {
		transform: translateX(-4px);
	}

	80% {
		transform: translateX(4px);
	}
}

/* ============================================
   Buttons
   ============================================ */
.mbws-age-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mbws-age-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1;
}

.mbws-age-btn:active {
	transform: scale(0.97);
}

/* Confirm Button — Gold */
.mbws-age-btn-confirm {
	background: linear-gradient(135deg, #d4a843, #c49630);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(212, 168, 67, 0.35);
}

.mbws-age-btn-confirm:hover {
	background: linear-gradient(135deg, #c49630, #b48825);
	box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

/* Cancel Button — Gray */
.mbws-age-btn-cancel {
	background: #f0f0f0;
	color: #666666;
	box-shadow: none;
}

.mbws-age-btn-cancel:hover {
	background: #e4e4e4;
	color: #444444;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
	.mbws-age-popup {
		padding: 28px 20px 24px;
		border-radius: 12px;
	}

	.mbws-age-title {
		font-size: 18px;
	}

	.mbws-age-desc {
		font-size: 13px;
		margin-bottom: 20px;
	}

	.mbws-age-selects {
		flex-direction: column;
		gap: 8px;
	}

	.mbws-age-select {
		padding: 11px 12px;
		font-size: 14px;
	}

	.mbws-age-btn {
		padding: 13px 16px;
		font-size: 14px;
	}

	.mbws-age-icon svg {
		width: 60px;
		height: 60px;
	}
}
/* ============================================
   [YC-4] Fail / Not Eligible Message
   ============================================ */
.mbws-age-fail-msg {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 8px;
	color: #5d4037;
	font-size: 15px;
	font-weight: 600;
	padding: 16px 20px;
	margin-bottom: 16px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.5;
	animation: mbwsFadeIn 0.3s ease-out;
}
