* {
  	box-sizing: border-box;
}

.container-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin-right: 10px;
}

@media (max-width: 650px) {
	.container-review {
		width: 100%;
		margin-right: 0px;
		margin-bottom: 30px;
	}
}

.rating {
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  flex-direction: row-reverse;
  height: 150px;
  position: relative;
}

.rating-0 {
  filter: grayscale(100%);
}

.rating > input {
  display: none;
}

.rating > label {
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin-top: auto;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='%23e3e3e3' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 76%;
  transition: 0.3s;
}

.rating > input:checked ~ label,
.rating > input:checked ~ label ~ label {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='%23fcd93a' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
}

.rating > input:not(:checked) ~ label:hover,
.rating > input:not(:checked) ~ label:hover ~ label {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='%23d8b11e' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
}

.emoji-wrapper {
  width: 100%;
  text-align: center;
  height: 100px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.emoji-wrapper:before,
.emoji-wrapper:after {
  content: "";
  height: 15px;
  width: 100%;
  position: absolute;
  left: 0;
  z-index: 1;
}

.emoji-wrapper:before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}

.emoji-wrapper:after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}

.emoji {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.emoji > svg {
  margin: 15px 0;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

#rating-1:checked ~ .emoji-wrapper > .emoji {
  transform: translateY(-100px);
}
#rating-2:checked ~ .emoji-wrapper > .emoji {
  transform: translateY(-200px);
}
#rating-3:checked ~ .emoji-wrapper > .emoji {
  transform: translateY(-300px);
}
#rating-4:checked ~ .emoji-wrapper > .emoji {
  transform: translateY(-400px);
}
#rating-5:checked ~ .emoji-wrapper > .emoji {
  transform: translateY(-500px);
}

.bpwp-cf-header {
	text-align: center;
	white-space: nowrap;
	margin-bottom: 20px;
}

.bpwp-cf-description {
	font-size: 14px;
	line-height: 24px;
}

.floating-label-wrapper {
	position: relative;
	width: 100%;
}

.floating-label-wrapper input {
	width: 100%;
	padding: 16px 8px 8px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: transparent;
	outline: none;
    font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}


.floating-label-wrapper label {
	position: absolute;
	top: 12px;
	left: 8px;
	color: #999;
	font-size: 16px;
    font-weight: 400;
	pointer-events: none;
	transition: 0.2s ease all;
	background-color: white;
	padding: 0 3px;
}

.floating-label-wrapper input:focus + label,
.floating-label-wrapper input:not(:placeholder-shown) + label {
	top: -8px;
	left: 6px;
	font-size: 12px;
	color: #333;
}

.floating-label-wrapper textarea {
	width: 100%;
	padding: 16px 8px 8px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: transparent;
	outline: none;
	resize: none;
	min-height: 120px;
    font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.floating-label-wrapper textarea:focus + label,
.floating-label-wrapper textarea:not(:placeholder-shown) + label {
	top: -8px;
	left: 6px;
	font-size: 12px;
	color: #333;
}

.file-drop {
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 40px 20px;
	border: 2px dashed #ccc;
	border-radius: 12px;
	background-color: #fafafa;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	margin: 20px auto;
}

.file-drop:hover {
	border-color: #888;
	background-color: #f0f0f0;
}

.file-drop input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.file-drop-content {
	position: relative;
	z-index: 1;
}

.file-icon {
	font-size: 40px;
	margin-bottom: 10px;
	color: #555;
}

.file-drop p {
	font-size: 16px;
	color: #333;
	margin: 0;
	line-height: 1.5;
}


.feedback {
  max-width: 360px;
  background-color: #fff;
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

.error-message {
    display: flex !important;
    visibility: hidden;
}


.error-message:not(:empty) {
    visibility: visible;
}


.submit-button-review {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
}


.icon-send {
	display: flex;
	align-items: center;
	margin-right: 10px;
}

.text-submit {
	display: flex;
	align-items: center;
}


.review-makler-desc {
	text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
}

.review-box {
    display: flex;
    align-items: center;
    flex-direction: column;
	width: 50%;
	margin-left: 10px;
}

@media (max-width: 650px) {
	.review-box {
		width: 100%;
		margin-left: 0px;
		margin-bottom: 30px;
	}
}

.name-box, .email-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 650px) {
	.name-box {
		margin-bottom: 10px;
	}
}

.phone-box, .theme-box{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}


.message-box {
	width: 100%;
}


.confirm-box {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
}

.confirm-box-head {
    display: flex;
    gap: 15px;
    align-items: center;
}

.confirm-checkbox-desc {
    font-size: 14px;
}


.bpwp-toggler-wrapper {
	display: block;
	width: 45px;
	height: 25px;
	cursor: pointer;
	position: relative;
}

.bpwp-toggler-wrapper input[type="checkbox"] {
	display: none;
}

.bpwp-toggler-wrapper input[type="checkbox"]:checked+.bpwp-toggler-slider {
	background-color: #116334;
}

.bpwp-toggler-wrapper .bpwp-toggler-slider {
	background-color: #ccc;
	position: absolute;
	border-radius: 100px;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
}


.bpwp-toggler-wrapper .bpwp-toggler-knob {
	position: absolute;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
}


.bpwp-toggler-wrapper.style-1 input[type="checkbox"]:checked+.bpwp-toggler-slider .bpwp-toggler-knob {
	left: calc(100% - 19px - 3px);
}

.bpwp-toggler-wrapper.style-1 .bpwp-toggler-knob {
	width: calc(25px - 6px);
	height: calc(25px - 6px);
	border-radius: 50%;
	left: 3px;
	top: 3px;
	background-color: #fff;
}

.bpwp_tel_field_checkbox_header {
    display: inline-block;
    margin-bottom: 10px;
}

.review-stars-desc, .review-desc, .phone-desc, .name-desc, .message-desc {
	font-size: 16px;
    font-weight: 500;
	margin-bottom: 5px;
	text-align: center;
}

.theme-desc {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    margin-left: 3px;
}

.review-congratulations-title {
	font-size: 18px;
    font-weight: bold;
	text-align: center;
	margin-top: 10px;
}

.review-stars-desc-details, .review-desc-details, .phone-desc-details, .name-desc-details, .email-desc-details {
	margin-top: 7px;
	margin-bottom: 7px;
	width: 100%;
	font-size: 12px;
	background: #f9f9f9;
	padding: 10px;
	border-radius: 10px;
    line-height: 22px;
}

#rating-error, #review-textarea-error, #phone-text-error, #name-text-error, #theme-error, #message-error, #email-text-error {
	margin-top: 3px;
	margin-bottom: 20px;
	font-size: 12px;
	display: flex;
	align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-left: 5px;
    text-align: left;
    line-height: 18px;
}

#theme_selector_wrapper {
    width: 100%;
}

.nice-select {
    width: 100% !important;
}

.nice-select.open .list {
    width: 100% !important;
}

#confirm-checkbox-error {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    line-height: 18px;
}

#common-error {
	max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
	display: none;
	font-size: 14px;
    line-height: 22px;
}


.bpwp-loader{
	position:absolute;
	top:0; left:0;
	width:100%; height:100%;
	background:rgba(0,0,0,.55);
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	border:none;
	animation:none;
	border-radius:20px;
	z-index:999;
}

@keyframes bpwp-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.bpwp-spinner{
	width:24px;
	height:24px;
	border:3px solid #ccc;
	border-top-color:#333;
	border-radius:50%;
	animation:bpwp-spin 1s linear infinite;
}

.bpwp-loader-text{
	margin-top:12px;
	color:#fff;
	font-size:18px;
	text-align:center;
}

.review-congratulations-desc {
	margin-top: 10px;
}

.header-form {
	display: flex;
	align-items: flex-start;
    flex-direction: column;
	max-width: 1000px;
	margin: 10px auto;
	justify-content: center;
	padding-top: 20px;
}

@media (max-width: 650px) {
	.header-form {
		flex-direction: column;
		margin-bottom: 0px;
	}
}


#name-text, #phone-text {
	width: 100%;
}

#message {
	width: 100%;
}

.pararu-review-cards-head {
	display: flex;
    flex-wrap: wrap;
}

.pararu-review-cards-item {
	width: calc(33.33% - 20px);
    margin: 10px;
    box-sizing: border-box;
	background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
	-webkit-box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
}

@media screen and (max-width: 1200px) {
    .pararu-review-cards-item {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 767px) {
    .pararu-review-cards-item {
        width: calc(100% - 20px);
    }
}

.pararu-review-cards-item-name-and-stars {
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.pararu-review-cards-item-review {
	margin-top: 10px;
}

.pararu-review-count-results {
	display: flex;
    align-items: center;
    justify-content: space-between;
	margin: 10px;
	width: 100%;
    box-sizing: border-box;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
	-webkit-box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 2px 2px 0px 0px rgba(34, 60, 80, 0.2);
}


.pararu-review-count-results-result-block {
	display: flex;
    align-items: center;
}


.pararu-review-count-results-result-block-score-and-reviews {
	margin-left: 10px;
	text-align: center;
}

.headsitebuttontwo-rev {
	border: 1px solid #9d0000;
	border-radius: 3px;
	text-decoration: none;
	background: #9D0000;
	padding: 3px;
	width: 170px;
	text-align: center;
	color: #ffffff !important;
	display: inline-block;
	font-weight: 400;
	font-size: 15px;
	margin-bottom: 10px;
	transition: 0.2s linear all;
}

.headsitebuttontwo-rev:hover {
	background: #ffffff;
	color: #9D0000 !important;
}

.headsitebuttontwo-rev:focus {
	outline: none;
}

.headsitebuttontwoalt {
	border: 1px solid #9d0000;
	border-radius: 3px;
	text-decoration: none;
	background: #ffffff;
	padding: 3px;
	width: 170px;
	text-align: center;
	color: #9d0000 !important;
	display: inline-block;
	font-weight: 400;
	font-size: 15px;
	transition: 0.2s linear all;
}

.headsitebuttontwoalt:hover {
	background: #ffffff;
	color: #9D0000 !important;
}

.headsitebuttontwoalt:focus {
	outline: none;
}

@media screen and (max-width: 420px) {
	.headsitebuttontwo-rev, .headsitebuttontwoalt {
		width: 130px;
		font-size: 12px;
	}
}


.pararu-review-count-results-button-block {
	display: flex;
    flex-direction: column;
}


.confirm-box-desc-block {
    font-size: 10px;
}

/* Основные стили для формы плагина */
.bpwp-block-form-wrapper {
	position: relative;
}

/* Стили для прелоадера */
#bpwp-form-preloader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	text-align: center;
	padding-top: 20%;
	border-radius: 30px;
}

.bpwp-fixed{
	display:flex;
	flex-direction:row;
	flex-wrap:nowrap;
	justify-content:center;
	align-items:center;
}

.bpwp-file-progress{
	width:100%;max-width:400px;margin:10px auto 0;
	background:#eee;border-radius:2px;overflow:hidden
}
.bpwp-file-progress .bar{width:0;height:4px;background:#573613}
.bpwp-thumb{display:block;margin:0 auto 10px;border-radius:4px}

#bpwp-success-message-container-head {
	text-align: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    -webkit-box-shadow: 4px 4px 1px 0 rgba(240 240 240 / 50%);
    -moz-box-shadow: 4px 4px 1px 0 rgba(240 240 240 / 50%);
    box-shadow: 4px 4px 1px 0 rgba(240 240 240 / 50%);
}

#bpwp-success-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.file-drop-content-desc {
	margin-top: 10px;
	font-size: 12px;
}

.bpwp-steps {
    width: 100%;
}

.bpwp-step {
    display: block;
}

#bpwp-step-2 {
    display: none;
}

.bpwp-step-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.bpwp-step-actions.two {
    justify-content: space-between;
}

.btn-gray {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}

.btn-gray:hover {
    background: #dbe0e6;
}

/* Chat UI */
.bpwp-cf-thread {
    display: grid;
    gap: 10px;
    margin: 25px 0;
}

.bpwp-cf-msg {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 95%;
}

.bpwp-cf-msg.own {
    background: #fafffa;
    border-color: #c4ddc1;
    width: 95%;
    margin-left: auto;
}

.bpwp-cf-msg-head {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.bpwp-cf-msg-name {
    font-weight: 600;
}

.bpwp-cf-msg-text p {
    margin: 0 0 8px 0;
    line-height: 26px;
}

.bpwp-cf-read-flag {
    font-size: 11px;
    color: #15815d;
    margin-top: 6px;
}

.bpwp-cf-empty {
    color: #000000;
}

.bpwp-cf-orig {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    margin: 10px 0 16px;
}

.bpwp-cf-orig-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.bpwp-cf-thread-head {
    display: flex;
    gap: 25px;
    font-size: 16px;
    margin: 15px 0;
    padding: 10px 12px;
    line-height: 26px;
    border-bottom: 1px dashed #d5d5d5;
}

.bpwp-cf-chat-input textarea {
    width: 100%;
    font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-size: 16px;
    line-height: 26px;
    padding: 10px;
}

.bpwp-cf-error{
    margin-top: 8px;
    color: #000000;
    font-weight: 400;
    font-size: 14px;
}

.bpwp-cf-appeal-close-message {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    margin: 10px 0 16px;
}

.bpwp-cf-info {
    margin-top: 10px;
}

.bpwp-cf-appeal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    flex-direction: row;
}


.bpwp-cf-inline-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.8;
}

/* ===== Общая модалка (клиент + админ) ===== */
.bpwp-cf-modal-open {
    overflow: hidden; /* запретить прокрутку под окном */
}

.bpwp-cf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 99998;
}

.bpwp-cf-modal {
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 520px;
    width: calc(100% - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 20px;
}

.bpwp-cf-modal-title {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.bpwp-cf-modal-text {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 15px;
    color: #444;
    text-align: center;
}

.bpwp-cf-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}


#bpwp-cf-client-send.is-loading,
#bpwp-cf-client-send[disabled] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.9;
}

#bpwp-cf-client-send .bpwp-cf-btn-spinner-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
}

#bpwp-cf-client-send .bpwp-cf-btn-spinner {
    width: 18px;
    height: 18px;
    display: inline-block;
    opacity: 0.9;
}

#bpwp-cf-client-send .bpwp-cf-btn-label {
    vertical-align: middle;
}

@media (max-width: 400px) {
    .bpwp-toggler-wrapper {
        width: 55px;
    }
}