.trc-redeem-wrapper {
	max-width: 480px;
	margin: 24px auto;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.04 );
	text-align: center;
	font-family: inherit;
}

.trc-redeem-wrapper h3 {
	margin-top: 0;
	font-size: 22px;
}

.trc-redeem-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 18px;
}

.trc-code-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	border: 2px solid #ddd;
	border-radius: 8px;
	box-sizing: border-box;
}

.trc-code-input:focus {
	border-color: #2271b1;
	outline: none;
}

.trc-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	text-decoration: none;
	transition: opacity .15s ease;
}

.trc-btn:hover {
	opacity: .9;
}

.trc-btn-primary {
	background: #2271b1;
	color: #fff;
}

.trc-btn-secondary {
	background: #1d2327;
	color: #fff;
}

.trc-btn-outline {
	background: transparent;
	border-color: #2271b1;
	color: #2271b1;
}

.trc-redeem-message {
	margin-top: 16px;
	font-size: 14px;
	min-height: 20px;
}

.trc-redeem-message.trc-success {
	color: #00a32a;
	font-weight: 600;
}

.trc-redeem-message.trc-error {
	color: #d63638;
	font-weight: 600;
}

.trc-login-required .trc-login-form {
	text-align: start;
	margin-top: 16px;
}

.trc-auth-links {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
}

/* Course page button + modal */
.trc-course-button-wrapper {
	margin: 14px 0;
	text-align: center;
}

.trc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trc-modal-box {
	position: relative;
	max-width: 480px;
	width: 90%;
}

.trc-modal-close {
	position: absolute;
	top: -14px;
	inset-inline-end: -14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #1d2327;
	color: #fff;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.trc-modal-box .trc-redeem-wrapper {
	margin: 0;
}

/* Login / Register tabs */
.trc-auth-tabs {
	display: flex;
	gap: 8px;
	margin: 18px 0 6px;
	border-bottom: 1px solid #eee;
}

.trc-auth-tab {
	flex: 1;
	padding: 10px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-weight: 600;
	color: #666;
}

.trc-auth-tab.trc-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.trc-auth-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: start;
	margin-top: 14px;
}

.trc-auth-form label {
	font-size: 13px;
	font-weight: 600;
}

.trc-auth-form input[type="text"],
.trc-auth-form input[type="email"],
.trc-auth-form input[type="password"] {
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}

.trc-auth-message {
	min-height: 18px;
	font-size: 13px;
}

.trc-auth-message.trc-success { color: #00a32a; font-weight: 600; }
.trc-auth-message.trc-error { color: #d63638; font-weight: 600; }
