.za-review-summary,
.za-reviews-list,
.za-review-form-wrap {
	margin: 20px 0;
}

.za-reviews-list {
	display: grid;
	gap: 22px;
}

.za-review {
	position: relative;
	border: 1px solid #e6e8ec;
	border-radius: 18px;
	padding: 28px 28px 24px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.za-review::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 5px;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(90deg, #1987d7 0%, #55b3ff 100%);
	opacity: 0.9;
}

.za-review-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.za-review-rating-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.za-review h3 {
	margin: 8px 0 10px;
	font-size: 31px;
	line-height: 1.15;
	color: #1f2937;
	font-weight: 700;
}

.za-review-text {
	color: #344054;
	font-size: 17px;
	line-height: 1.7;
}

.za-review-text p {
	margin: 0 0 10px;
}

.za-review-text p:last-child {
	margin-bottom: 0;
}

.za-review-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.za-review-author {
	font-size: 18px;
	color: #475467;
	font-weight: 500;
}

.za-review-date {
	margin-top: 14px;
	font-size: 16px;
	color: #667085;
}

.za-review-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 15px;
	background: #eef6ff;
	color: #0f5ca8;
	border: 1px solid #d7eaff;
	font-weight: 600;
}

.za-review-score {
	font-weight: 800;
	font-size: 18px;
	color: #1f2937;
}

.za-stars {
	position: relative;
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 2px;
}

.za-stars-base {
	color: #d0d0d0;
}

.za-stars-fill {
	color: #f5b301;
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
}

.za-summary-badge-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.za-summary-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff8e3 0%, #fff3c2 100%);
	border: 1px solid #f0d56f;
	color: #7a5300;
	box-shadow: 0 8px 20px rgba(245, 179, 1, 0.12);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
}

.za-summary-badge-star {
	color: #f5b301;
	font-size: 24px;
	line-height: 1;
}

.za-summary-meta {
	color: #667085;
	font-size: 15px;
}

.za-review-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.za-review-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: #d0d5dd;
	text-indent: -9999px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.za-review-page-link.is-active {
	width: 30px;
	background: #1987d7;
}

.za-review-form-wrap {
	max-width: 520px;
}

.za-review-form-card {
	display: grid;
	gap: 16px;
	background: #1987d7;
	padding: 34px 34px 30px;
	box-sizing: border-box;
	border-radius: 10px;
}

.za-review-form-header h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.za-review-form-header p {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.za-review-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	color: #fff;
	font-size: 15px;
}

.za-review-form input[type="text"],
.za-review-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: 4px;
	box-sizing: border-box;
	background: #fff;
	color: #333;
	font-size: 15px;
}

.za-review-form input[type="text"]::placeholder,
.za-review-form textarea::placeholder {
	color: #8b8b8b;
}

.za-review-form textarea {
	min-height: 120px;
	resize: vertical;
}

.za-review-form button {
	display: inline-block;
	padding: 13px 24px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	background: #ffd400;
	color: #111;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}

.za-review-form button:hover {
	filter: brightness(0.97);
}

.za-rating-wrap {
	margin-top: -4px;
}

.za-rating-field {
	position: relative;
	display: inline-block;
	user-select: none;
	-webkit-user-select: none;
}

.za-rating-stars {
	position: relative;
	font-size: 40px;
	line-height: 1;
	letter-spacing: 3px;
	display: inline-block;
	cursor: pointer;
	outline: none;
}

.za-rating-stars-base {
	color: #dfe8ef;
}

.za-rating-stars-fill {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #ffc400;
	pointer-events: none;
	width: 100%;
}

.za-rating-value {
	margin-top: 8px;
	color: #fff;
	font-weight: 700;
	min-height: 20px;
}

.za-review-consent {
	margin-top: -2px;
}

.za-switch-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 400 !important;
	margin-bottom: 0 !important;
}

.za-switch-label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.za-switch-ui {
	position: relative;
	display: inline-block;
	flex: 0 0 24px;
	width: 24px;
	height: 14px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	transition: all 0.2s ease;
}

.za-switch-ui::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	transition: all 0.2s ease;
}

.za-switch-label input:checked + .za-switch-ui {
	background: #f5c518;
}

.za-switch-label input:checked + .za-switch-ui::after {
	transform: translateX(10px);
}

.za-review-notice {
	padding: 12px 14px;
	border-radius: 8px;
	margin: 0 0 20px;
}

.za-review-notice-success {
	background: #ecf9f0;
	color: #155724;
}

.za-review-notice-error {
	background: #fdecec;
	color: #7f1d1d;
}

@media (max-width: 600px) {
	.za-review-form-card {
		padding: 24px 20px;
	}

	.za-review-form-header h3 {
		font-size: 22px;
	}

	.za-rating-stars {
		font-size: 34px;
	}

	.za-review {
		padding: 24px 20px 20px;
	}

	.za-review h3 {
		font-size: 26px;
	}

	.za-review-text {
		font-size: 16px;
	}
}
