/*
 * Practice Reviews - front-end styles.
 * Everything inherits your theme's fonts and text colour. To restyle, change the
 * variables below (for example in Elementor > Site Settings > Custom CSS).
 */
.pr-form-wrap,
.pr-search,
.pr-practice,
.pr-account {
	--pr-accent: #1f6feb;
	--pr-accent-text: #ffffff;
	--pr-border: #d0d7de;
	--pr-bg-soft: #f6f8fa;
	--pr-muted: #57606a;
	--pr-star: #f2a900;
	--pr-star-off: #d0d7de;
	--pr-radius: 8px;
	--pr-success-bg: #e8f5e9;
	--pr-success-border: #2e7d32;
	--pr-error-bg: #fdecea;
	--pr-error-border: #c62828;
	--pr-info-bg: #eef4ff;
	--pr-info-border: #1f6feb;
	max-width: 760px;
}

/* ---------- Messages ---------- */
.pr-notice {
	padding: 12px 16px;
	margin: 0 0 18px;
	border-left: 4px solid var(--pr-info-border);
	background: var(--pr-info-bg);
	border-radius: 4px;
	color: inherit;
}
.pr-notice ul { margin: 0; padding-left: 18px; }
.pr-notice--success { background: var(--pr-success-bg); border-color: var(--pr-success-border); }
.pr-notice--error { background: var(--pr-error-bg); border-color: var(--pr-error-border); }
.pr-note { padding: 12px 16px; background: var(--pr-bg-soft); border-radius: 4px; }
.pr-muted { color: var(--pr-muted); font-size: 0.92em; }
.pr-help { display: block; color: var(--pr-muted); font-size: 0.88em; margin-top: 4px; }
.pr-req { color: var(--pr-error-border); }

/* ---------- Forms ---------- */
.pr-form .pr-field { margin: 0 0 16px; }
.pr-form label,
.pr-form legend { display: block; font-weight: 600; margin-bottom: 4px; }
.pr-form input[type="text"],
.pr-form input[type="email"],
.pr-form input[type="number"],
.pr-form input[type="month"],
.pr-form input[type="password"],
.pr-form select,
.pr-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
	font: inherit;
	background: #fff;
}
.pr-form input:focus,
.pr-form select:focus,
.pr-form textarea:focus {
	outline: 2px solid var(--pr-accent);
	outline-offset: 1px;
}
.pr-form input[readonly] { background: var(--pr-bg-soft); }
.pr-postcode { text-transform: uppercase; }
.pr-field--check label { font-weight: 400; }
.pr-field--check input { margin-right: 6px; }
.pr-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.pr-inline { display: inline-block; font-weight: 400; margin-right: 18px; }

/* Honeypot: hidden from people, visible to bots. */
.pr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Login form (WordPress core markup) */
.pr-login form p { margin: 0 0 16px; }
.pr-login input[type="text"],
.pr-login input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
	font: inherit;
}
.pr-login .login-submit input[type="submit"],
.pr-button {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--pr-accent);
	border-radius: var(--pr-radius);
	background: var(--pr-accent);
	color: var(--pr-accent-text);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}
.pr-button:hover,
.pr-login .login-submit input[type="submit"]:hover { filter: brightness(0.92); color: var(--pr-accent-text); }
.pr-button--small { padding: 6px 12px; font-size: 0.9em; }
.pr-button--ghost { background: transparent; color: var(--pr-accent); }
.pr-button--ghost:hover { color: var(--pr-accent); }
.pr-links { margin-top: 12px; }

/* ---------- Star picker (radio buttons) ---------- */
.pr-stars-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
.pr-stars-input input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.pr-stars-input label {
	font-size: 2rem;
	line-height: 1;
	padding: 0 3px;
	margin: 0;
	cursor: pointer;
	color: var(--pr-star-off);
	font-weight: 400;
}
.pr-stars-input input:checked ~ label,
.pr-stars-input label:hover,
.pr-stars-input label:hover ~ label { color: var(--pr-star); }
.pr-stars-input input:focus-visible + label { outline: 2px solid var(--pr-accent); border-radius: 4px; }
.pr-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Stars (display) ---------- */
.pr-stars { color: var(--pr-star); letter-spacing: 1px; white-space: nowrap; }
.pr-stars-off { color: var(--pr-star-off); }

/* ---------- Search results ---------- */
.pr-results { list-style: none; margin: 0 0 24px; padding: 0; }
.pr-result {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	margin-bottom: 10px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
}
.pr-result-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-result-name { font-weight: 700; font-size: 1.05em; }
.pr-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-add { margin: 24px 0; border: 1px solid var(--pr-border); border-radius: var(--pr-radius); padding: 12px 16px; }
.pr-add summary { cursor: pointer; font-weight: 600; }
.pr-add form { margin-top: 14px; }

/* ---------- Practice page ---------- */
.pr-practice-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.pr-address { font-style: normal; line-height: 1.5; }
.pr-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--pr-bg-soft);
	border: 1px solid var(--pr-border);
	font-size: 0.8em;
}
.pr-badge--pending { background: #fff8e1; border-color: #f2a900; }
.pr-badge--publish { background: var(--pr-success-bg); border-color: var(--pr-success-border); }
.pr-summary {
	padding: 16px 20px;
	margin-bottom: 24px;
	background: var(--pr-bg-soft);
	border-radius: var(--pr-radius);
}
.pr-big { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.pr-summary-rows { list-style: none; padding: 0; margin: 12px 0 8px; }
.pr-summary-rows li { display: flex; gap: 10px; align-items: center; }
.pr-summary-rows li > span:first-child { min-width: 150px; }

/* ---------- Reviews ---------- */
.pr-review {
	padding: 18px 0;
	border-top: 1px solid var(--pr-border);
}
.pr-review-title { margin: 0 0 4px; }
.pr-review-meta { color: var(--pr-muted); font-size: 0.9em; margin-bottom: 8px; }
.pr-review-ratings { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0 0 10px; font-size: 0.92em; }
.pr-review-ratings li span:first-child { color: var(--pr-muted); margin-right: 4px; }
.pr-review-body p { margin: 0 0 0.8em; }
.pr-recommend { font-weight: 600; margin: 0 0 6px; }
.pr-recommend--yes { color: var(--pr-success-border); }
.pr-recommend--no { color: var(--pr-error-border); }
.pr-report { margin-top: 8px; font-size: 0.9em; }
.pr-report summary { cursor: pointer; color: var(--pr-muted); }
.pr-report form { margin-top: 10px; }
.pr-pagination { margin: 20px 0; }
.pr-pagination .page-numbers { display: inline-block; padding: 4px 10px; margin-right: 4px; border: 1px solid var(--pr-border); border-radius: 4px; text-decoration: none; }
.pr-pagination .current { background: var(--pr-accent); color: var(--pr-accent-text); border-color: var(--pr-accent); }

/* ---------- Account ---------- */
.pr-my-list { list-style: none; padding: 0; }
.pr-my-list li { padding: 8px 0; border-bottom: 1px solid var(--pr-border); }

@media (max-width: 600px) {
	.pr-result { flex-direction: column; align-items: flex-start; }
	.pr-summary-rows li { flex-wrap: wrap; }
	.pr-summary-rows li > span:first-child { min-width: 0; width: 100%; }
}
