/* ООКЛ — Відгуки. Публічна частина. */

.ookl-fb,
.ookl-fb-list {
	isolation: isolate;
	box-sizing: border-box;
}

.ookl-fb *,
.ookl-fb-list * {
	box-sizing: inherit;
}

/* --- Форма --- */

.ookl-fb {
	max-width: 600px;
	margin: 20px auto;
	padding: 20px 30px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

.ookl-fb__lead {
	margin: 0 0 26px;
	font-size: 18px;
	line-height: 1.5;
	text-align: center;
	color: #202124;
}

.ookl-fb__field {
	margin-bottom: 18px;
	text-align: center;
}

.ookl-fb__field input[type="text"],
.ookl-fb__field input[type="tel"] {
	width: 100%;
	max-width: 420px;
	padding: 10px;
	font-size: 14px;
	text-align: center;
	border: 1px solid #dadce0;
	border-radius: 4px;
}

.ookl-fb__field textarea {
	width: 100%;
	min-height: 100px;
	padding: 10px;
	font-size: 14px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	resize: vertical;
}

.ookl-fb__hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #5f6368;
}

.ookl-fb__error {
	display: none;
	margin: 6px 0 0;
	font-size: 13px;
	color: #a50e0e;
}

.ookl-fb__error.is-visible {
	display: block;
}

/* Оцінка. У розмітці зірки йдуть від 5 до 1 — так працює підсвічування
   «наведена і всі попередні» звичайним сусіднім селектором. На екрані порядок
   розгортається зворотно, тому заповнення йде злива направо: перша зірка
   ліворуч — це 1, п'ята праворуч — 5. */

.ookl-fb__rating {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	gap: 4px;
	margin-bottom: 20px;
}

.ookl-fb__rating input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ookl-fb__rating label {
	font-size: 40px;
	line-height: 1;
	color: #ccc;
	cursor: pointer;
	transition: color .15s;
}

.ookl-fb__rating label:hover,
.ookl-fb__rating label:hover ~ label,
.ookl-fb__rating input:checked ~ label {
	color: #fdd835;
}

.ookl-fb__callback {
	margin-bottom: 20px;
	text-align: center;
	font-size: 16px;
}

.ookl-fb__callback span {
	display: block;
	margin-bottom: 6px;
}

.ookl-fb__callback label {
	margin: 0 8px;
	cursor: pointer;
}

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

.ookl-fb__submit {
	display: block;
	width: 100%;
	padding: 12px;
	font-size: 16px;
	color: #fff;
	background: #1a73e8;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.ookl-fb__submit:hover {
	background: #1669c1;
}

.ookl-fb__submit[disabled] {
	opacity: .6;
	cursor: default;
}

.ookl-fb__alert {
	display: none;
	margin: 12px 0 0;
	padding: 12px;
	font-size: 14px;
	color: #a50e0e;
	background: #fce8e6;
	border-radius: 6px;
}

.ookl-fb__alert.is-visible {
	display: block;
}

/* --- Подяка --- */

.ookl-fb__thanks {
	margin: 0 0 20px;
	padding: 15px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	color: #0d652d;
	background: #e6f4ea;
	border-radius: 6px;
}

.ookl-fb__appeal {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
	color: #202124;
}

.ookl-fb__copy {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.ookl-fb__copy textarea {
	flex: 1;
	height: 80px;
	padding: 10px;
	font-size: 14px;
	color: #202124;
	background: #f8f9fa;
	border: 1px solid #dadce0;
	border-radius: 4px;
	resize: none;
}

.ookl-fb__copy-btn {
	padding: 10px 16px;
	font-size: 14px;
	white-space: nowrap;
	background: #f1f3f4;
	border: 1px solid #dadce0;
	border-radius: 4px;
	cursor: pointer;
}

.ookl-fb__copy-btn.is-copied {
	color: #0d652d;
	background: #e6f4ea;
	border-color: #0d652d;
}

.ookl-fb__google {
	display: block;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #1a73e8;
	border-radius: 4px;
}

.ookl-fb__google:hover,
.ookl-fb__google:focus {
	color: #fff;
	background: #1669c1;
}

@media (max-width: 480px) {
	.ookl-fb {
		padding: 16px;
	}

	.ookl-fb__copy {
		flex-direction: column;
	}

	.ookl-fb__copy-btn {
		width: 100%;
	}
}

/* --- Список відгуків --- */

.ookl-fb-list {
	max-width: 700px;
	margin: 30px auto;
}

.ookl-fb-list__item {
	margin-bottom: 20px;
	padding: 20px 25px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.ookl-fb-list__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.ookl-fb-list__author {
	font-size: 16px;
	font-weight: 600;
	color: #202124;
}

.ookl-fb-list__stars {
	font-size: 22px;
	color: #fdd835;
	white-space: nowrap;
}

.ookl-fb-list__text {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.6;
	color: #202124;
	white-space: pre-line;
}

.ookl-fb-list__date {
	font-size: 13px;
	color: #5f6368;
}

.ookl-fb-list__empty {
	text-align: center;
	font-size: 15px;
	color: #5f6368;
}
