/**
 * Custom Trustpilot-style “Rate us” widget.
 * Default: 4.5 green stars. Hover: darker green. Left-aligned stack.
 */

.tp-rate-trustpilot__inner {
	display: flex;
	justify-content: center;
}

.tp-rate-trustpilot__link {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
	max-width: 100%;
	text-align: left;
}

.tp-rate-trustpilot__link:hover {
	text-decoration: none;
}

.tp-rate-trustpilot__logo {
	position: relative;
	display: block;
	width: 126px;
	height: 31px;
	flex-shrink: 0;
	overflow: hidden;
}

.tp-rate-trustpilot__logo-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.tp-rate-trustpilot__logo-img--dark {
	display: none;
}

[data-theme="dark"] .tp-rate-trustpilot__logo-img--light {
	display: none;
}

[data-theme="dark"] .tp-rate-trustpilot__logo-img--dark {
	display: block;
}

.tp-rate-trustpilot__stars {
	display: block;
	line-height: 0;
}

.tp-rate-trustpilot__stars-svg {
	display: block;
	height: 36px;
	width: auto;
	max-width: 100%;
}

.tp-rate-trustpilot__stars-svg .tp-star__canvas,
.tp-rate-trustpilot__stars-svg .tp-star__canvas--half {
	fill: #00b67a;
	transition: fill 0.2s ease;
}

.tp-rate-trustpilot__stars-svg .tp-star--half .tp-star__canvas {
	fill: #dcdce6;
}

.tp-rate-trustpilot__stars-svg .tp-star__shape {
	fill: #fff;
}

.tp-rate-trustpilot__link:hover .tp-star__canvas,
.tp-rate-trustpilot__link:hover .tp-star__canvas--half {
	fill: #007a52;
}

.tp-rate-trustpilot__link:hover .tp-star--half .tp-star__canvas {
	fill: #dcdce6;
}

.tp-rate-trustpilot__cta {
	font-size: 0.875rem;
	line-height: 1.4;
	font-weight: 400;
	color: #191919;
}

[data-theme="dark"] .tp-rate-trustpilot__cta {
	color: #e2e8f0;
}

[data-theme="dark"] .tp-rate-trustpilot__stars-svg .tp-star--half .tp-star__canvas {
	fill: #4b5563;
}

[data-theme="dark"] .tp-rate-trustpilot__link:hover .tp-star--half .tp-star__canvas {
	fill: #4b5563;
}
