#judgeme_product_reviews {
	max-width: none !important;

	.jdgm-rev-widg__title {
		--text-color: 80 52 39;

		margin-block-end: var(--spacing-8);
		color: rgb(var(--text-color));
    font-style: var(--heading-font-style);
    font-weight: var(--heading-font-weight);
		font-size: var(--text-h2);
    line-height: 1.1;
		font-family: var(--heading-font-family);
    letter-spacing: var(--heading-letter-spacing);
    text-transform: var(--heading-text-transform);
    overflow-wrap: anywhere;
	}

	.jdgm-row-stars {
		@media (min-width: 992px) {
			display: flex;
			align-items: stretch;
			gap: 1.25rem;
		}

		> div {
			--background: 245 241 225;
  	  --text-color: 80 52 39;

			padding: 2rem 1rem;
			border: 0;
			border-radius: var(--rounded);
			background: rgb(var(--background));
			color: rgb(var(--text-color));

			@media (min-width: 440px) {
				padding: 2rem;
			}

			@media (min-width: 992px) {
				flex-grow: 1;
			}
		}

		> div.jdgm-rev-widg__summary {
			@media (min-width: 992px) {
				display: flex;
				flex-direction: column;
				justify-content: center;
			}

			.jdgm-rev-widg__summary-stars {
				text-wrap: pretty;
			}

			.jdgm-rev-widg__summary-text {
			 	justify-content: center;
				margin-block-start: 1rem;
			}
		}

		> div.jdgm-histogram {
			.jdgm-histogram__bar {
				background-color: #ffffff;

					@media (min-width: 992px) and (max-width: 1095px) {
						margin-inline: 0.25rem;
					}
			}
		}

		> div.jdgm-widget-actions-wrapper {
			@media (min-width: 992px) {
				display: flex;
				flex-direction: column;
				justify-content: center;
			}

			.jdgm-write-rev-link {
				--button-background: 142 69 69 / var(--button-background-opacity, 1);
    		--button-outline-color: 245 241 225;
				--button-text-color: 255, 255, 255;
				max-width: 18.75rem;

				padding: 0.8125rem 1.5rem;
				border-radius: var(--rounded-button);
				border-color: rgb(var(--button-outline-color));
    		background-color: rgb(var(--button-background));
    		color: rgb(var(--button-text-color));
    		text-align: center;
				transition: .2s ease-out;
				transition-property: color, background-color, border-color;

				&:hover,
				&:focus-visible {
					--button-outline-color: 142 69 69 / var(--button-background-opacity, 1);

					background-color: transparent;
					color: rgb(var(--button-background));
				}
			}
		}
	}

	.jdgm-row-actions {
		margin-block: 2rem;
	}

	.jdgm-rev-widg__body {
		.jdgm-rev-widg__reviews {
			display: flex;
			flex-direction: column;
			gap: 1.5rem;

			.jdgm-rev {
				--text-color: 210 97 57;

				padding: 2rem;
				border: 0;
				border-radius: var(--rounded);
				background: rgb(var(--text-color) / .05);
				color: rgb(var(--text-color));

				.jdgm-row-rating {
					margin-block-end: 1.25rem;
				}

				.jdgm-row-profile {
					display: flex;
					align-items: center;

					.jdgm-rev__icon {
						border-radius: var(--rounded);
					}
				}

				.jdgm-rev__content {
					.jdgm-rev__title {
						margin-block-end: 1rem;
						font-style: var(--heading-font-style);
						font-weight: var(--heading-font-weight);
						font-size: var(--text-h6);
						line-height: 1.3;
						font-family: var(--heading-font-family);
						letter-spacing: var(--heading-letter-spacing);
						text-transform: var(--heading-text-transform);
						overflow-wrap: anywhere;
					}

					.jdgm-rev__body {
						--text-color: 80 52 39;

						color: rgb(var(--text-color));
					}
				}

				.jdgm-rev__pics {
					.jdgm-rev__pic-img {
						border-radius: var(--rounded);
					}
				}

				.jdgm-yt-video {
					overflow: hidden;
					border-radius: var(--rounded);
				}
			}
		}

		.jdgm-paginate {
			margin-block-start: 2rem;
			border: 0;

			.jdgm-paginate__page {
				--text-color: 210 97 57;

				color: rgb(var(--text-color));
				font-style: var(--heading-font-style);
				font-weight: var(--heading-font-weight);
				font-size: var(--text-h6);
				line-height: 1.1;
				font-family: var(--heading-font-family);
				letter-spacing: var(--heading-letter-spacing);
				text-transform: var(--heading-text-transform);

				&.jdgm-curt {
					--text-color: 80 52 39;
				}
			}
		}
	}
}

.jdgm-review-widget-modal {
	.jdgm-write-review-modal__content {
		--background: 245 241 225;

		border-radius: var(--rounded) !important;
		background-color: rgb(var(--background)) !important;

		.jdgm-write-review-modal__title,
		.jdgm-write-review-modal__product-title {
			--text-color: 80 52 39;

			color: rgb(var(--text-color));
			font-style: var(--heading-font-style);
			font-weight: var(--heading-font-weight);
			font-size: var(--text-h4);
			line-height: 1.1;
			font-family: var(--heading-font-family);
			letter-spacing: var(--heading-letter-spacing);
			text-transform: var(--heading-text-transform);
			overflow-wrap: anywhere;
		}

		.jdgm-write-review-modal__field-input {
			border-radius: var(--rounded);
		}

		.jdgm-write-review-modal__nav-btn-next {
			padding: 0.8125rem 1.5rem;
			border-radius: var(--rounded-button);
			text-align: center;
		}
	}
}
