/* Reviews addon — Figma RocketPen 21:277 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

.sun-reviews,
.sun-reviews-modal {
	--sun-reviews-text: #1a1a1a;
	--sun-reviews-text-secondary: #4a4a4a;
	--sun-reviews-muted: #9a9a9a;
	--sun-reviews-handwritten: #5d6d7e;
	--sun-reviews-border: #f0e6db;
	--sun-reviews-icon-bg: #fdf2f2;
	--sun-reviews-handwritten-bg: #fdf9f3;
	--sun-reviews-photo-bg: #f5f5f5;
	--sun-reviews-card-bg: #ffffff;
	--sun-reviews-accent: #E97786;
	--sun-reviews-container: 1280px;
	--sun-reviews-radius-lg: 16px;
	--sun-reviews-radius-md: 12px;
	--sun-reviews-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	--sun-reviews-shadow-accent: 0 4px 3px rgba(214, 125, 129, 0.13), 0 10px 7.5px rgba(214, 125, 129, 0.13);

	box-sizing: border-box;
	color: var(--sun-reviews-text);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	scroll-margin-top: 100px;
}

.sun-reviews *,
.sun-reviews *::before,
.sun-reviews *::after,
.sun-reviews-modal *,
.sun-reviews-modal *::before,
.sun-reviews-modal *::after {
	box-sizing: border-box;
}

.sun-reviews__container {
	margin: 0 auto;
	max-width: var(--sun-reviews-container);
	padding: 48px 20px;
	width: 100%;
}

/* Header */

.sun-reviews__header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

.sun-reviews__header-main {
	align-items: center;
	display: flex;
	gap: 12px;
}

.sun-reviews__header-icon {
	align-items: center;
	background: var(--sun-reviews-icon-bg);
	border-radius: 9999px;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.sun-reviews__title {
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
	margin: 0;
}

.sun-reviews__subtitle {
	color: var(--sun-reviews-muted);
	font-size: 16px;
	line-height: 21px;
	margin: 0;
}

/* Card layout */

.sun-reviews__card {
	margin-bottom: 16px;
}

.sun-reviews__card-stage {
	position: relative;
}

.sun-reviews__card-stage--transitioning {
	overflow: hidden;
}

.sun-reviews__card-inner {
	align-items: stretch;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(280px, 365px) minmax(0, 1fr);
	transition: opacity 0.28s ease;
}

.sun-reviews__sidebar,
.sun-reviews__display {
	background: var(--sun-reviews-card-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: var(--sun-reviews-radius-lg);
	box-shadow: var(--sun-reviews-shadow);
}

.sun-reviews__sidebar {
	padding: 24px;
}

.sun-reviews__display {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 25px;
}

/* Author */

.sun-reviews__author {
	align-items: center;
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.sun-reviews__avatar {
	align-items: center;
	background: var(--sun-reviews-icon-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: 9999px;
	display: inline-flex;
	flex-shrink: 0;
	height: 56px;
	justify-content: center;
	overflow: hidden;
	width: 56px;
}

.sun-reviews__avatar img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sun-reviews__author-name {
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	margin: 0 0 4px;
}

.sun-reviews__author-city {
	color: var(--sun-reviews-muted);
	font-size: 12px;
	line-height: 16px;
	margin: 0;
}

/* Sidebar blocks */

.sun-reviews__sidebar-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#sun-reviews .sun-reviews__label {
	color: var(--sun-reviews-muted);
	font-size: 14px;
	line-height: 16px;
	margin: 0 0 8px;
}

.sun-reviews__handwritten .sun-reviews__label {
	font-size: 10px;
	line-height: 14px;
	margin-bottom: 12px;
}

.sun-reviews__furniture-value {
	align-items: center;
	color: var(--sun-reviews-text-secondary);
	display: flex;
	font-size: 16px;
	font-weight: 500;
	gap: 8px;
	line-height: 21px;
}

.sun-reviews__furniture-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.sun-reviews__rating-row {
	align-items: center;
	display: flex;
	gap: 8px;
}

.sun-reviews__stars {
	display: inline-flex;
	gap: 4px;
}

.sun-reviews__star {
	display: inline-flex;
	width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.sun-reviews__rating-value {
	color: var(--sun-reviews-text-secondary);
	font-size: 20px;
	font-weight: 700;
	line-height: 27px;
}

#sun-reviews .sun-reviews__rating-note {
	color: var(--sun-reviews-muted);
	font-size: 10px;
	line-height: 14px;
	margin: 4px 0 0;
}

/* Quote */

#sun-reviews .sun-reviews__text {
	border-top: 1px solid var(--sun-reviews-border);
	margin: 0;
	padding-top: 16px;
}

.sun-reviews__quote {
	position: relative;
}

.sun-reviews__quote-content {
	max-height: 115px;
	overflow: hidden;
	overflow-y: auto;
	-ms-overflow-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--sun-reviews-icon-bg) transparent;
	transition: max-height 0.3s ease;
}

.sun-reviews__quote-content::-webkit-scrollbar {
	background-color: var(--sun-reviews-icon-bg);	
	border-radius: 10px;
	width: 4px;
}

#sun-reviews .sun-reviews__quote-content > p {
	color: var(--sun-reviews-text-secondary);
	font-size: 14px;
	line-height: 19px;
	margin: 0;
	padding: 0 24px;
}

.sun-reviews__quote-mark {
	position: absolute;
	width: 17.5px;
	height: 12.5px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.sun-reviews__quote-mark--open {
	left: 0;
	top: 0;
	background-image: url(../images/quote.svg);
	transform: rotate(180deg);
}

.sun-reviews__quote-mark--close {
	bottom: 0;
	right: 0;
	background-image: url(../images/quote.svg);
}

/* Handwritten */

.sun-reviews__handwritten {
	background: var(--sun-reviews-handwritten-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: var(--sun-reviews-radius-md);
	padding: 16px;
	position: relative;
}

#sun-reviews .sun-reviews__handwritten-media {
	display: grid;
	gap: 12px;
	margin: 0;
}

.sun-reviews__handwritten-image {
	display: block;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.sun-reviews__handwritten-image--loading {
	min-height: 30px;
}

.sun-reviews__handwritten-image.sun-reviews__chunk--hidden {
	display: none;
}

.sun-reviews__handwritten-heart {
	display: inline-flex;
	justify-content: flex-end;
	width: 100%;
	margin-top: 8px;
}

/* Metrics */

.sun-reviews__metrics {
	border-top: 1px solid var(--sun-reviews-border);
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-top: 32px;
	position: relative;
}

.sun-reviews__metrics > .card-slider-separator {
	background-color: var(--sun-reviews-border);
	height: auto;
	position: absolute;
	width: 1px;
}

.sun-reviews__metric {
	align-items: center;
	display: flex;
	gap: 16px;
}

.sun-reviews__metric--bordered {

}

.sun-reviews .sun-reviews__metric-icon {
	align-items: center;
	background: var(--sun-reviews-icon-bg);
	border-radius: 9999px;
	display: inline-flex;
	flex-shrink: 0;
	height: 48px;
	justify-content: center;
	width: 48px;
}

#sun-reviews .sun-reviews__metric-value {
	font-size: 20px;
	font-weight: 700;
	line-height: 27px;
	margin: 0;
}

/* Photos */

.sun-reviews__photos {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	flex: 1;
}

.sun-reviews__photo {
	margin: 0;
}

.sun-reviews__photo-frame {
	aspect-ratio: 390 / 292;
	background: var(--sun-reviews-photo-bg);
	border-radius: var(--sun-reviews-radius-md);
	overflow: hidden;
}

.sun-reviews__photo-frame img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sun-reviews__photo figcaption {
	color: var(--sun-reviews-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 19px;
	margin-top: 12px;
	text-align: center;
}

/* Navigation */

.sun-reviews__nav {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	position: relative;
}

.sun-reviews__nav-btn {
	align-items: center;
	background: var(--sun-reviews-card-bg);
	border: 1px solid var(--sun-reviews-accent);
	border-radius: var(--sun-reviews-radius-md);
	color: var(--sun-reviews-accent);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	gap: 12px;
	justify-content: center;
	line-height: 21px;
	min-height: 50px;
	padding: 13px 33px;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sun-reviews__nav-btn .sun-reviews__nav-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sun-reviews__nav-btn--prev .sun-reviews__nav-icon {
	transform: rotate(180deg);
}

.sun-reviews__nav-btn:hover:not(:disabled) {
	border-color: var(--sun-reviews-accent);
}

.sun-reviews__nav-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.sun-reviews__nav-status {
	margin: 0;
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sun-reviews__chunk--hidden {
	display: none !important;
}

.sun-reviews__avatar-img--hidden {
	display: none;
}

.sun-reviews__avatar-fallback--hidden {
	display: none;
}

/* Staggered reveal (variant C) — per-block JS classes */

.sun-reviews [data-reviews-stagger] {
	opacity: 1;
	transform: translateY(0);
}

.sun-reviews [data-reviews-stagger].sun-reviews__stagger-hide {
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 0.24s ease,
		transform 0.24s ease;
}

.sun-reviews [data-reviews-stagger].sun-reviews__stagger-show {
	animation: sun-reviews-stagger-reveal 0.32s ease forwards;
}

@keyframes sun-reviews-stagger-reveal {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sun-reviews[data-reviews-section] {
	outline: none;
}

.sun-reviews[data-reviews-section]:focus-visible {
	box-shadow: 0 0 0 2px var(--sun-reviews-accent);
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.sun-reviews [data-reviews-stagger].sun-reviews__stagger-hide,
	.sun-reviews [data-reviews-stagger].sun-reviews__stagger-show {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.sun-reviews__skeleton-block {
		animation: none !important;
	}

	.sun-reviews__card-stage--transitioning {
		transition: none !important;
	}
}

/* Skeleton animation mode */

.sun-reviews__card--skeleton-active .sun-reviews__card-inner {
	opacity: 0;
}

.sun-reviews__skeleton {
	display: none;
	gap: 24px;
	grid-template-columns: minmax(280px, 411px) minmax(0, 1fr);
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.sun-reviews__skeleton--visible {
	display: grid;
}

.sun-reviews__skeleton-sidebar,
.sun-reviews__skeleton-display {
	background: var(--sun-reviews-card-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: var(--sun-reviews-radius-lg);
	box-shadow: var(--sun-reviews-shadow);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}

.sun-reviews__skeleton-display {
	gap: 24px;
}

.sun-reviews__skeleton-author {
	align-items: center;
	display: flex;
	gap: 16px;
}

.sun-reviews__skeleton-lines {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
}

.sun-reviews__skeleton-metrics {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr);
}

.sun-reviews__skeleton-photos {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, 1fr);
}

.sun-reviews__skeleton-block {
	animation: sun-reviews-skeleton-shimmer 1.15s ease-in-out infinite;
	background: linear-gradient(90deg, #efe4d8 0%, #faf6f2 45%, #efe4d8 100%);
	background-size: 220% 100%;
	border-radius: 8px;
	display: block;
}

.sun-reviews__skeleton-block--circle {
	border-radius: 9999px;
	flex-shrink: 0;
	height: 56px;
	width: 56px;
}

.sun-reviews__skeleton-block--line {
	height: 14px;
	width: 100%;
}

.sun-reviews__skeleton-block--short {
	width: 70%;
}

.sun-reviews__skeleton-block--tiny {
	height: 12px;
	width: 45%;
}

.sun-reviews__skeleton-block--medium {
	width: 85%;
}

.sun-reviews__skeleton-block--tall {
	height: 72px;
}

.sun-reviews__skeleton-block--box {
	height: 120px;
}

.sun-reviews__skeleton-block--metric {
	height: 64px;
}

.sun-reviews__skeleton-block--photo {
	aspect-ratio: 4 / 3;
	width: 100%;
}

@keyframes sun-reviews-skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

#sun-reviews .sun-reviews__nav-btn--write {
	background: var(--sun-reviews-accent);
	border-color: var(--sun-reviews-accent);
	box-shadow: var(--sun-reviews-shadow-accent);
	color: #fff;
	font-weight: 700;
	min-height: 56px;
	padding: 16px 48px;
}

.sun-reviews__nav-btn--write:hover {
	background: #c96f73;
	border-color: #c96f73;
}

.sun-reviews__nav-icon {
	display: inline-flex;
	flex-shrink: 0;
}

/* Responsive */

@media (max-width: 1024px) {
	.sun-reviews__card-inner,
	.sun-reviews__skeleton {
		grid-template-columns: 1fr;
	}

	.sun-reviews__sidebar,
	.sun-reviews__display {
		min-height: 0;
	}

	.sun-reviews__metrics {
		grid-template-columns: 1fr;
	}

	.sun-reviews__metric--bordered {

	}
}

@media (max-width: 768px) {
	.sun-reviews__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.sun-reviews__title {
		font-size: 24px;
		line-height: 30px;
	}

	.sun-reviews__photos {
		
	}

	.sun-reviews__nav {
		flex-wrap: wrap;
	}

	.sun-reviews__nav-btn {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.sun-reviews__container {
		padding: 0;
	}

	.sun-reviews__photo-frame {
		aspect-ratio: auto;
		height: 160px;
	}

	.sun-reviews__display {
		padding: 16px;
		gap: 16px;
	}

	.sun-reviews__sidebar {
		padding: 16px;
	}

	.sun-reviews__author {
		margin-bottom: 8px;
	}

	.sun-reviews__author-name {
		font-size: 16px;
		line-height: 1.3;
	}

	.sun-reviews__avatar {
		width: 42px;
		height: 42px;
	}

	.sun-reviews__avatar svg {
		width: 24px;
		height: 24px;
	}

	.page__info.full_txt .info__content p {
		font-size: 12px;
		margin-top: 0;
	}

	#sun-reviews .sun-reviews__label {
		font-size: 12px;
		margin: 0 0 4px;
	}

	.sun-reviews__star {
		width: 16px;
		height: 16px;
	}

	.sun-reviews__rating-value {
		font-size: 16px;
		line-height: 1.3;
	}

	#sun-reviews .sun-reviews__text {
		padding-top: 8px;
	}

	.sun-reviews__sidebar-body {
		gap: 8px;
	}

	.sun-reviews__card-inner {
		gap: 8px;
	}

	.sun-reviews__metrics {
		gap: 16px;
		padding-top: 16px;
	}

	.sun-reviews .sun-reviews__metric-icon {
		width: 42px;
		height: 42px;
	}

	#sun-reviews .sun-reviews__metric-value {
		font-size: 16px;
		line-height: 1.3;
	}

	#sun-reviews .sun-reviews__nav-btn--write {
		order: 1;
	}

	.sun-reviews__nav-btn--prev, .sun-reviews__nav-btn--next {
		width: 45%;
		flex-grow: 1;
		padding: 13px 10px;
	}
}

@media (max-width: 400px) {
	.sun-reviews__photo-frame {
		height: 125px;
	}
}

/* Review form modal */

body.sun-reviews-modal-open {
	overflow: hidden;
}

.sun-reviews-modal {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.sun-reviews-modal__overlay {
	background: rgba(26, 26, 26, 0.48);
	inset: 0;
	position: absolute;
}

.sun-reviews-modal__dialog {
	background: var(--sun-reviews-card-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: var(--sun-reviews-radius-lg);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
	display: flex;
	flex-direction: column;
	left: 50%;
	max-height: min(90vh, 860px);
	max-width: 720px;
	overflow: hidden;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
}

.sun-reviews-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--sun-reviews-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 40px;
	z-index: 2;
}

.sun-reviews-modal__close:hover {
	color: var(--sun-reviews-text);
}

.sun-reviews-modal[hidden],
.sun-reviews-modal__content[hidden],
.sun-reviews-form [hidden] {
	display: none !important;
}

.sun-reviews-modal__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overflow-anchor: none;
	overscroll-behavior: contain;
	padding: 32px 28px 28px;
}

.sun-reviews-modal__header {
	margin-bottom: 24px;
	padding-right: 32px;
}

.sun-reviews-modal__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 8px;
}

.sun-reviews-modal__subtitle {
	color: var(--sun-reviews-muted);
	font-size: 15px;
	line-height: 1.45;
	margin: 0;
}

.sun-reviews-form__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sun-reviews-form__field--full {
	grid-column: 1 / -1;
}

.sun-reviews-form__field--required .sun-reviews-form__label::after {
	color: var(--sun-reviews-accent);
	content: ' *';
}

.sun-reviews-form__label {
	color: var(--sun-reviews-text-secondary);
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
}

.sun-reviews-form__input,
.sun-reviews-form__textarea {
	background: #fff;
	border: 1px solid var(--sun-reviews-border);
	border-radius: 10px;
	color: var(--sun-reviews-text);
	font: inherit;
	padding: 12px 14px;
	width: 100%;
}

.sun-reviews-form__input:focus,
.sun-reviews-form__textarea:focus {
	border-color: var(--sun-reviews-accent);
	box-shadow: 0 0 0 2px rgba(214, 125, 129, 0.18);
	outline: none;
}

.sun-reviews-form__photos {
	display: grid;
	gap: 16px;
	grid-column: 1 / -1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sun-reviews-form__field--photo {
	min-width: 0;
}

.sun-reviews-form__dropzone {
	background: linear-gradient(180deg, #fff 0%, #fdf9f6 100%);
	border: 1.5px dashed var(--sun-reviews-border);
	border-radius: 14px;
	min-height: 188px;
	padding: 18px 16px 14px;
	position: relative;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.sun-reviews-form__dropzone.is-dragover {
	background: var(--sun-reviews-icon-bg);
	border-color: var(--sun-reviews-accent);
	box-shadow: 0 0 0 3px rgba(214, 125, 129, 0.14);
}

.sun-reviews-form__dropzone.is-filled {
	background: #fff;
	border-style: solid;
	min-height: 0;
	padding: 12px;
}

.sun-reviews-form__dropzone.is-error {
	border-color: #e07a7a;
}

.sun-reviews-form__file-input {
	height: 1px;
	left: -9999px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.sun-reviews-form__dropzone-badge {
	background: var(--sun-reviews-icon-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: 9999px;
	color: var(--sun-reviews-accent);
	font-size: 12px;
	font-weight: 700;
	left: 12px;
	line-height: 1;
	padding: 6px 10px;
	position: absolute;
	top: 12px;
}

.sun-reviews-form__dropzone-empty {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 148px;
	padding-top: 18px;
	text-align: center;
}

.sun-reviews-form__dropzone-icon {
	align-items: center;
	background: var(--sun-reviews-icon-bg);
	border-radius: 9999px;
	color: var(--sun-reviews-accent);
	display: inline-flex;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.sun-reviews-form__dropzone-title {
	color: var(--sun-reviews-text-secondary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	margin: 0;
}

.sun-reviews-form__dropzone-btn {
	background: #fff;
	border: 1px solid var(--sun-reviews-border);
	border-radius: 9999px;
	color: var(--sun-reviews-accent);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sun-reviews-form__dropzone-btn:hover {
	background: var(--sun-reviews-icon-bg);
	border-color: var(--sun-reviews-accent);
}

.sun-reviews-form__dropzone-hint {
	color: var(--sun-reviews-muted);
	font-size: 12px;
	line-height: 1.35;
	margin: 0;
}

.sun-reviews-form__dropzone-preview {
	display: grid;
	gap: 12px;
}

.sun-reviews-form__dropzone-thumb {
	aspect-ratio: 4 / 3;
	background: var(--sun-reviews-photo-bg);
	border-radius: 10px;
	overflow: hidden;
}

.sun-reviews-form__dropzone-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sun-reviews-form__dropzone-meta {
	display: grid;
	gap: 8px;
}

.sun-reviews-form__dropzone-name {
	color: var(--sun-reviews-text-secondary);
	font-size: 13px;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sun-reviews-form__dropzone-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sun-reviews-form__dropzone-link {
	background: transparent;
	border: 0;
	color: var(--sun-reviews-accent);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sun-reviews-form__dropzone-link--remove {
	color: #b42318;
}

.sun-reviews-form__dropzone-error {
	color: #b42318;
	font-size: 12px;
	line-height: 1.35;
	margin: 8px 0 0;
}

.sun-reviews-form__textarea {
	min-height: 112px;
	resize: vertical;
}

.sun-reviews-form__rating {
	display: flex;
	gap: 8px;
}

.sun-reviews-form__field--rating .sun-reviews-form__rating {
	gap: 10px;
}

.sun-reviews-form__field--rating .sun-reviews-form__rating-option span {
	height: 44px;
	width: 44px;
}

.sun-reviews-form__rating-option {
	cursor: pointer;
	display: inline-flex;
	position: relative;
}

.sun-reviews-form__rating-option input {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
	left: 0;
	top: 0;
}

.sun-reviews-form__rating-option input:focus {
	outline: none;
}

.sun-reviews-form__rating-option span {
	align-items: center;
	background: var(--sun-reviews-icon-bg);
	border: 1px solid var(--sun-reviews-border);
	border-radius: 9999px;
	color: var(--sun-reviews-muted);
	display: inline-flex;
	font-size: 18px;
	height: 40px;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	width: 40px;
}

.sun-reviews-form__rating-option:hover span,
.sun-reviews-form__rating-option input:checked + span,
.sun-reviews-form__rating-option input:focus-visible + span {
	background: var(--sun-reviews-accent);
	border-color: var(--sun-reviews-accent);
	color: #fff;
}

.sun-reviews-form__note {
	color: var(--sun-reviews-muted);
	font-size: 13px;
	margin: 16px 0 0;
}

.sun-reviews-form__error {
	color: #b42318;
	font-size: 14px;
	margin: 12px 0 0;
}

.sun-reviews-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

.sun-reviews-form__btn {
	border-radius: var(--sun-reviews-radius-md);
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	min-height: 48px;
	padding: 12px 24px;
}

.sun-reviews-form__btn--ghost {
	background: #fff;
	border: 1px solid var(--sun-reviews-border);
	color: var(--sun-reviews-text-secondary);
}

.sun-reviews-form__btn--primary {
	background: var(--sun-reviews-accent);
	border: 1px solid var(--sun-reviews-accent);
	box-shadow: var(--sun-reviews-shadow-accent);
	color: #fff;
}

.sun-reviews-form__btn:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.sun-reviews-form__honeypot {
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.sun-reviews-modal__content--success:not([hidden]) {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 260px;
	text-align: center;
}

.sun-reviews-modal__success {
	margin: 0 auto;
	max-width: 460px;
}

.sun-reviews-modal__success .sun-reviews-form__btn {
	margin-top: 20px;
}

@media (max-width: 640px) {
	.sun-reviews-form__grid {
		grid-template-columns: 1fr;
	}

	.sun-reviews-form__photos {
		grid-template-columns: 1fr;
	}

	.sun-reviews-modal__content {
		padding: 28px 20px 20px;
	}
}
