/* Сторінка відгуків SunTime */

.page-slug-vidguky .page_title,
.page-slug-vidguky .sc_layouts_title,
.page-slug-vidguky .entry-header,
.suntime-reviews-page .page_title,
.suntime-reviews-page .sc_layouts_title,
.suntime-reviews-page .entry-header {
	display: none;
}

body.suntime-reviews-page .page_content_wrap,
.page-slug-vidguky .page_content_wrap {
	padding-top: 100px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.suntime-reviews-page .page_content_wrap > .content_wrap,
.page-slug-vidguky .page_content_wrap > .content_wrap {
	padding-left: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
	padding-right: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.suntime-reviews-page .content,
.page-slug-vidguky .content {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.suntime-reviews-page article,
.page-slug-vidguky article,
body.suntime-reviews-page .post_content,
.page-slug-vidguky .post_content,
body.suntime-reviews-page .entry-content,
.page-slug-vidguky .entry-content {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.suntime-reviews-page,
.page-slug-vidguky {
	overflow-x: clip;
}

.suntime-reviews {
	--str-heading: rgba(3, 16, 54, 1);
	--str-text: rgba(99, 105, 123, 0.92);
	--str-accent: #ef533f;
	--str-accent-soft: rgba(239, 83, 63, 0.12);
	--str-blue: #2090f0;
	--str-surface: #fff;
	--str-border: #ebe4dc;
	--str-radius: 18px;
	--str-shadow: 0 18px 50px rgba(3, 16, 54, 0.08);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 clamp(48px, 7vw, 88px);
	color: var(--str-text);
}

.suntime-reviews__hero {
	margin-bottom: clamp(24px, 4vw, 40px);
	max-width: 860px;
}

.suntime-reviews__title {
	margin: 0 0 12px;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: var(--theme-font-h1_font-weight, 600) !important;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--str-heading);
}

.suntime-reviews__lead {
	margin: 0;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.55;
}

.suntime-reviews__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(20px, 4vw, 40px);
	align-items: start;
	width: 100%;
	min-width: 0;
}

.suntime-reviews__list-wrap,
.suntime-reviews__form-wrap {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.suntime-reviews__list-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 20px;
}

.suntime-reviews__section-title,
.suntime-reviews__form-title {
	margin: 0;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600 !important;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--str-heading);
}

.suntime-reviews__count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--str-accent);
}

.suntime-reviews__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 18px;
}

.suntime-reviews__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--str-border);
	border-radius: var(--str-radius);
	background: rgba(255, 255, 255, 0.7);
	color: var(--str-text);
}

.suntime-reviews__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border: 1px solid var(--str-border);
	border-radius: var(--str-radius);
	background: var(--str-surface);
	box-shadow: var(--str-shadow);
}

.suntime-reviews__card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.suntime-reviews__card-author {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--str-heading);
}

.suntime-reviews__card-service {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-blue);
}

.suntime-reviews__stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.suntime-reviews__star {
	color: #d5dbe7;
	font-size: 18px;
}

.suntime-reviews__star.is-filled {
	color: #ffd000;
}

.suntime-reviews__card-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--str-text);
	flex: 1;
}

.suntime-reviews__card-media {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.suntime-reviews__media-btn {
	width: 72px;
	height: 72px;
	padding: 0;
	border: 1px solid var(--str-border);
	border-radius: 12px;
	background-color: #f4f7fb;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.suntime-reviews__media-btn--video {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: linear-gradient(145deg, #031036, #0a2a5c);
	color: #fff;
}

.suntime-reviews__media-play {
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid #fff;
	margin-left: 3px;
}

.suntime-reviews__media-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.suntime-reviews__card-foot {
	margin-top: auto;
	font-size: 13px;
	color: rgba(99, 105, 123, 0.8);
}

.suntime-reviews__form-wrap {
	position: sticky;
	top: calc(100px + 16px);
}

.suntime-reviews__form-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--str-border);
	border-radius: calc(var(--str-radius) + 2px);
	background: var(--str-surface);
	box-shadow: var(--str-shadow);
}

.suntime-reviews__form-lead {
	margin: 8px 0 20px;
	font-size: 14px;
	line-height: 1.5;
}

.suntime-reviews__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.suntime-reviews__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.suntime-reviews__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.suntime-reviews__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--str-heading);
}

.suntime-reviews__input,
.suntime-reviews__select,
.suntime-reviews__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--str-border);
	border-radius: 12px;
	background: #fff;
	color: var(--str-heading);
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.suntime-reviews__input:focus,
.suntime-reviews__select:focus,
.suntime-reviews__textarea:focus {
	outline: none;
	border-color: rgba(239, 83, 63, 0.55);
	box-shadow: 0 0 0 3px var(--str-accent-soft);
}

.suntime-reviews__textarea {
	min-height: 140px;
	resize: vertical;
}

.suntime-reviews__hint {
	margin: 0;
	font-size: 12px;
	color: rgba(99, 105, 123, 0.85);
}

.suntime-reviews__rating-input {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.suntime-reviews__stars-interactive {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

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

.suntime-reviews__star-pick {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	max-width: 44px;
	max-height: 44px;
	padding: 0 !important;
	margin: 0;
	border: 1px solid var(--str-border);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: #d5dbe7;
	box-sizing: border-box;
	transition: color 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.suntime-reviews__star-pick span {
	display: block;
	font-size: 16px;
	line-height: 1;
}

.suntime-reviews__star-pick:hover,
.suntime-reviews__star-pick:focus-visible {
	outline: none;
	color: #ffd000;
	border-color: rgba(239, 83, 63, 0.55);
	background: var(--str-accent-soft);
}

.suntime-reviews__star-pick.is-active {
	color: #ffd000;
	border-color: rgba(239, 83, 63, 0.55);
	background: rgba(255, 208, 0, 0.12);
}

.suntime-reviews__rating-hint {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-heading);
}

.suntime-reviews__file-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

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

.suntime-reviews__file-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--str-border);
	border-radius: 999px;
	background: #fff;
	color: var(--str-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.suntime-reviews__file-btn:hover,
.suntime-reviews__file-btn:focus-visible {
	border-color: var(--str-accent);
	color: var(--str-accent);
	background: var(--str-accent-soft);
	outline: none;
}

.suntime-reviews__file-status {
	font-size: 14px;
	color: var(--str-text);
}

.suntime-reviews__file-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.suntime-reviews__file-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #f4f7fb;
}

.suntime-reviews__notice {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.suntime-reviews__notice.is-success {
	background: rgba(32, 144, 240, 0.1);
	color: #0b4f8c;
}

.suntime-reviews__notice.is-error {
	background: rgba(239, 83, 63, 0.1);
	color: #9f2d1f;
}

.suntime-reviews__submit {
	width: 100%;
	max-width: 100%;
	justify-content: center;
}

/* Не успадковувати глобальні стилі submit-кнопок теми */
body:is(.suntime-reviews-page, .page-slug-vidguky)
	.suntime-reviews__form
	button.suntime-reviews__star-pick[type="button"] {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	border-width: 1px !important;
	box-shadow: none !important;
}

.suntime-reviews__submit[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.suntime-reviews__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.suntime-reviews__pager-btn {
	appearance: none;
	border: 1px solid var(--str-border);
	background: #fff;
	color: var(--str-heading);
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.suntime-reviews__pager-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.suntime-reviews__pager-btn:not(:disabled):hover {
	border-color: var(--str-accent);
	color: var(--str-accent);
}

.suntime-reviews__pager-status {
	font-size: 14px;
	font-weight: 600;
	color: var(--str-heading);
}

.suntime-reviews__lightbox {
	padding: 0;
	border: none;
	border-radius: 16px;
	max-width: min(92vw, 960px);
	width: 100%;
	background: #000;
	color: #fff;
}

.suntime-reviews__lightbox::backdrop {
	background: rgba(3, 16, 54, 0.72);
}

.suntime-reviews__lightbox-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.suntime-reviews__lightbox-body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	max-height: 85vh;
}

.suntime-reviews__lightbox-body img,
.suntime-reviews__lightbox-body video {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
}

@media (max-width: 1024px) {
	.suntime-reviews__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.suntime-reviews__form-wrap {
		position: static;
		order: -1;
	}
}

@media (max-width: 767px) {
	body.suntime-reviews-page .page_content_wrap,
	.page-slug-vidguky .page_content_wrap {
		padding-top: clamp(72px, 16vw, 96px) !important;
	}

	body.suntime-reviews-page .page_content_wrap > .content_wrap,
	.page-slug-vidguky .page_content_wrap > .content_wrap {
		padding-left: clamp(12px, 4vw, 24px) !important;
		padding-right: clamp(12px, 4vw, 24px) !important;
	}

	.suntime-reviews {
		padding-bottom: 40px;
	}

	.suntime-reviews__list-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.suntime-reviews__file-upload {
		flex-direction: column;
		align-items: stretch;
	}

	.suntime-reviews__file-btn {
		width: 100%;
	}

	.suntime-reviews__pager {
		flex-wrap: wrap;
		gap: 10px;
	}

	.suntime-reviews__pager-btn {
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.suntime-reviews__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.suntime-reviews__card {
		padding: 18px;
	}

	.suntime-reviews__form-card {
		padding: 18px;
	}
}
