.crp-reviews-widget {
	--crp-black: #000;
	--crp-orange: #ffa249;
	--crp-gray: #8c8c8c;
	--crp-bg: #fff;
	max-width: 100%;
	color: var(--crp-black);
	font-size: 1rem;
	line-height: 1.5;
}

.crp-reviews-title {
	margin: 0 0 1.5rem;
	font-size: 2rem !important;
	font-weight: 700;
	line-height: 1.2;
	color: var(--crp-black);
}

.crp-reviews-empty {
	margin: 0 0 2.5rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--crp-black);
}

section:has(.crp-reviews-slider) {
	overflow: hidden;
}

.crp-reviews-slider {
	position: relative;
	padding: 2.5rem;
	overflow: unset;
}

.crp-reviews-slider .swiper-wrapper {
	align-items: stretch;
}

.crp-review-card {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 100%;
	padding: 1.5rem;
	background: var(--crp-bg);
	box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.crp-review-card__name {
	margin: 0 0 0.25rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--crp-black);
}

.crp-review-card__date {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--crp-gray);
}

.crp-stars {
	display: inline-flex;
	gap: 0.125rem;
	margin: 0 0 1rem;
	line-height: 1;
}

.crp-star {
	color: #e0e0e0;
	font-size: 1.125rem;
}

.crp-star--filled {
	color: var(--crp-orange);
}

.crp-review-card__text {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--crp-black);
}

.crp-slider-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent !important;
	color: var(--crp-black);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.crp-slider-nav span {
	display: block;
	line-height: 1;
	font-size: 4rem;
}

.crp-slider-nav:hover,
.crp-slider-nav:focus {
	opacity: 0.6;
}

.crp-slider-nav--prev {
	left: 0;
}

.crp-slider-nav--next {
	right: 0;
}

.crp-reviews-slider .swiper-button-prev::after,
.crp-reviews-slider .swiper-button-next::after {
	content: none;
}

.crp-reviews-slider .swiper-button-disabled {
	opacity: 0.25;
	cursor: default;
}

.crp-reviews-actions {
	display: flex;
	justify-content: center;
}

.crp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.5rem;
	border: 0.0625rem solid var(--crp-black);
	border-radius: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.crp-btn--outline {
	background: transparent;
	color: var(--crp-black);
}

.crp-btn--outline:hover,
.crp-btn--outline:focus {
	background: var(--crp-black);
	color: var(--crp-bg);
}

.crp-btn--text {
	border-color: transparent;
	background: transparent;
	color: var(--crp-gray);
}

.crp-btn--text:hover,
.crp-btn--text:focus {
	color: var(--crp-black);
}

.crp-review-form-wrap {
	margin-top: 1.5rem;
	padding: 1.5rem;
	border: 0.0625rem solid #e5e5e5;
	background: #fafafa;
}

.crp-form-field {
	margin-bottom: 1rem;
}

.crp-form-field label,
.crp-form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--crp-black);
}

.crp-form-field input[type="text"],
.crp-form-field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 0.0625rem solid #d9d9d9;
	border-radius: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--crp-black);
	background: var(--crp-bg);
	box-sizing: border-box;
}

.crp-form-field textarea {
	resize: vertical;
	min-height: 6.875rem;
}

.crp-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 0.25rem;
}

.crp-rating-star {
	cursor: pointer;
}

.crp-rating-star input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.crp-rating-star span {
	font-size: 1.75rem;
	color: #e0e0e0;
	transition: color 0.15s ease;
}

.crp-rating-star:hover span,
.crp-rating-star:hover ~ .crp-rating-star span,
.crp-rating-star input:checked ~ span,
.crp-rating-star input:checked ~ .crp-rating-star span {
	color: var(--crp-orange);
}

.crp-form-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.crp-form-message {
	margin-top: 0.75rem;
	font-size: 0.875rem;
}

.crp-form-message.is-success {
	color: #047857;
}

.crp-form-message.is-error {
	color: #b91c1c;
}

.crp-reviews-widget--empty .crp-reviews-actions {
	margin-top: 0;
	justify-content: flex-start;
}

.crp-debug-panel {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 0.0625rem solid #f59e0b;
	background: #fffbeb;
	color: #1f2937;
	font-size: 0.875rem;
	line-height: 1.5;
}

.crp-debug-panel h4 {
	margin: 1rem 0 0.5rem;
	font-size: 0.9375rem;
}

.crp-debug-panel h4:first-of-type {
	margin-top: 0.75rem;
}

.crp-debug-panel ul {
	margin: 0 0 0.5rem;
	padding-left: 1.25rem;
}

.crp-debug-panel code {
	font-size: 0.8125rem;
}

.crp-debug-table {
	width: 100%;
	margin-top: 0.5rem;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.crp-debug-table th,
.crp-debug-table td {
	padding: 0.5rem;
	border: 0.0625rem solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.crp-debug-table__match {
	background: #ecfdf5;
}

.crp-debug-table__nomatch {
	background: #fff;
}

@media (max-width: 40rem) {
	.crp-reviews-title {
		font-size: 1.75rem !important;
	}

	.crp-reviews-slider {
		padding: 0;
		margin-bottom: 2rem;
	}

	.crp-slider-nav {
		display: none;
	}
}
