.periscopio-retake-wrapper {
	margin-top: 15px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.periscopio-retake-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.periscopio-retake-badge {
	display: inline-block;
	background: #227C9D;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.periscopio-retake-completed {
	color: #28a745;
	font-size: 13px;
	font-weight: 500;
}

.periscopio-retake-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: #4a90e2;
	color: #fff !important;
	text-align: center;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: background 0.2s;
	border: none;
	cursor: pointer;
}

.periscopio-retake-btn:hover {
	background: #357abd;
	color: #fff !important;
}

.periscopio-retake-btn i {
	margin-right: 6px;
}

/* History toggle */
.periscopio-retake-history {
	margin-bottom: 12px;
}

.periscopio-retake-history-toggle {
	background: none;
	border: none;
	color: #4a90e2;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 0;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.periscopio-retake-history-toggle:hover {
	color: #357abd;
}

.periscopio-retake-history-toggle .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.periscopio-retake-history-toggle[aria-expanded="true"] .dashicons {
	transform: rotate(180deg);
}

.periscopio-retake-history-list {
	margin-top: 8px;
	border-top: 1px solid #dee2e6;
	padding-top: 8px;
}

.periscopio-retake-history-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 12px;
	color: #6c757d;
	border-bottom: 1px solid #f1f3f5;
	flex-wrap: wrap;
}

.periscopio-retake-history-item:last-child {
	border-bottom: none;
}

.periscopio-retake-history-item .attempt-num {
	font-weight: 600;
	color: #495057;
	min-width: 70px;
}

.periscopio-retake-history-item .attempt-progress {
	font-weight: 600;
	color: #28a745;
}

.periscopio-retake-history-item .attempt-status {
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 10px;
	background: #e9ecef;
}

.periscopio-retake-history-item .attempt-status--retake_completed {
	background: #d4edda;
	color: #155724;
}

.periscopio-retake-history-item .attempt-status--enrolled {
	background: #cce5ff;
	color: #004085;
}
