/* ==========================================================================
   VIP Badge Final — Trustpilot-style review modal
   Scope: everything lives under #tpb-overlay so it never leaks into the theme.
   Accent: #00b74a (Trustpilot green)
   ========================================================================== */

:root {
	--tpb-green: #00b74a;
	--tpb-green-dark: #00823d;
	--tpb-star: #00b74a;
	--tpb-ink: #111;
	--tpb-muted: #6b6b7b;
	--tpb-line: #e8e8e8;
	--tpb-bg: #f7f7fa;
	--tpb-card: #fff;
	--tpb-footer: #000;
	--tpb-radius: 12px;
}

/* --------------------------------------------------------------------------
   Overlay + modal shell
   -------------------------------------------------------------------------- */
#tpb-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 17, 26, 0.6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	padding: 0;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

#tpb-close-row {
	width: 100%;
	max-width: 1000px;
	display: flex;
	justify-content: flex-end;
	padding: 14px 14px 10px;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* JS adds .active (or .open) to reveal the modal */
#tpb-overlay.active,
#tpb-overlay.open {
	display: flex;
	flex-direction: column;
}

#tpb-overlay * {
	box-sizing: border-box;
}

#tpb-modal {
	position: relative;
	width: 100%;
	max-width: 1000px;
	max-height: calc(100vh - 70px);
	background: var(--tpb-bg);
	border-radius: var(--tpb-radius);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tpb-ink);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	animation: tpb-pop 0.22s ease-out;
}

@keyframes tpb-pop {
	from { transform: translateY(12px) scale(0.985); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

/* Close button — sits above the modal in the overlay row */
#tpb-close {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(60, 60, 60, 0.85);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}
#tpb-close:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: scale(1.05);
}

/* Scrollable content region */
#tpb-content {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	max-height: 90vh;
}
#tpb-content::-webkit-scrollbar { width: 10px; }
#tpb-content::-webkit-scrollbar-thumb {
	background: #c7c7d1;
	border-radius: 8px;
	border: 2px solid var(--tpb-bg);
}
#tpb-content::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
#tpb-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	padding: 80px 24px;
	min-height: 320px;
}
#tpb-loader.hide,
.hide { display: none !important; }

#tpb-ring {
	width: 48px;
	height: 48px;
	border: 4px solid #d7f3e1;
	border-top-color: var(--tpb-green);
	border-radius: 50%;
	animation: tpb-spin 0.9s linear infinite;
	margin-bottom: 8px;
}
@keyframes tpb-spin { to { transform: rotate(360deg); } }

#tpb-loader-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--tpb-ink); }
#tpb-loader-sub   { font-size: 13px; color: var(--tpb-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Top nav
   -------------------------------------------------------------------------- */
.tp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 22px;
	background: #000;
	border-bottom: 1px solid #333;
}
.tp-nav-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--tpb-ink);
	font-weight: 800;
	font-size: 19px;
}
.tp-nav-logo svg { flex-shrink: 0; }
.tp-nav-links {
	display: flex;
	align-items: center;
	gap: 22px;
}
.tp-nav-links a {
	text-decoration: none;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}
.tp-nav-links a:hover { color: var(--tpb-green-dark); }
.tp-nav-links a.biz {
	border: 1px solid #d2d2dc;
	border-radius: 6px;
	padding: 7px 12px;
}
.tp-nav-links a.biz:hover { background: #f1f1f5; }

.tp-hamburger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.tp-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   "Write a review" bar
   -------------------------------------------------------------------------- */
.tp-write-review-wrap {
	display: block;
	padding: 16px 22px;
	background: #fff;
	border-bottom: 1px solid var(--tpb-line);
}
.tp-write-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #1a6dff;
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	padding: 15px 22px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.tp-write-btn:hover { background: #155ad6; box-shadow: 0 6px 18px rgba(26, 109, 255, 0.28); }
.tp-write-btn:focus-visible { outline: 2px solid #155ad6; outline-offset: 2px; }

/* Review submission form */
.vipbf-review-form {
	margin-top: 14px;
	padding: 18px;
	background: #f7f8fb;
	border: 1px solid var(--tpb-line);
	border-radius: 12px;
}
.vipbf-review-form[hidden] { display: none; }
.vipbf-frm-rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.vipbf-frm-label { font-size: 13px; font-weight: 700; color: #333; }
.vipbf-stars-input { display: inline-flex; gap: 4px; }
.vipbf-star-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: #d6d6de;
	cursor: pointer;
	transition: color 0.1s ease;
}
.vipbf-star-btn.is-on { color: #00b74a; }
.vipbf-frm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}
.vipbf-frm-field {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 14px;
	color: #222;
	background: #fff;
	border: 1px solid #d8d8e0;
	border-radius: 8px;
	padding: 11px 13px;
	margin-bottom: 10px;
}
.vipbf-frm-grid .vipbf-frm-field { margin-bottom: 0; }
.vipbf-frm-field:focus {
	outline: none;
	border-color: #1a6dff;
	box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.15);
}
textarea.vipbf-frm-field { resize: vertical; min-height: 90px; }
.vipbf-frm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vipbf-frm-submit {
	background: var(--tpb-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 26px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.vipbf-frm-submit:hover { background: var(--tpb-green-dark); }
.vipbf-frm-submit:disabled { opacity: 0.6; cursor: default; }
.vipbf-frm-msg { font-size: 13px; font-weight: 600; }
.vipbf-frm-msg.is-error { color: #d23f57; }
.vipbf-frm-msg.is-ok { color: var(--tpb-green-dark); }

/* polish: soften review cards */
.tp-review { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }

@media (max-width: 560px) {
	.vipbf-frm-grid { grid-template-columns: 1fr; gap: 0; }
}

/* --------------------------------------------------------------------------
   Main two-column layout
   -------------------------------------------------------------------------- */
.tp-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
	padding: 24px 22px 32px;
	background: var(--tpb-bg);
}
.tp-reviews-col { min-width: 0; }
.tp-sidebar     { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* --------------------------------------------------------------------------
   Rating summary (top of reviews column)
   -------------------------------------------------------------------------- */
/* Left-column rating summary hidden — reviews start at the top.
   The sidebar rating card (.tp-sidebar-card) is unaffected. */
.tp-reviews-col .tp-rating-summary {
	display: none;
}
.tp-rating-summary {
	background: var(--tpb-card);
	border: 1px solid var(--tpb-line);
	border-radius: var(--tpb-radius);
	padding: 18px 20px;
	margin-bottom: 18px;
}
.tp-rs-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 18px;
	margin-bottom: 4px;
}
.tp-rs-title strong { font-weight: 800; }
.tp-rs-total {
	font-size: 13px;
	color: var(--tpb-muted);
	margin-bottom: 14px;
}

/* Star bars (shared between summary + sidebar) */
.tp-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}
.tp-bar-label {
	flex: 0 0 52px;
	font-size: 12px;
	color: #4a4a55;
}
.tp-bar-track {
	flex: 1;
	height: 12px;
	background: #ececf1;
	border-radius: 3px;
	overflow: hidden;
}
.tp-bar-fill {
	height: 100%;
	background: var(--tpb-green);
	border-radius: 3px;
}
.tp-bar-pct {
	flex: 0 0 34px;
	text-align: right;
	font-size: 12px;
	color: #4a4a55;
}

/* --------------------------------------------------------------------------
   Review cards
   -------------------------------------------------------------------------- */
.tp-review {
	background: var(--tpb-card);
	border: 1px solid var(--tpb-line);
	border-radius: var(--tpb-radius);
	padding: 18px 20px;
	margin-bottom: 14px;
}
.tp-review-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.tp-av {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	background: #6b6b7b;
}
/* Avatar color palette c0–c6 */
.tp-av.c0 { background: #d23f57; }
.tp-av.c1 { background: #2f80ed; }
.tp-av.c2 { background: #9b51e0; }
.tp-av.c3 { background: #f2994a; }
.tp-av.c4 { background: #00b074; }
.tp-av.c5 { background: #2d9cdb; }
.tp-av.c6 { background: #eb5757; }

.tp-rname { font-size: 14px; font-weight: 700; color: var(--tpb-ink); }
.tp-rmeta { font-size: 12px; color: var(--tpb-muted); }

#tpb-overlay .tp-rimg,
.tp-rimg  { height: 20px !important; width: auto !important; max-width: 120px !important; display: block; }
.tp-rdate { font-size: 12px; color: var(--tpb-muted); }

.tp-rtitle { font-size: 15px; font-weight: 700; color: var(--tpb-ink); margin: 0 0 6px; }
.tp-rtext  { font-size: 14px; color: #3b3b46; margin: 0 0 12px; }

.tp-rverified {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--tpb-green-dark);
	margin-bottom: 12px;
}

.tp-raction {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid var(--tpb-line);
}
.tp-raction button:hover { color: var(--tpb-green-dark) !important; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.tp-pagination {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 22px 0 8px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tp-pagination::-webkit-scrollbar { display: none; }
.tp-pg {
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d8d8e0;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	color: #3b3b46;
	user-select: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.tp-pg:hover { background: #f1f1f5; }
.tp-pg.active {
	background: var(--tpb-green);
	border-color: var(--tpb-green);
	color: #fff;
	font-weight: 700;
}
.tp-pg.next-btn { font-weight: 600; }

/* --------------------------------------------------------------------------
   About card + transparency (appear in reviews column on this layout)
   -------------------------------------------------------------------------- */
.tp-about-card {
	background: var(--tpb-card);
	border: 1px solid var(--tpb-line);
	border-radius: var(--tpb-radius);
	padding: 18px 20px;
	margin-top: 18px;
}
.tp-about-title { font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.tp-about-sub   { font-size: 12px; color: var(--tpb-muted); margin: 0 0 14px; }
.tp-about-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #3b3b46;
	margin-bottom: 8px;
}
.tp-about-row a { color: var(--tpb-green-dark); text-decoration: none; word-break: break-word; }
.tp-about-row a:hover { text-decoration: underline; }

.tp-transparency {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: linear-gradient(135deg, #1a2e1f 0%, #15291a 60%, #0f1f13 100%);
	border: 1px solid #1f3a26;
	border-radius: var(--tpb-radius);
	padding: 18px 20px;
	margin-top: 16px;
	text-decoration: none;
	color: #fff;
	transition: box-shadow 0.15s ease;
}
.tp-transparency:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.tp-trans-heading { font-size: 12px; font-weight: 700; color: #4caf6e; margin: 0 0 4px; }
.tp-trans-title   { font-size: 18px; font-weight: 800; line-height: 1.1; margin: 0 0 4px; color: #fff; }
.tp-trans-note    { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 0; }
.tp-trans-grid {
	display: grid;
	grid-template-columns: repeat(2, 34px);
	grid-auto-rows: 34px;
	gap: 4px;
	flex-shrink: 0;
}
.tp-trans-grid > div {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--tpb-line);
}

/* --------------------------------------------------------------------------
   Sidebar cards
   -------------------------------------------------------------------------- */
.tp-sidebar-card {
	background: var(--tpb-card);
	border: 1px solid var(--tpb-line);
	border-radius: var(--tpb-radius);
	padding: 18px 20px;
}
.tp-sc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}
.tp-sc-head strong { font-size: 26px; font-weight: 800; }
.tp-sc-total {
	font-size: 12px;
	color: var(--tpb-muted);
	margin-bottom: 14px;
}
.tp-sc-title { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.tp-sc-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #3b3b46;
	margin-bottom: 10px;
}
.tp-sc-row span:first-child { width: 18px; text-align: center; flex-shrink: 0; }
.tp-sc-row a { color: var(--tpb-green-dark); text-decoration: none; word-break: break-word; }
.tp-sc-row a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer (dark)
   -------------------------------------------------------------------------- */
.tp-footer {
	background: var(--tpb-footer);
	color: rgba(255, 255, 255, 0.75);
	padding: 36px 28px 24px;
}
.tp-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	text-decoration: none;
	margin-bottom: 26px;
}
.tp-footer-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px;
	margin-bottom: 28px;
}
.tp-fcol-title {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
}
.tp-fcol ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tp-fcol ul li { margin-bottom: 10px; }
.tp-fcol a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 13px;
}
.tp-fcol a:hover { color: #fff; }

/* Choose country dropdown */
.tp-country-select {
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 12px 38px 12px 14px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23ffffff80'%3E%3Cpath d='M8 10.5 2.5 5h11L8 10.5Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tp-country-select:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.35);
}
.tp-country-select:focus {
	outline: none;
	border-color: var(--tpb-green);
}
.tp-country-select option {
	background: #1a1a1a;
	color: #fff;
}

.tp-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tp-legal a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 12px;
}
.tp-legal a:hover { color: #fff; text-decoration: underline; }

.tp-copy {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin: 18px 0 0;
}

/* --------------------------------------------------------------------------
   Responsive — collapse to a single column
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.tp-main {
		grid-template-columns: 1fr;
	}
	.tp-nav-links { display: none; }
	.tp-hamburger { display: flex; }
	.tp-footer-grid { grid-template-columns: repeat(2, 1fr); }
	/* On mobile use the sidebar's full About card (email, address + website);
	   hide the reviews-column About card and the duplicate sidebar transparency. */
	.tp-reviews-col .tp-about-card,
	.tp-sidebar .tp-transparency { display: none; }
}

@media (max-width: 560px) {
	#tpb-overlay { justify-content: flex-start; }
	#tpb-close-row { padding: 10px 10px 6px; }
	#tpb-modal {
		max-width: 100%;
		max-height: calc(100vh - 62px);
		border-radius: 0;
	}
	#tpb-content { max-height: calc(100vh - 62px); }
	.tp-main { padding: 16px 14px 24px; }
	.tp-nav { padding: 12px 16px; }
	.tp-write-review-wrap { padding: 12px 16px; }
	.tp-footer { padding: 28px 18px 22px; }
	.tp-footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.tp-transparency { flex-direction: row; align-items: center; }
	/* keep pagination on one tidy line with room to breathe */
	.tp-pagination { gap: 4px; }
	.tp-pg { min-width: 30px; height: 32px; padding: 0 8px; font-size: 12px; }
}

/* ==========================================================================
   Header rating strip (the in-header trigger) — slim, full-width, centered
   ========================================================================== */
.vipbf-header-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	padding: 9px 16px;
	margin: 0;
	background: #fff;
	border-bottom: 1px solid #ececec;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	transition: background 0.18s ease;
	-webkit-font-smoothing: antialiased;
}
.vipbf-header-strip:hover { background: #fafafa; }
.vipbf-header-strip:hover .vipbf-hb-count { text-decoration: underline; }
.vipbf-header-strip:focus-visible {
	outline: 2px solid var(--tpb-green, #00b74a);
	outline-offset: -2px;
}

.vipbf-hb-inner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	line-height: 1;
}

.vipbf-header-strip .vipbf-hb-logo {
	height: 30px !important;
	width: auto !important;
	max-width: 160px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}
.vipbf-hb-label {
	font-size: 15px;
	font-weight: 600;
	color: #333;
}
.vipbf-hb-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
}
.vipbf-hb-star {
	display: block;
	width: 19px;
	height: 19px;
}
.vipbf-hb-score {
	font-size: 16px;
	font-weight: 700;
	color: #333;
}
.vipbf-hb-divider {
	display: inline-block;
	width: 1px;
	height: 20px;
	background: #d9d9d9;
	flex-shrink: 0;
}
.vipbf-hb-count {
	font-size: 14px;
	color: #888;
}

/* <600px: compact single-line strip */
@media (max-width: 600px) {
	.vipbf-header-strip { min-height: 40px; padding: 16px 10px; }
	.vipbf-hb-inner { gap: 5px; }
	.vipbf-header-strip .vipbf-hb-logo { height: 16px !important; max-width: 80px; }
	.vipbf-hb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
	.vipbf-hb-star { width: 12px; height: 12px; }
	.vipbf-hb-stars { gap: 1px; }
	.vipbf-hb-score { font-size: 11px; }
	.vipbf-hb-divider { height: 13px; }
	.vipbf-hb-count { display: inline; font-size: 10px; }
}
