/* Tinyplugs Reviews — review page. Mobile first. */

.tpr-review {
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
}

.tpr-review__title {
	margin: 0 0 8px;
	font-size: 1.6em;
	line-height: 1.25;
}

.tpr-review__intro {
	margin: 0 0 18px;
	color: #50575e;
}

.tpr-review__perk {
	margin: 0 0 22px;
	padding: 12px 16px;
	background: #f6f7f7;
	border-radius: 8px;
	font-size: 0.95em;
}

.tpr-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #f0f6fc;
	border-left: 4px solid var(--tpr-accent, #2271b1);
}

.tpr-notice--error {
	background: #fcf0f1;
	border-left-color: #d63638;
}

.tpr-notice ul {
	margin: 0;
	padding-left: 18px;
}

.tpr-fields {
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
}

@media (min-width: 600px) {
	.tpr-fields {
		grid-template-columns: 1fr 1fr;
	}
}

.tpr-field {
	margin: 0 0 16px;
}

.tpr-field label,
.tpr-label {
	display: block;
	font-weight: 600;
	margin: 0 0 6px;
}

.tpr-field input[type="text"],
.tpr-field input[type="email"],
.tpr-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #c3c4c7;
	border-radius: 7px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.tpr-field input:focus,
.tpr-field textarea:focus {
	outline: 2px solid var(--tpr-accent, #2271b1);
	outline-offset: 1px;
	border-color: transparent;
}

.tpr-hint {
	display: block;
	font-weight: 400;
	font-size: 0.82em;
	color: #787c82;
	margin-top: 4px;
}

.tpr-req {
	color: #d63638;
}

.tpr-product {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 18px;
	margin: 0 0 20px;
	background: #fff;
}

.tpr-product__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
}

.tpr-product__image img {
	display: block;
	width: 72px;
	height: auto;
	border-radius: 8px;
}

.tpr-product__name {
	font-size: 1.05em;
	font-weight: 600;
}

/* Star rating: rendered in reverse so the CSS sibling selector can light up
   every star to the left of the selected one. */
.tpr-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.tpr-stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tpr-stars label {
	font-size: 34px;
	line-height: 1;
	color: #d5d7da;
	cursor: pointer;
	padding: 0 3px;
	transition: color 0.12s ease-in-out;
	margin: 0;
}

.tpr-stars label:hover,
.tpr-stars label:hover ~ label,
.tpr-stars input:checked ~ label {
	color: #f0a30a;
}

.tpr-stars input:focus-visible + label {
	outline: 2px solid var(--tpr-accent, #2271b1);
	border-radius: 4px;
}

.tpr-photos input[type="file"] {
	font: inherit;
	max-width: 100%;
}

.tpr-photo-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.tpr-photo-preview img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.tpr-photo-error {
	color: #d63638;
	font-size: 0.85em;
	margin-top: 6px;
}

.tpr-inline-error {
	color: #d63638;
	font-size: 0.9em;
	font-weight: 600;
	margin-top: 10px;
}

.tpr-consent label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-weight: 400;
	font-size: 0.95em;
}

.tpr-button {
	display: inline-block;
	background: var(--tpr-accent, #2271b1);
	color: #fff;
	border: 0;
	border-radius: 7px;
	padding: 14px 30px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.tpr-button:hover {
	filter: brightness(0.92);
	color: #fff;
}

.tpr-submit {
	margin: 24px 0 12px;
}

.tpr-smallprint {
	font-size: 0.82em;
	color: #787c82;
}

/* Thank you */

.tpr-review--thanks {
	text-align: center;
}

.tpr-thanks__check {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: var(--tpr-accent, #2271b1);
	color: #fff;
	font-size: 30px;
	margin: 0 auto 16px;
}

.tpr-thanks__list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	color: #50575e;
}

.tpr-coupon {
	border: 2px dashed var(--tpr-accent, #2271b1);
	border-radius: 12px;
	padding: 24px 18px;
	margin: 24px 0;
}

.tpr-coupon__amount {
	color: #50575e;
	margin-bottom: 8px;
}

.tpr-coupon__code {
	font-family: "SF Mono", Consolas, Menlo, monospace;
	font-size: 1.7em;
	font-weight: 700;
	letter-spacing: 2px;
}

.tpr-coupon__expiry,
.tpr-coupon__note {
	font-size: 0.85em;
	color: #787c82;
	margin: 8px 0 0;
}
