/* ================================================================
   DISPLAY RATING BAR  (unchanged)
   ================================================================ */
#google_schema_rating_container .star
{
	display: table-cell;
	max-width: 100%;
	font-weight: 700;
}
#google_schema_rating_container .star:before{
	content: '★';
}
#google_schema_rating_container #Rating
{
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
	align-items: center;
}
#google_schema_rating_container .star-1,.star-2,.star-3,.star-4,.star-5
{
	cursor: pointer;
}
#google_schema_rating_container #RatingBar
{
	margin: auto;
	position: relative;
}
#google_schema_rating_container #back
{
	position: absolute;
	left: 0;
}
#google_schema_rating_container #front
{
	position: relative;
	left: 0;
	overflow: hidden;
}

/* Yelp */
#google_schema_rating_container .YelpStar
{
	height: 32px;
	width: 176px;
	background-size: 176px 680px;
	display: inline-block;
	vertical-align: middle;
	overflow: hidden;
	background-position-x: 0px;
	background-position-y: 0px;
	background-repeat: no-repeat;
}
#google_schema_rating_container .YelpStar img
{
	clip: rect(0 0 0 0);
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}
#google_schema_rating_container #YelpRate
{
	background-repeat: no-repeat;
	background-size: 176px 680px;
	display: inline-block;
	vertical-align: middle;
	background-position: 0 0;
	height: 32px;
	width: 176px;
	list-style: none;
	padding: 0;
}
#google_schema_rating_container #YelpRate li
{
	float: left;
	height: 32px;
	width: 32px;
	margin: 0px;
	padding: 0px;
	border: 0px;
	font: inherit;
	vertical-align: baseline;
	margin-left: 3px;
}
#google_schema_rating_container .YelpDiv
{
	cursor: pointer;
	height: 32px;
	margin: 0;
	outline: 0;
	padding: 0;
	width: 32px;
}
#google_schema_rating_container .grecaptcha-badge
{
	display: none;
}

/* ================================================================
   MODAL OVERLAY  (new WPApps-style)
   ================================================================ */
#gsr-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.62);
	display: flex !important;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
#gsr-modal-overlay.gsr-active {
	opacity: 1;
	visibility: visible;
}

/* Modal card */
#gsr-modal-card {
	background: #fff;
	border-radius: 18px;
	padding: 34px 30px 28px;
	max-width: 460px;
	width: 90%;
	position: relative;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(-24px) scale(0.97);
	transition: transform 0.3s ease, opacity 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
	box-sizing: border-box;
}
#gsr-modal-overlay.gsr-active #gsr-modal-card {
	transform: translateY(0) scale(1);
}

/* Close button */
#gsr-modal-close {
	position: absolute;
	top: 14px; right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #aaa;
	width: 34px; height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s, transform 0.2s;
	line-height: 1;
	padding: 0;
}
#gsr-modal-close:hover {
	background: #f0f0f0;
	color: #444;
	transform: rotate(90deg);
}
#gsr-modal-close:focus {
	outline: 2px solid #00b67a;
	outline-offset: 2px;
}

/* ================================================================
   RATING WIDGET (inside modal)
   ================================================================ */
.gsr-widget {
	text-align: center;
}
.gsr-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
	line-height: 1.3;
}
.gsr-subtitle {
	font-size: 14px;
	color: #888;
	margin: 0 0 22px;
}

/* Stars */
.gsr-stars-container {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0 0 10px;
}
.gsr-star {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ddd;
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	user-select: none;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	border: none;
	box-sizing: border-box;
}
.gsr-star:hover,
.gsr-star:focus {
	transform: scale(1.1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	outline: none;
}
.gsr-star:focus-visible {
	outline: 2px solid #00b67a;
	outline-offset: 2px;
}

/* Trustpilot colour system */
.gsr-star.gsr-rating-1 { background: #ff1744 !important; }
.gsr-star.gsr-rating-2 { background: #ff6d00 !important; }
.gsr-star.gsr-rating-3 { background: #ffc400 !important; }
.gsr-star.gsr-rating-4 { background: #66bb6a !important; }
.gsr-star.gsr-rating-5 { background: #00b67a !important; }

/* Labels */
.gsr-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 500;
	color: #aaa;
	margin: 0 0 20px;
	padding: 0 2px;
}

/* Feedback textarea */
.gsr-feedback-section {
	margin-top: 2px;
}
.gsr-feedback-textarea {
	width: 100%;
	min-height: 82px;
	padding: 12px 14px;
	border: 2px solid #e6e6e6;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	color: #333;
	background: #fafafa;
}
.gsr-feedback-textarea:focus {
	outline: none;
	border-color: #00b67a;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 182, 122, 0.13);
}
.gsr-char-counter {
	text-align: right;
	font-size: 12px;
	color: #ccc;
	margin: 4px 0 12px;
}

/* Submit button */
.gsr-submit-btn {
	width: 100%;
	padding: 13px 24px;
	background: #00b67a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
}
.gsr-submit-btn:hover {
	background: #009963;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(0, 182, 122, 0.38);
}
.gsr-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}
.gsr-submit-btn:focus {
	outline: 2px solid #00b67a;
	outline-offset: 2px;
}

/* Loading spinner */
.gsr-spinner {
	display: inline-block;
	width: 16px; height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gsr-spin 0.65s linear infinite;
	flex-shrink: 0;
}
@keyframes gsr-spin {
	to { transform: rotate(360deg); }
}

/* ================================================================
   5-STAR CELEBRATION VIEW
   ================================================================ */
.gsr-celebration {
	text-align: center;
	padding: 16px 8px 8px;
}
.gsr-celebration-icon {
	font-size: 54px;
	margin-bottom: 14px;
	line-height: 1;
}
.gsr-celebration-title {
	color: #00b67a;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 10px;
}
.gsr-celebration-message {
	font-size: 15px;
	color: #666;
	margin: 0 0 26px;
}
.gsr-trustpilot-btn {
	display: inline-block;
	background: #00b67a;
	color: #fff !important;
	padding: 13px 32px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.gsr-trustpilot-btn:hover {
	background: #009963;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(0, 182, 122, 0.38);
	color: #fff !important;
	text-decoration: none !important;
}
.gsr-redirect-note {
	font-size: 12px;
	color: #bbb;
	margin-top: 14px;
}

/* ================================================================
   1-4 STAR THANKS VIEW
   ================================================================ */
.gsr-thanks {
	text-align: center;
	padding: 16px 8px 8px;
}
.gsr-thanks-icon {
	font-size: 54px;
	margin-bottom: 14px;
	line-height: 1;
}
.gsr-thanks-title {
	font-size: 22px;
	font-weight: 700;
	color: #3d8ef0;
	margin: 0 0 10px;
}
.gsr-thanks-message {
	font-size: 14px;
	color: #888;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 520px) {
	#gsr-modal-card {
		padding: 24px 16px 20px;
		border-radius: 12px;
	}
	.gsr-star {
		width: 42px;
		height: 42px;
		font-size: 22px;
	}
	.gsr-title  { font-size: 18px; }
	.gsr-labels { font-size: 10px; }
}
