/*
 * Assessment Timer Manager — Frontend styles
 * Compact bar only. No circular/pseudo-element graphics (they break inside Popup Maker).
 */

.gform_wrapper .atm-timer-display,
.atm-timer-display {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 5;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	box-sizing: border-box !important;
}

.gform_wrapper .atm-timer-display::before,
.gform_wrapper .atm-timer-display::after,
.atm-timer-display::before,
.atm-timer-display::after,
.gform_wrapper .atm-timer-inner::before,
.gform_wrapper .atm-timer-inner::after,
.atm-timer-inner::before,
.atm-timer-inner::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.gform_wrapper .atm-timer-inner,
.atm-timer-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
	padding: 10px 14px !important;
	border-radius: 8px !important;
	background: #0b2b63 !important;
	border: 1px solid #0b2b63 !important;
	box-shadow: 0 2px 8px rgba(11, 43, 99, 0.18) !important;
	color: #ffffff !important;
	overflow: hidden !important;
}

.gform_wrapper .atm-timer-meta,
.atm-timer-meta {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 2px !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	width: auto !important;
	height: auto !important;
}

.gform_wrapper .atm-timer-label,
.atm-timer-label {
	display: block !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: #d7e3f4 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}

.gform_wrapper .atm-timer-value,
.atm-timer-value {
	display: block !important;
	font-size: 22px !important;
	line-height: 1.15 !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums !important;
	letter-spacing: 0.03em !important;
	color: #f4b400 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}

.gform_wrapper .atm-timer-badge,
.atm-timer-badge {
	display: inline-block !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 5px 10px !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	width: auto !important;
	height: auto !important;
}

/* Warning: under 60s */
.gform_wrapper .atm-timer-display.atm-timer-warning .atm-timer-inner,
.atm-timer-display.atm-timer-warning .atm-timer-inner {
	background: #8a5300 !important;
	border-color: #8a5300 !important;
}

.gform_wrapper .atm-timer-display.atm-timer-warning .atm-timer-value,
.atm-timer-display.atm-timer-warning .atm-timer-value {
	color: #ffe7b8 !important;
}

/* Expired */
.gform_wrapper .atm-timer-display.atm-timer-expired .atm-timer-inner,
.atm-timer-display.atm-timer-expired .atm-timer-inner {
	background: #8f1f1a !important;
	border-color: #8f1f1a !important;
}

.gform_wrapper .atm-timer-display.atm-timer-expired .atm-timer-value,
.atm-timer-display.atm-timer-expired .atm-timer-value {
	color: #ffd6d4 !important;
}

@media (max-width: 520px) {
	.gform_wrapper .atm-timer-value,
	.atm-timer-value {
		font-size: 20px !important;
	}

	.gform_wrapper .atm-timer-badge,
	.atm-timer-badge {
		display: none !important;
	}
}

.atm-message {
	display: none;
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}

.atm-message-warning {
	background: #fdecea;
	border: 1px solid #f5a3a0;
	color: #7a1410;
}

.atm-message-info {
	background: #e8f1fc;
	border: 1px solid #a9c9f0;
	color: #10386b;
}
