.fungi-reviews {
	display: flex;
	align-items: flex-start;
	gap: 100px;
	margin-top: 90px;
}

.fungi-reviews__sidebar {
    padding-top: 20px;
	width: 300px;
	flex: 0 0 300px;
}

.fungi-reviews__sidebar .reviews-summary {
	padding-right: 0;
	border-right: none;
	margin-top: 0;
}


.fungi-reviews__cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 30px;
}

.fungi-reviews__cta-btn {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: .2s;
}

.fungi-reviews__cta-btn--primary {
	background: #548048;
	border: 1px solid #548048;
	color: #fff;
}

.fungi-reviews__cta-btn--primary:hover {
	background: #466c3d;
	border-color: #466c3d;
}

.fungi-reviews__cta-btn--secondary {
	background: transparent;
	border: 1px solid #333;
	color: #333;
}

.fungi-reviews__cta-btn--secondary:hover {
	background: #f7f7f7;
}

.fungi-reviews__main {
	flex: 1;
	min-width: 0;
}

.fungi-reviews__main .product-block-title {
	margin-top: 0;
	margin-bottom: 25px;
    text-align: left;
}

/* стрелки сортировки/рейтинга - видны только на мобильном (см. ниже media max-width: 768px) */
.fungi-reviews__sort-toggle,
.average-rating__toggle {
	display: none;
	border: none;
	background: transparent;
	padding: 4px;
	cursor: pointer;
	flex: 0 0 auto;
}

.average-rating__toggle {
	width: 37px;
	height: 37px;
	align-items: center;
	justify-content: center;
	padding: 0;
}



.fungi-reviews__tabs {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	background: #D6D6D6;
	border-radius: 10px;
	padding: 2px 4px;
	margin-bottom: 20px;
	min-width: 202px;
	height: 39px;
}

.fungi-reviews__tab {
	box-sizing: border-box;
	flex: 1 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	border: none;
	background: transparent;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	transition: .2s;
}

.fungi-reviews__tab.is-active {
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}



.fungi-reviews__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid #E5E9E7;
}

.fungi-reviews__sort-label {
	font-size: 14px;
	color: #666;
}

.fungi-reviews__sort-link {
	border: none;
	background: transparent;
	padding: 0;
	font-size: 14px;
	color: #000000;
    font-weight: 600;
	cursor: pointer;
}

.fungi-reviews__sort-link.is-active {
	color: #548048;
	font-weight: 700;
}


.fungi-reviews__list {
	display: flex;
	flex-direction: column;
}

.fungi-review-card,
.fungi-question-card {
	background: transparent;
	padding: 0 0 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #E5E9E7;
}

.fungi-review-card:last-child,
.fungi-question-card:last-child {
	margin-bottom: 0;
	border-bottom: none;
}

.fungi-review-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.fungi-review-card__date,
.fungi-question-card__date {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
}

.fungi-review-card__author,
.fungi-question-card__author {
	font-weight: bold;
	font-size: 18px;
	margin: 0 0 12px;
}

.fungi-review-card__text,
.fungi-question-card__text {
	font-size: 14px;
	color: #333;
	line-height: 1.5;
	margin: 0 0 16px;
}

.fungi-review-card__footer,
.fungi-question-card__footer {
	display: flex;
	align-items: center;
	gap: 10px;
    justify-content: space-between;
}

.fungi-review-card__prompt {
	font-size: 14px;
	color: #666;
}

.fungi-question-card__date {
	display: block;
	margin-bottom: 6px;
}

.fungi-question-card__answer {
	background: #D6D6D6;
	border-radius: 8px;
	padding: 20px 24px;
	margin-top: 4px;
}

.fungi-question-card__answer-title {
	font-weight: bold;
	font-size: 16px;
	margin: 0 0 10px;
}

.fungi-question-card__answer-text {
	font-size: 14px;
	color: #333;
	line-height: 1.5;
	margin: 0 0 16px;
}

.fungi-reviews__empty {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.fungi-reviews__more {
    padding: 0;
    font-size: 16px;
    color: #718277;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fungi-reviews__more:disabled {
	opacity: .5;
	cursor: default;
}

.fungi-vote-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border-radius: 6px;
    border: none;
	background: #F2F2F2;
	color: #333;
	font-size: 13px;
	cursor: pointer;
	transition: .2s;
}

.fungi-vote-button__icon {
	display: block;
	width: 12px;
	height: 13px;
}

.fungi-vote-button:hover:not(:disabled) {
	border-color: #548048;
	color: #548048;
}

.fungi-vote-button.is-voted {
	background: #548048;
	border-color: #548048;
	color: #fff;
}

.fungi-vote-button:disabled {
	cursor: default;
}

#fungi-review-popup .mfp-close,
#fungi-question-popup .mfp-close,
.fungi-success-popup .mfp-close,
#fungi-reviews-auth-popup .mfp-close,
.fungi-bottom-sheet .mfp-close {
	display: none;
}

#fungi-review-popup.fungi-form-popup,
#fungi-question-popup.fungi-form-popup {
	width: 540px !important;
	max-width: 90vw !important;
	text-align: left;
}

.fungi-form-popup__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.fungi-form-popup__head h3 {
	font-size: 35px;
    font-family: 'SF Pro Text';
	margin: 0;
}

.fungi-popup-close {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #548048;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.fungi-form-popup__product {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.fungi-form-popup__thumb img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 8px;
	background: #F7F7F7;
}

.fungi-form-popup__product-title {
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 4px;
}

.fungi-form-popup__product-volume {
	font-size: 13px;
	color: #888;
	margin: 0;
}

.fungi-form__stars .rewiew-stars-rating-list {
	direction: rtl;
	display: flex;
	gap: 9px;
    justify-content: end;
}

.fungi-form__stars .rewiew-stars-rating-list .star {
	width: 28px;
	height: 28px;
}

.fungi-form__stars-hint {
	font-size: 13px;
	color: #888;
	margin: 6px 0 20px;
}

.fungi-form__row {
	margin-bottom: 16px;
}

.fungi-form__row label {
	font-size: 13px;
	color: #878787;
	display: block;
	margin-bottom: 6px;
}

.fungi-form__row input:disabled {
	background: #F7F7F7;
	color: #999;
	cursor: not-allowed;
}

label.fungi-form__anon {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
	cursor: pointer;
}


.fungi-form__anon input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fungi-form__toggle {
	position: relative;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 44px;
	height: 22px;
	border: 2px solid #548048;
	border-radius: 20px;
}

.fungi-form__toggle::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #548048;
	transition: transform .2s, background-color .2s;
}

.fungi-form__anon input[type="checkbox"]:checked + .fungi-form__toggle {
	background: #548048;
}

.fungi-form__anon input[type="checkbox"]:checked + .fungi-form__toggle::before {
	background: #fff;
	transform: translateX(22px);
}

.fungi-form__anon input[type="checkbox"]:disabled + .fungi-form__toggle {
	opacity: .6;
}

.fungi-form-popup .fungi-form__submit {
	width: 100% !important;
	height: 50px;
	background: #548048;
	border: none;
	color: #fff;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: .2s;
	margin-top: 16px;
}

.fungi-form-popup .fungi-form__submit:hover:not(:disabled) {
	background: #466c3d;
}

.fungi-form-popup .fungi-form__submit:disabled {
	background: #AAB3AE;
	cursor: not-allowed;
}

.rewiew-stars-rating-list.is-disabled {
	cursor: default;
	pointer-events: none;
}

.fungi-form__locked-box {
	background: #F2F2F2;
	border-radius: 10px;
	padding: 20px;
	min-height: 150px;
	margin-bottom: 16px;
	font-size: 15px;
	color: #333;
}

.fungi-form__locked-login {
	color: #548048;
	font-weight: 600;
	text-decoration: underline;
}

.fungi-form__locked-warning {
	color: #FF0D0D;
}

.fungi-form__photos {
	margin-bottom: 16px;
}

.fungi-form__photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fungi-form__photo-add,
.fungi-form__photo-item {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	flex: 0 0 auto;
}

.fungi-form__photo-add {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #333;
	border: none;
	cursor: pointer;
	overflow: hidden;
}

.fungi-form__photo-item {
	position: relative;
}

.fungi-form__photo-item img {
	border-radius: 8px;
}

.fungi-form__photo-item img,
.fungi-review-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fungi-form__photo-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	z-index: 1;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #548048;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.fungi-form__photo-hint {
	font-size: 13px;
	color: #888;
	margin: 8px 0 0;
}

.fungi-review-card__photos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 460px;
	margin: 0 0 16px;
}

.fungi-review-card__photo {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
}

.fungi-review-card__photo--hidden {
	display: none;
}

.fungi-review-card__photo-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: rgba(20, 20, 20, .65);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
}

.fungi-review-photos {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.fungi-review-photos__item {
	position: relative;
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 14px;
	overflow: hidden;
}

.fungi-review-photos__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fungi-review-photos__item--hidden {
	display: none;
}

.fungi-review-photos__count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 20, 20, .65);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.fungi-form-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff6f4;
	color: #b94a3a;
	font-size: 14px;
	line-height: 1.45;
}

.fungi-form .field-error {
	border: 1px solid #d9a29a !important;
	box-shadow: 0 0 0 3px rgba(185, 74, 58, .14) !important;
	background: #fffafa !important;
}

.fungi-form .rewiew-stars-rating-list.field-error {
	box-shadow: 0 0 0 2px rgba(185, 74, 58, .35);
	border-radius: 10px;
}

.fungi-form__honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.fungi-success-popup {
	width: 540px !important;
	max-width: 90vw !important;
	text-align: center;
	background: linear-gradient(160deg, #6b9a5f, #3f5f37) !important;
	color: #fff;
}

.fungi-success-popup__icon {
	margin: 0 auto 24px;
	display: block;
}

.fungi-success-popup p {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.fungi-success-popup span {
	display: block;
	font-size: 16px;
	color: #fff;
	margin-bottom: 12px;
}

.fungi-popup-close-link {
	border: none;
	background: transparent;
	color: #fff;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.fungi-auth-popup {
	width: 400px;
	max-width: 90vw;
	text-align: center;
}

.fungi-auth-popup .fungi-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
}

.fungi-auth-popup p {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 24px;
}

.fungi-auth-popup__login {
	display: inline-block;
	min-width: 160px;
	height: 46px;
	line-height: 46px;
	padding: 0 30px;
	background: #548048;
	border: none;
	color: #fff;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.fungi-auth-popup__login:hover {
	background: #466c3d;
	color: #fff;
}

/* мобильные поп-апы-шторки снизу: сортировка и «Общий рейтинг» */
.fungi-bottom-sheet {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border-radius: 20px 20px 0 0 !important;
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 28px 20px !important;
	background: #548048 !important;
	color: #fff;
	text-align: left;
}

.fungi-bottom-sheet__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.fungi-bottom-sheet__head h3 {
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	margin: 0;
    font-family: "SF Pro Text";
}

.fungi-bottom-sheet__close {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.fungi-bottom-sheet .rating-bar-scale {
	background-color: #F7F5CA;
}

.fungi-bottom-sheet .rating-bar-scale-fill {
	background-color: #FFAB2E;
}

.fungi-sort-popup__options {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 16px;
}

.fungi-sort-popup__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 16px;
	border: none;
	border-bottom: 1px solid #eee;
	background: transparent;
	color: #333;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

.fungi-sort-popup__option:last-child {
	border-bottom: none;
}

.fungi-sort-popup__check {
	flex: 0 0 auto;
	opacity: 0;
}

.fungi-sort-popup__option.is-active .fungi-sort-popup__check {
	opacity: 1;
}

.fungi-sort-popup__apply {
	display: block;
	width: 100%;
	height: 50px;
	border: none;
	border-radius: 30px;
	background: #fff;
	color: #2c4726;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

@media only screen and (max-width: 768px) {
	.fungi-reviews {
		flex-direction: column;
		gap: 0px;
	}


	.fungi-reviews__sidebar,
	.fungi-reviews__sidebar .reviews-summary,
	.fungi-reviews__main {
		display: contents;
	}

	.fungi-reviews .product-block-title {
		order: 1;
		width: auto;
		align-self: stretch;
		margin-left: 20px;
		margin-right: 20px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.fungi-reviews__sort-toggle {
		display: inline-flex;
	}

	.fungi-reviews .average-rating {
		order: 2;
		width: auto;
		align-self: stretch;
		margin-left: 20px;
		margin-right: 20px;
	}

	.average-rating__toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.fungi-reviews .fungi-reviews__tabs {
		order: 3;
		align-self: stretch;
		width: auto;
		margin-left: 20px;
		margin-right: 20px;
	}

	.fungi-reviews .fungi-reviews__panel {
		order: 4;
		width: 100%;
	}

	.fungi-reviews .fungi-reviews__cta {
		order: 5;
		width: 100%;
		flex-direction: column;
	}

	/* сортировка на мобильном теперь через поп-ап снизу, старую строку фильтров скрываем */
	.fungi-reviews__sort {
		display: none;
	}

	.fungi-review-card,
	.fungi-question-card {
		padding: 18px 20px 20px;
	}

	.fungi-review-photos {
		margin-left: 20px;
		margin-right: 20px;
	}

	.fungi-review-card__head {
		flex-wrap: wrap;
	}
}
