/**
 * B24 Popup — default template cosmetics.
 *
 * Loaded only when a default-template popup is active (skipped when the popup
 * uses custom HTML/CSS). Structure & behavior live in popup-core.css.
 *
 * --b24popup-bar-h is measured at runtime in popup.js (fallback: 42px).
 */

/* ---------- Sticky top bar (cosmetics; positioning is in popup-core.css) ---------- */
.b24-top-bar {
	width: 100%;
	min-height: 42px;
	background-color: #B7FFBE;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	padding: 8px 12px;
	box-sizing: border-box;
}

.b24-top-bar__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}

.b24-top-bar__text {
	font-size: 14px;
	font-weight: 500;
	color: #000;
	letter-spacing: -0.14px;
	margin: 0;
}

.b24-top-bar__text strong {
	font-weight: 700;
}

.b24-top-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	background: #000;
	color: white;
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	letter-spacing: -0.1px;
	border-radius: 100px;
	text-decoration: none !important;
	white-space: nowrap;
	border: 1.5px solid #000;
	transition: background 0.2s ease, color 0.2s ease;
	outline: none;
	box-shadow: none;
}

.b24-top-bar__btn:hover,
.b24-top-bar__btn:focus {
	background: #fff;
	color: #000 !important;
	outline: none;
	box-shadow: none;
	border-color: transparent;
}

/* ---------- Center modal (default box) ---------- */
.b24-popup-modal--default {
	background: #fff;
	border-radius: 16px;
	padding: 32px 28px;
	text-align: center;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.b24-popup-modal--default .b24-popup-modal__text {
	font-size: 18px;
	font-weight: 500;
	color: #000;
	letter-spacing: -0.18px;
	margin: 0 0 18px;
}

.b24-popup-modal--default .b24-popup-modal__text strong {
	font-weight: 700;
}

.b24-popup-modal--default .b24-popup-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: #000;
	color: #B7FFBE !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.14px;
	border-radius: 100px;
	text-decoration: none !important;
	border: 1.5px solid #000;
	transition: background 0.2s ease, color 0.2s ease;
}

.b24-popup-modal--default .b24-popup-modal__btn:hover,
.b24-popup-modal--default .b24-popup-modal__btn:focus {
	background: #fff;
	color: #000 !important;
	border-color: #000;
}

/* ---------- Responsive ---------- */

/* Tablet and below. */
@media screen and (max-width: 1024px) {
	.b24-popup-modal--default {
		padding: 28px 24px;
	}

	.b24-popup-modal--default .b24-popup-modal__text {
		font-size: 17px;
	}
}

/* Mobile. */
@media screen and (max-width: 767px) {
	.b24-top-bar {
		padding: 8px 12px;
	}

	.b24-top-bar__inner {
		gap: 10px;
	}

	.b24-top-bar__text {
		font-size: 13px;
		line-height: 1.3;
		text-align: center;
	}

	.b24-popup-modal--default {
		padding: 24px 20px;
		border-radius: 14px;
	}

	.b24-popup-modal--default .b24-popup-modal__text {
		font-size: 16px;
		margin-bottom: 16px;
	}

	.b24-popup-modal--default .b24-popup-modal__btn {
		padding: 11px 20px;
		font-size: 13px;
	}
}

/* Small phones — stack the bar content. */
@media screen and (max-width: 480px) {
	.b24-top-bar__inner {
		flex-direction: column;
		gap: 6px;
	}

	.b24-top-bar__text {
		font-size: 12.5px;
	}

	.b24-popup-modal--default {
		padding: 22px 16px;
	}

	.b24-popup-modal--default .b24-popup-modal__text {
		font-size: 15px;
	}
}
