/* ==========================================================================
   Quiz Points YITH Connector — reward UI styles
   ========================================================================== */

/* Container */
.qpyc-reward-box {
	margin: 2em auto;
	max-width: 720px;
	padding: 2em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	font-family: inherit;
	color: #1a1a1a;
}

@media(min-width: 850px) {
	.qpyc-reward-box {
		min-width: 700px;
	}
}

/* Header */
.qpyc-reward-header {
	text-align: center;
	margin-bottom: 1.75em;
}

.qpyc-reward-icon {
	font-size: 3em;
	line-height: 1;
	margin-bottom: 0.3em;
}

.qpyc-reward-title {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 0.5em;
	color: #111;
}

.qpyc-reward-summary {
	font-size: 1em;
	color: #444;
	margin: 0 0 1em;
}

.qpyc-extras-list {
	list-style: disc;
	display: inline-block;
	text-align: left;
	margin: 0.5em 0 0;
	padding-left: 1.5em;
}

.qpyc-extras-list li {
	margin-bottom: 0.25em;
}

.qpyc-choose-prompt {
	font-size: 1.05em;
	color: #333;
	margin: 0;
}

/* Options row */
.qpyc-reward-options {
	display: flex;
	gap: 1.5em;
	align-items: stretch;
}

@media (max-width: 600px) {
	.qpyc-reward-options {
		flex-direction: column;
	}
}

/* Individual option card */
.qpyc-option {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.5em;
	border-radius: 10px;
	border: 2px solid transparent;
}

.qpyc-option-1 {
	background: #f0f8f0;
	border-color: #4caf50;
}

.qpyc-option-2 {
	background: #f0f4ff;
	border-color: #5c7cfa;
}

.qpyc-option-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	margin-bottom: 0.75em;
	width: fit-content;
}

.qpyc-option-1 .qpyc-option-badge {
	background: #4caf50;
	color: #fff;
}

.qpyc-option-2 .qpyc-option-badge {
	background: #5c7cfa;
	color: #fff;
}

.qpyc-option-title {
	font-size: 1.1em;
	font-weight: 700;
	margin: 0 0 0.5em;
}

.qpyc-option p {
	font-size: 0.95em;
	color: #333;
	margin: 0 0 0.75em;
}

.qpyc-option-note {
	font-size: 0.85em !important;
	color: #666 !important;
	font-style: italic;
}

/* Buttons */
.qpyc-btn {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 0.75em 1em;
	font-size: 0.95em;
	font-weight: 700;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: opacity 0.2s, transform 0.1s;
	line-height: 1.3;
}

.qpyc-btn:hover:not( :disabled) {
	opacity: 0.88;
	transform: translateY(-1px);
}

.qpyc-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.qpyc-btn-primary {
	background: #4caf50;
	color: #fff;
}

.qpyc-btn-secondary {
	background: #5c7cfa;
	color: #fff;
}

/* OR divider */
.qpyc-or-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.qpyc-or-divider span {
	background: #e0e0e0;
	color: #666;
	border-radius: 50%;
	width: 2.5em;
	height: 2.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	font-weight: 700;
	flex-shrink: 0;
}

@media (max-width: 600px) {

	.qpyc-or-divider::before,
	.qpyc-or-divider::after {
		content: '';
		flex: 1;
		height: 1px;
		background: #e0e0e0;
	}

	.qpyc-or-divider span {
		margin: 0 0.5em;
	}
}

/* Status messages */
.qpyc-messages {
	margin-top: 1.25em;
	font-size: 0.95em;
	min-height: 1.5em;
	text-align: center;
}

.qpyc-messages:empty {
	display: none;
}

.qpyc-msg-success {
	color: #2e7d32;
	padding: 0.75em 1em;
	background: #e8f5e9;
	border-radius: 6px;
}

.qpyc-msg-error {
	color: #c62828;
	padding: 0.75em 1em;
	background: #ffebee;
	border-radius: 6px;
}

/* Already-claimed state */
.qpyc-already-claimed {
	text-align: center;
	padding: 1.5em;
	background: #f5f5f5;
	color: #555;
	font-style: italic;
}

/* Loading placeholder */
.qpyc-reward-loading {
	text-align: center;
	padding: 1em;
	color: #888;
	font-style: italic;
}

/* ==========================================================================
   Already-taken page (quiz replaced by reward summary)
   ========================================================================== */

.qpyc-already-taken-wrap {
	text-align: center;
}

.qpyc-claimed-details {
	margin-top: 1.5em;
}

.qpyc-claimed-option {
	display: inline-block;
	text-align: left;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 1.5em 2em;
	max-width: 440px;
	width: 100%;
}

/* Badge variants */
.qpyc-badge-green {
	background: #4caf50;
	color: #fff;
}

.qpyc-badge-blue {
	background: #5c7cfa;
	color: #fff;
}

/* Coupon code display */
.qpyc-coupon-display {
	margin: 1em 0 0.5em;
}

.qpyc-coupon-label {
	display: block;
	font-size: 0.85em;
	color: #666;
	margin-bottom: 0.4em;
}

code.qpyc-coupon-code {
	display: inline-block;
	font-family: monospace;
	font-size: 1.25em;
	font-weight: 700;
	letter-spacing: 0.12em;
	background: #fff;
	border: 2px dashed #aaa;
	border-radius: 6px;
	padding: 0.3em 0.8em;
	color: #333;
	user-select: all;
}

.qpyc-coupon-meta {
	font-size: 0.9em;
	color: #555;
	margin: 0.5em 0 1em;
}

/* Status indicators */
.qpyc-status {
	display: inline-block;
	font-size: 0.85em;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.25em 0.8em;
	margin-bottom: 1em;
}

.qpyc-status-active {
	background: #e8f5e9;
	color: #2e7d32;
}

.qpyc-status-used {
	background: #f5f5f5;
	color: #888;
}

.qpyc-status-expired {
	background: #ffebee;
	color: #c62828;
}

/* Points balance */
.qpyc-points-balance {
	font-size: 1.1em;
	font-weight: 700;
	color: #5c7cfa;
	margin: 0.5em 0 1em;
}

/* ==========================================================================
   Floating notice — shown after auto-claiming credit post-login
   ========================================================================== */

.qpyc-float-notice {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(2rem);
	background: #2e7d32;
	color: #fff;
	padding: 0.9em 1.6em;
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0,0,0,.18);
	font-size: 0.95em;
	font-weight: 600;
	max-width: 90vw;
	text-align: center;
	opacity: 0;
	transition: opacity .35s ease, transform .35s ease;
	z-index: 99999;
	pointer-events: none;
}

.qpyc-float-notice.qpyc-float-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}