.jtr-rating-card {
	--jtr-bg: var(--sf-weton-panel, #111111);
	--jtr-bg-deep: var(--sf-weton-bg-soft, #0b0b0b);
	--jtr-border: var(--sf-weton-border, #3a2b0c);
	--jtr-text: var(--sf-weton-text, #e9e1d2);
	--jtr-muted: var(--sf-weton-muted, #bfb6a5);
	--jtr-gold: var(--sf-weton-gold, #f4b23c);
	--jtr-gold-hover: var(--sf-weton-gold-hover, #ffd36d);
	position: relative;
	margin: 32px 0 12px;
	padding: 24px;
	background:
		radial-gradient(circle at 92% 0%, rgba(244, 178, 60, .10), transparent 36%),
		linear-gradient(180deg, rgba(17, 17, 17, .96), rgba(8, 8, 8, .98)) !important;
	border: 1px solid var(--jtr-border) !important;
	border-radius: 22px;
	box-shadow: 0 16px 44px rgba(0, 0, 0, .20) !important;
	color: var(--jtr-text) !important;
	isolation: isolate;
}

.jtr-rating-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 28px;
	width: 78px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--jtr-gold), transparent);
}

.jtr-rating-card *,
.jtr-rating-card *::before,
.jtr-rating-card *::after {
	box-sizing: border-box;
}

.jtr-rating-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
}

.jtr-rating-heading {
	min-width: 0;
}

.jtr-eyebrow {
	display: block;
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--jtr-gold) !important;
	-webkit-text-fill-color: var(--jtr-gold) !important;
}

.jtr-rating-card h2 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: clamp(19px, 2vw, 25px) !important;
	line-height: 1.32 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.jtr-rating-card h2::before,
.jtr-rating-card h2::after {
	display: none !important;
}

.jtr-rating-summary {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-height: 38px;
	padding: 8px 12px;
	background: rgba(0, 0, 0, .26) !important;
	border: 1px solid rgba(244, 178, 60, .22) !important;
	border-radius: 999px;
	white-space: nowrap;
}

.jtr-average-stars {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 1px;
	background: linear-gradient(90deg, var(--jtr-gold) var(--jtr-percent), #5d5548 var(--jtr-percent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

.jtr-average-number {
	font-size: 15px;
	font-weight: 800;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.jtr-rating-count,
.jtr-empty-summary {
	font-size: 12px;
	color: var(--jtr-muted) !important;
	-webkit-text-fill-color: var(--jtr-muted) !important;
}

.jtr-intro {
	margin: 14px 0 18px !important;
	max-width: 760px;
	font-size: 14px !important;
	line-height: 1.65 !important;
	color: var(--jtr-muted) !important;
	-webkit-text-fill-color: var(--jtr-muted) !important;
}

.jtr-rating-form {
	margin: 0;
}

.jtr-form-row {
	display: grid;
	grid-template-columns: minmax(220px, auto) minmax(240px, 1fr) auto;
	align-items: center;
	gap: 14px;
}

.jtr-star-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.jtr-star-options {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 6px 8px;
	background: var(--jtr-bg-deep) !important;
	border: 1px solid var(--jtr-border) !important;
	border-radius: 14px;
}

.jtr-star-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.jtr-star-label {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0 !important;
	border-radius: 9px;
	cursor: pointer;
	font-size: 25px;
	line-height: 1;
	color: #6f6658 !important;
	-webkit-text-fill-color: #6f6658 !important;
	transition: color .16s ease, transform .16s ease, background .16s ease;
}

.jtr-star-label:hover,
.jtr-star-label.is-hovered,
.jtr-star-label.is-selected {
	color: var(--jtr-gold) !important;
	-webkit-text-fill-color: var(--jtr-gold) !important;
	background: rgba(244, 178, 60, .08) !important;
}

.jtr-star-label:hover {
	transform: translateY(-1px) scale(1.04);
}

.jtr-star-input:focus-visible + .jtr-star-label {
	outline: 2px solid var(--jtr-gold);
	outline-offset: 2px;
}

.jtr-choice-text {
	margin: 5px 4px 0 !important;
	font-size: 11px !important;
	line-height: 1.35 !important;
	color: var(--jtr-muted) !important;
	-webkit-text-fill-color: var(--jtr-muted) !important;
}

.jtr-review-field {
	position: relative;
	min-width: 0;
}

.jtr-rating-card textarea {
	display: block;
	width: 100% !important;
	min-height: 54px !important;
	max-height: 130px;
	margin: 0 !important;
	padding: 14px 56px 12px 15px !important;
	resize: vertical;
	background: var(--jtr-bg-deep) !important;
	border: 1px solid var(--jtr-border) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	color: var(--jtr-text) !important;
	-webkit-text-fill-color: var(--jtr-text) !important;
	font: inherit !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.jtr-rating-card textarea:focus {
	border-color: var(--jtr-gold) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(244, 178, 60, .10) !important;
}

.jtr-rating-card textarea::placeholder {
	color: #8f8678 !important;
	-webkit-text-fill-color: #8f8678 !important;
	opacity: 1;
}

.jtr-character-count {
	position: absolute;
	right: 12px;
	bottom: 9px;
	font-size: 10px;
	color: #81796c !important;
	-webkit-text-fill-color: #81796c !important;
	pointer-events: none;
}

.jtr-submit,
.jtr-rating-card button.jtr-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 142px;
	min-height: 52px;
	margin: 0 !important;
	padding: 12px 18px !important;
	background: linear-gradient(135deg, var(--jtr-gold), #dc9312) !important;
	border: 1px solid var(--jtr-gold) !important;
	border-radius: 14px !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
	color: #171005 !important;
	-webkit-text-fill-color: #171005 !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.jtr-submit:hover,
.jtr-rating-card button.jtr-submit:hover {
	background: linear-gradient(135deg, var(--jtr-gold-hover), var(--jtr-gold)) !important;
	color: #120d00 !important;
	-webkit-text-fill-color: #120d00 !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .25) !important;
}

.jtr-submit:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 3px;
}

.jtr-submit:disabled {
	cursor: wait;
	opacity: .7;
	transform: none;
}

.jtr-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.jtr-form-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 11px;
}

.jtr-moderation-note {
	margin: 0 !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
	color: #91887a !important;
	-webkit-text-fill-color: #91887a !important;
}

.jtr-feedback {
	min-height: 18px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.jtr-feedback.is-success {
	color: #9fd3a6 !important;
	-webkit-text-fill-color: #9fd3a6 !important;
}

.jtr-feedback.is-error {
	color: #efaaaa !important;
	-webkit-text-fill-color: #efaaaa !important;
}

.jtr-rating-card.is-submitted .jtr-form-row,
.jtr-rating-card.is-submitted .jtr-moderation-note {
	display: none;
}

.jtr-rating-card.is-submitted .jtr-form-bottom {
	margin-top: 4px;
	justify-content: flex-start;
}

.jtr-rating-card.is-submitted .jtr-feedback {
	padding: 12px 14px;
	background: rgba(91, 145, 100, .12) !important;
	border: 1px solid rgba(159, 211, 166, .24) !important;
	border-radius: 12px;
	text-align: left;
}

@media (max-width: 820px) {
	.jtr-form-row {
		grid-template-columns: 1fr auto;
	}

	.jtr-review-field {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.jtr-submit {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 620px) {
	.jtr-rating-card {
		margin-top: 26px;
		padding: 20px 16px;
		border-radius: 18px;
	}

	.jtr-rating-head {
		flex-direction: column;
		gap: 12px;
	}

	.jtr-rating-summary {
		justify-content: flex-start;
	}

	.jtr-form-row {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.jtr-star-options {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.jtr-star-label {
		width: 40px;
		height: 40px;
		font-size: 28px;
	}

	.jtr-submit,
	.jtr-rating-card button.jtr-submit {
		width: 100% !important;
	}

	.jtr-form-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.jtr-feedback {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jtr-rating-card *,
	.jtr-rating-card *::before,
	.jtr-rating-card *::after {
		transition: none !important;
	}
}
