/*
 * Filter My Review styles.
 * Brand neutral on purpose so any client logo sits comfortably on top.
 * No em-dashes anywhere, including comments.
 */

:root {
	--fmr-bg: #faf8f5;
	--fmr-card: #ffffff;
	--fmr-ink: #1f2933;
	--fmr-muted: #6b7280;
	--fmr-line: #e7e2da;
	--fmr-star-on: #f4b740;
	--fmr-star-off: #e2ddd3;
	--fmr-accent: #1f2933;
	--fmr-accent-ink: #ffffff;
	--fmr-good: #1f9d63;
	--fmr-radius: 16px;
	--fmr-shadow: 0 10px 40px rgba(31, 41, 51, 0.08);
	--fmr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Review page shell ---------- */

body.fmr-review-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 18px;
	background: var(--fmr-bg);
	font-family: var(--fmr-font);
	color: var(--fmr-ink);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

body.fmr-review-body * {
	box-sizing: border-box;
}

.fmr-card {
	width: 100%;
	max-width: 480px;
	background: var(--fmr-card);
	border: 1px solid var(--fmr-line);
	border-radius: var(--fmr-radius);
	box-shadow: var(--fmr-shadow);
	padding: 40px 32px 36px;
	text-align: center;
}

.fmr-logo {
	margin: 0 auto 22px;
	max-width: 180px;
}

.fmr-logo-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
	margin: 0 auto;
}

.fmr-logo-text {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.fmr-heading {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.fmr-subhead {
	margin: 0 auto 26px;
	max-width: 360px;
	color: var(--fmr-muted);
	font-size: 15.5px;
	line-height: 1.5;
}

/* ---------- Star row, the signature element ---------- */

.fmr-stars {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 4px 0 14px;
}

.fmr-star {
	border: 0;
	background: transparent;
	padding: 4px;
	cursor: pointer;
	line-height: 0;
	border-radius: 8px;
	transition: transform 0.12s ease;
}

.fmr-star svg {
	width: 46px;
	height: 46px;
	fill: var(--fmr-star-off);
	transition: fill 0.14s ease, transform 0.14s ease;
}

.fmr-star:hover {
	transform: translateY(-2px);
}

.fmr-star.is-on svg,
.fmr-star.is-preview svg {
	fill: var(--fmr-star-on);
}

.fmr-star.is-picked svg {
	animation: fmr-pop 0.32s ease;
}

@keyframes fmr-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

.fmr-star:focus-visible {
	outline: 3px solid var(--fmr-star-on);
	outline-offset: 2px;
}

.fmr-star-hint {
	margin: 6px 0 0;
	font-size: 13.5px;
	color: var(--fmr-muted);
	min-height: 18px;
}

/* ---------- Buttons ---------- */

.fmr-btn {
	display: inline-block;
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 15px 20px;
	font-family: var(--fmr-font);
	font-size: 16px;
	font-weight: 650;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.fmr-btn-primary {
	background: var(--fmr-accent);
	color: var(--fmr-accent-ink);
}

.fmr-btn-primary:hover {
	opacity: 0.92;
}

.fmr-btn-primary:active {
	transform: translateY(1px);
}

.fmr-btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------- Modal ---------- */

.fmr-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

@media (min-width: 600px) {
	.fmr-modal {
		align-items: center;
	}
}

.fmr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 31, 0.55);
	backdrop-filter: blur(2px);
	animation: fmr-fade 0.2s ease;
}

.fmr-modal-panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: var(--fmr-card);
	border-radius: 18px 18px 0 0;
	padding: 30px 26px 26px;
	box-shadow: var(--fmr-shadow);
	animation: fmr-slide-up 0.26s cubic-bezier(0.22, 1, 0.36, 1);
	font-family: var(--fmr-font);
	color: var(--fmr-ink);
	max-height: 92vh;
	overflow-y: auto;
}

@media (min-width: 600px) {
	.fmr-modal-panel {
		border-radius: 18px;
	}
}

.fmr-modal-x {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: var(--fmr-muted);
	cursor: pointer;
}

.fmr-modal-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 730;
	letter-spacing: -0.01em;
}

.fmr-modal-text {
	margin: 0 0 20px;
	color: var(--fmr-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* ---------- Forms ---------- */

.fmr-field {
	text-align: left;
	margin: 0 0 16px;
}

.fmr-field-row {
	display: flex;
	gap: 12px;
}

.fmr-field-row .fmr-field {
	flex: 1;
}

.fmr-field label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--fmr-ink);
}

.fmr-field input,
.fmr-field textarea,
.fmr-field select {
	width: 100%;
	border: 1px solid var(--fmr-line);
	border-radius: 10px;
	padding: 12px 13px;
	font-family: var(--fmr-font);
	font-size: 15px;
	color: var(--fmr-ink);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fmr-field input:focus,
.fmr-field textarea:focus,
.fmr-field select:focus {
	outline: 0;
	border-color: var(--fmr-ink);
	box-shadow: 0 0 0 3px rgba(31, 41, 51, 0.08);
}

.fmr-field textarea {
	resize: vertical;
}

.fmr-hint {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--fmr-muted);
}

/* Honeypot stays off screen but reachable for bots. */
.fmr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fmr-form-error {
	color: #c0392b;
	font-size: 13.5px;
	margin: 0 0 12px;
}

.fmr-modal-alt {
	margin: 16px 0 0;
	text-align: center;
}

.fmr-google-instead {
	font-size: 14.5px;
	color: var(--fmr-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fmr-google-instead:hover {
	color: var(--fmr-ink);
}

/* ---------- Thank you overlay ---------- */
.fmr-thanks {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fmr-bg);
	font-family: var(--fmr-font);
	padding: 24px;
}

.fmr-thanks-panel {
	text-align: center;
	max-width: 420px;
}

.fmr-thanks-check {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(31, 157, 99, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmr-thanks-check svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: var(--fmr-good);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fmr-thanks h2 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 730;
}

.fmr-thanks p {
	margin: 0;
	color: var(--fmr-muted);
	font-size: 15.5px;
	line-height: 1.5;
}

/* ---------- Signup form, used inside a host theme ---------- */

.fmr-signup-wrap {
	max-width: 520px;
	margin: 0 auto;
	font-family: var(--fmr-font);
	color: var(--fmr-ink);
}

.fmr-signup-form {
	background: var(--fmr-card);
	border: 1px solid var(--fmr-line);
	border-radius: var(--fmr-radius);
	box-shadow: var(--fmr-shadow);
	padding: 30px 26px;
}

.fmr-signup-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 730;
	letter-spacing: -0.01em;
}

.fmr-signup-sub {
	margin: 0 0 22px;
	color: var(--fmr-muted);
	font-size: 15px;
	line-height: 1.5;
}

.fmr-mode {
	border-top: 1px solid var(--fmr-line);
	padding-top: 16px;
}

.fmr-mode-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 10px;
}

.fmr-radio {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--fmr-muted);
	cursor: pointer;
}

.fmr-radio input {
	margin-top: 3px;
}

.fmr-radio strong {
	color: var(--fmr-ink);
}

.fmr-wg-fields {
	border: 1px solid var(--fmr-line);
	border-radius: 12px;
	padding: 16px 16px 4px;
	margin: 0 0 16px;
	background: #fbfaf7;
}

.fmr-wg-note {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fmr-muted);
}

.fmr-signup-result {
	margin-top: 18px;
	padding: 16px;
	border-radius: 12px;
	background: rgba(31, 157, 99, 0.08);
	border: 1px solid rgba(31, 157, 99, 0.25);
	font-size: 14.5px;
	line-height: 1.5;
	word-break: break-word;
}

.fmr-signup-result.is-error {
	background: rgba(192, 57, 43, 0.06);
	border-color: rgba(192, 57, 43, 0.25);
}

.fmr-result-url {
	display: block;
	margin-top: 8px;
	font-weight: 650;
	color: var(--fmr-ink);
	word-break: break-all;
}

.fmr-copy-btn {
	margin-top: 10px;
	display: inline-block;
	background: var(--fmr-accent);
	color: var(--fmr-accent-ink);
	border: 0;
	border-radius: 9px;
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.fmr-star,
	.fmr-star svg,
	.fmr-btn,
	.fmr-modal-panel,
	.fmr-modal-backdrop {
		animation: none !important;
		transition: none !important;
	}
}

@keyframes fmr-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fmr-slide-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* ---------- Client login (inside host theme) ---------- */

.fmr-dash-login {
	max-width: 420px;
	margin: 0 auto;
	font-family: var(--fmr-font);
	color: var(--fmr-ink);
}

.fmr-login-form {
	background: var(--fmr-card);
	border: 1px solid var(--fmr-line);
	border-radius: var(--fmr-radius);
	box-shadow: var(--fmr-shadow);
	padding: 30px 26px;
}

.fmr-login-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 730;
	letter-spacing: -0.01em;
}

.fmr-login-sub {
	margin: 0 0 20px;
	color: var(--fmr-muted);
	font-size: 15px;
}

.fmr-remember {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: var(--fmr-muted);
	margin: 0 0 16px;
	cursor: pointer;
}

.fmr-login-reset {
	margin: 14px 0 0;
	text-align: center;
	font-size: 13.5px;
}

.fmr-login-reset a {
	color: var(--fmr-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Client dashboard ---------- */

.fmr-dash {
	max-width: 760px;
	margin: 0 auto;
	font-family: var(--fmr-font);
	color: var(--fmr-ink);
}

.fmr-dash-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--fmr-line);
	font-size: 14px;
	color: var(--fmr-muted);
}

.fmr-dash-who strong {
	color: var(--fmr-ink);
}

.fmr-dash-logout {
	color: var(--fmr-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fmr-dash-logout:hover {
	color: var(--fmr-ink);
}

.fmr-dash-title {
	margin: 18px 0 16px;
	font-size: 26px;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.fmr-empty {
	color: var(--fmr-muted);
	font-size: 14.5px;
	margin: 6px 0 0;
}

.fmr-dash-card {
	background: var(--fmr-card);
	border: 1px solid var(--fmr-line);
	border-radius: 14px;
	box-shadow: var(--fmr-shadow);
	padding: 20px 22px;
	margin: 0 0 18px;
}

.fmr-dash-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.fmr-biz-name {
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fmr-badge {
	font-size: 11.5px;
	font-weight: 650;
	padding: 3px 9px;
	border-radius: 999px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.fmr-badge-live {
	background: rgba(31, 157, 99, 0.12);
	color: var(--fmr-good);
}

.fmr-badge-paused {
	background: rgba(192, 57, 43, 0.1);
	color: #c0392b;
}

.fmr-biz-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fmr-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--fmr-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fmr-paused-note {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: rgba(192, 57, 43, 0.06);
	border: 1px solid rgba(192, 57, 43, 0.2);
	border-radius: 10px;
	font-size: 13.5px;
	color: #8c2f24;
}

.fmr-fb-head {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--fmr-line);
}

.fmr-fb-count {
	font-size: 13px;
	font-weight: 650;
	color: var(--fmr-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fmr-feedback-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.fmr-fb-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--fmr-line);
}

.fmr-fb-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.fmr-fb-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.fmr-stars-mini {
	color: var(--fmr-star-on);
	font-size: 16px;
	letter-spacing: 1px;
}

.fmr-fb-date {
	font-size: 12.5px;
	color: var(--fmr-muted);
}

.fmr-fb-contact {
	font-size: 13.5px;
	color: var(--fmr-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 6px;
}

.fmr-fb-contact strong {
	color: var(--fmr-ink);
}

.fmr-fb-contact a {
	color: var(--fmr-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fmr-fb-msg {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--fmr-ink);
	white-space: pre-wrap;
}
