/* Shared styles for Quiz Popup components */

/* Base popup overlay and dialog */
.bottom-dialog-overlay {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: flex-end;
	z-index: 1000;
}

.bottom-dialog {
	width: 100%;
	background: white;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	overflow-y: auto;
	max-height: 80vh;
	max-height: 80dvh;
	transition: transform 0.25s ease-out;
}

/* Header section */
.title-container {
	display: flex;
	justify-content: space-between;
	font-size: 24px;
	font-weight: 500;
	padding: 24px 16px 8px;
}

/* Content section */
.popup-information {
	padding-left: 16px;
	padding-right: 16px;
	color: #000;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: 130%;
}

.popup-subtitle {
	margin: 0;
	font-size: 17px;
	font-weight: bold;
}

/* Actions section */
.popup-actions {
	padding-top: 24px;
	padding-bottom: 16px;
	padding-left: 16px;
	padding-right: 16px;
}

/* Button styles */
.bottom-dialog .second-button,
.xp-overlay .second-button {
	width: 100% !important;
	background-color: white !important;
	border: 1px solid #6D6D6D !important;
	color: black !important;
}

.bottom-dialog .tipster-button,
.xp-overlay .tipster-button {
	width: 100% !important;
}

.bottom-dialog .button-container,
.xp-overlay .button-container {
	padding-left: 0 !important;
	padding-right: 0px !important;
	padding-top: 0px !important;
}

/* Specific content styles */
.enter-email {
	font-size: 14px;
	color: var(--tarmac-black);
	margin-bottom: 1rem;
}

.email {
	font-size: 12px;
	padding-top: 16px;
	margin-bottom: 1rem;
}

.completed-content {
	padding-top: 10px;
}

.price-image {
	overflow: hidden;
	width: 100%;
}

/* Terms specific styles */
.terms-content {
	max-height: 400px;
	overflow-y: auto;
	padding: 20px;
	background-color: #f5f5f5;
	border-radius: 8px;
	margin: 10px 0;
}

.terms-text {
	font-size: 12px;
	line-height: 1.4;
	color: #333;
}

	/* Override for headings in terms text */
	.terms-text h1, .terms-text h2, .terms-text h3, .terms-text h4, .terms-text h5, .terms-text h6 {
		font-size: 18px !important;
		font-weight: 600 !important;
		color: #2F9029 !important;
		margin: 16px 0 8px 0 !important;
		line-height: 1.3 !important;
		font-family: "Poppins", Arial, sans-serif !important;
	}

	.terms-text h1 {
		font-size: 20px !important;
	}

	.terms-text h2 {
		font-size: 18px !important;
	}

	.terms-text h3 {
		font-size: 16px !important;
	}

/* Even more specific selectors to ensure headings are styled correctly */
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h1,
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h2,
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h3,
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h4,
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h5,
.bottom-dialog-overlay .bottom-dialog .popup-information .terms-text h6 {
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #2F9029 !important;
	margin: 16px 0 8px 0 !important;
	line-height: 1.3 !important;
	font-family: "Poppins", Arial, sans-serif !important;
}

/* Results specific styles */
.results-content {
	text-align: center;
	padding: 20px;
}

.results-title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
}

.results-subtitle {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

/* Data completed specific styles */
.data-completed-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	display: block;
}

.data-completed-title {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 10px;
}

.data-completed-description {
	font-size: 14px;
	text-align: center;
	color: #666;
	margin-bottom: 20px;
}

/* Completed content styles */
.completed-title {
	color: #2F9029;
	font-family: "Poppins";
	font-style: normal;
	text-align: left;
	line-height: 107%;
	font-size: 24px;
	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.completed-info {
	font-size: 13px;
	padding-top: 8px;
}

.completed-subtitle {
	color: var(--tarmac-black);
	text-align: left;
	font-size: 13px;
	margin: 8px 0 0 0;
}

.user-info-section {
	text-align: left;
	margin-top: 20px;
}

.info-label {
	font-size: 14px;
	color: #000;
	margin: 12px 0 8px 0;
}

.info-value {
	font-size: 14px;
	font-weight: bold;
	color: #000;
	margin: 0 0 8px 0;
}

.change-contact-link {
	font-size: 14px;
	margin-top: 12px;
	text-align: center;
}

/* Quiz changed specific styles */
.welcomeaccount-title {
	font-size: 18px;
	font-family: "PoppinsBold";
	text-align: left;
	color: var(--tarmac-black);
}

/* XP popup styles (for AnswersSavedPopup) */
.xp-overlay {
	position: fixed;
	top: 40px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
}

.xp-popup {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--tarmac-black);
	color: var(--chalk-white);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	animation: slideUp 280ms ease-out forwards;
	transform: translateY(100%);
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

.xp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	color: var(--chalk-white);
	opacity: 0.8;
}

.xp-content {
	margin-top: auto;
	margin-bottom: auto;
	text-align: center;
	padding: 0 24px;
}

.xp-title {
	margin: 0 0 6px 0;
	text-transform: uppercase;
	font-size: 22px;
	font-family: "Poppins";
	color: var(--chalk-white);
}

.xp-subtitle {
	margin: 0;
	font-size: 12px;
	font-family: Poppins,  "Poppins", sans-serif;
	color: #BDBDBD;
}

.xp-actions {
	padding: 0 0 16px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.xp-link {
	background: transparent;
	border: none;
	color: var(--chalk-white);
	font-family: 'Poppins';
	font-size: 16px;
	margin-bottom: 10px;
	text-decoration: none;
}

/* Code input styles */
.code-input-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 16px 0px 12px 0px;
	padding: 0;
}

.code-input {
	width: 100%;
	height: 56px;
	border-radius: 8px;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	font-family: 'Poppins', Arial, sans-serif;
	color: var(--chalk-white);
	border: 1px solid var(--tarmac-gray);
	background-color: var(--tarmac-gray);
	transition: border-color 0.2s ease;
}

	.code-input:focus {
		outline: none;
		border-color: var(--cta-yellow);
		box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.2);
	}

	.code-input:disabled {
		background-color: #f5f5f5;
		color: #999;
		cursor: not-allowed;
	}

.popup-wrapper {
	background: #000;
	border-radius: 20px;
	padding: 22px;
	width: 100%;
	max-width: 420px;
	color: #fff;
}

.popup-title {
	color: #2F9029;
	font-size: 1.4rem;
	font-weight: 700;
}

.dark-mode-title {
	flex-direction: column;
	align-items: flex-start;
	padding: 0 16px;
	flex-shrink: 0;
}

.dark-mode-main-title {
	color: var(--unibet-green) !important;
	font-family: 'Poppins' !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	text-transform: uppercase;
	margin: 0 !important;
}

.dark-mode-subtitle {
	color: var(--chalk-white) !important;
	font-family: 'Poppins' !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	text-transform: uppercase;
	margin: 0 !important;
}

.dark-mode-create-account-link {
	color: var(--tarmac-gray-400);
	font-family: Poppins,  "Poppins", sans-serif;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	margin: 0 0 16px;
	padding: 0;
}

/* Email Section */
.email-text {
	margin-top: 8px;
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
}

.code-box-error {
	border-color: red !important;
}

/* Error Message */
.error-message {
	color: #ff3b3b;
	margin-top: 16px;
	font-size: 0.95rem;
}

.popup-label {
	color: #00ff48;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	padding: .5rem 0;
}

.popup-title-container {
	display: flex;
	justify-content: space-between;
	padding: 25px 0px 0px 0px;
}

.white-close-icn {
	height: 42px;
	width: 42px;
}

.popup-error {
	text-align: left !important;
	margin: 12px 0;
	font-size: 12px !important;
}

.loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(2px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
}
