/* Zero7 Reviews: floating tab, reviews popup, review lightbox. Scoped to .z7r-* */
.z7r-root {
	--z7r-bg: #121212;
	--z7r-surface: #1b1b1b;
	--z7r-surface-2: #232323;
	--z7r-line: rgba(255, 255, 255, .09);
	--z7r-line-strong: rgba(255, 255, 255, .16);
	--z7r-text: #f4f4f2;
	--z7r-muted: rgba(244, 244, 242, .64);
	--z7r-star: #f2b33d;
	--z7r-star-off: rgba(255, 255, 255, .18);
	--z7r-verified: #3aa776;
	--z7r-ease: cubic-bezier(.16, 1, .3, 1);
	font-family: inherit;
	color: var(--z7r-text);
	-webkit-font-smoothing: antialiased;
}
.z7r-root *, .z7r-root *::before, .z7r-root *::after { box-sizing: border-box; }
.z7r-root button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; margin: 0; }
.z7r-root ::selection { background: #fff; color: #111; }

/* Theme button reset: Woodmart styles every button via :is(.btn,button,[type=button]) */
.z7r-root button {
	position: static; display: inline-block; width: auto; height: auto; min-height: 0; min-width: 0;
	margin: 0; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	justify-content: normal; align-items: normal; vertical-align: middle; line-height: inherit;
	font-size: inherit; font-weight: inherit; text-transform: none; color: inherit; opacity: 1; transition: none;
}

/* ---------- Floating tab ---------- */
.z7r-root .z7r-tab {
	position: fixed; top: 50%; right: 0; z-index: 99980;
	display: flex; align-items: center; gap: 8px;
	writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
	padding: 16px 10px; min-height: 0; height: auto; line-height: 1;
	background: #fff; color: #141414 !important; border: 0; border-radius: 0 8px 8px 0;
	font-size: 13px; font-weight: 600; letter-spacing: .04em;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
	cursor: pointer; transition: padding .3s var(--z7r-ease), background-color .2s;
}
/* rotated 180deg: the element's right padding is the visual left edge */
.z7r-root .z7r-tab:hover { padding-right: 14px; background: #f1f1ef; color: #141414; border: 0; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.z7r-root .z7r-tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.z7r-root .z7r-tab svg { width: 14px; height: 14px; fill: var(--z7r-star); transform: rotate(180deg); flex: none; }
.z7r-root .z7r-tab .z7r-tab-avg { font-variant-numeric: tabular-nums; opacity: .7; }
.z7r-root.z7r-left .z7r-tab { right: auto; left: 0; border-radius: 8px 0 0 8px; }
.z7r-root.z7r-left .z7r-tab:hover { padding-right: 10px; padding-left: 14px; }

/* ---------- Dialog shell ---------- */
.z7r-lock, .z7r-lock body { overflow: hidden !important; }
.z7r-modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 4vh 20px; }
.z7r-modal[hidden], .z7r-lb[hidden] { display: none; }
.z7r-backdrop, .z7r-lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); }
.z7r-backdrop { animation: z7r-fade .3s ease-out both; }

.z7r-panel {
	position: relative; width: min(1080px, 100%); height: min(860px, 92vh);
	display: flex; flex-direction: column;
	background: var(--z7r-bg); border: 1px solid var(--z7r-line-strong); border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	overflow: hidden; animation: z7r-rise .42s var(--z7r-ease) both;
}
@keyframes z7r-fade { from { opacity: 0; } }
@keyframes z7r-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.z7r-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 22px 18px 26px; border-bottom: 1px solid var(--z7r-line);
}
.z7r-head h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--z7r-text); letter-spacing: -.005em; text-transform: none; }
.z7r-sum { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13px; color: var(--z7r-muted); }
.z7r-sum strong { color: var(--z7r-text); font-weight: 600; font-variant-numeric: tabular-nums; }

.z7r-root .z7r-x {
	flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	background: transparent; border: 1px solid var(--z7r-line-strong); border-radius: 50%; cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.z7r-root .z7r-x:hover { background: var(--z7r-surface-2); border-color: rgba(255, 255, 255, .3); color: var(--z7r-text); box-shadow: none; }
.z7r-root .z7r-x:focus-visible, .z7r-root .z7r-card:focus-visible, .z7r-shop:focus-visible, .z7r-root .z7r-more-btn:focus-visible, .z7r-root .z7r-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.z7r-root .z7r-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.z7r-body {
	flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 28px;
	scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.z7r-body::-webkit-scrollbar { width: 8px; }
.z7r-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 8px; }

/* ---------- Masonry ---------- */
.z7r-grid { display: flex; gap: 14px; align-items: flex-start; }
.z7r-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.z7r-root .z7r-card {
	display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
	background: var(--z7r-surface); border: 1px solid var(--z7r-line); border-radius: 10px; overflow: hidden;
	transition: border-color .2s, transform .35s var(--z7r-ease), box-shadow .35s var(--z7r-ease);
}
.z7r-root .z7r-card:hover { background: var(--z7r-surface); color: var(--z7r-text); border-color: var(--z7r-line-strong); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.z7r-root .z7r-card > span { display: block; }
.z7r-media { position: relative; background: #0c0c0c; }
.z7r-media img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.z7r-count {
	position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 20px;
	background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.z7r-cbody { padding: 12px 13px 13px; }
.z7r-cbody > span { display: block; }

.z7r-who { display: flex !important; align-items: center; gap: 6px; min-width: 0; }
.z7r-name { font-size: 13.5px; font-weight: 600; color: var(--z7r-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z7r-ver { display: inline-grid; flex: none; width: 15px; height: 15px; color: var(--z7r-verified); }
.z7r-ver svg { width: 100%; height: 100%; }

.z7r-meta { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.z7r-stars { display: inline-flex; gap: 1px; line-height: 0; }
.z7r-stars svg { width: 13px; height: 13px; fill: var(--z7r-star-off); }
.z7r-stars svg.on { fill: var(--z7r-star); }
.z7r-date { font-size: 11.5px; color: var(--z7r-muted); font-variant-numeric: tabular-nums; }

.z7r-text {
	margin-top: 9px; font-size: 13px; line-height: 1.55; color: rgba(244, 244, 242, .84);
	display: -webkit-box !important; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
	overflow-wrap: anywhere;
}
.z7r-chip {
	display: flex !important; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 9px 5px 5px;
	background: var(--z7r-surface-2); border-radius: 6px; font-size: 12px; color: var(--z7r-muted);
}
.z7r-chip img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; flex: none; }
.z7r-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.z7r-foot { display: flex; justify-content: center; padding-top: 22px; min-height: 40px; }
.z7r-status { font-size: 13px; color: var(--z7r-muted); text-align: center; }
.z7r-root .z7r-more-btn, .z7r-root .z7r-retry {
	padding: 11px 22px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
	background: transparent; border: 1px solid var(--z7r-line-strong); color: var(--z7r-text);
	transition: background-color .2s;
}
.z7r-root .z7r-more-btn:hover, .z7r-root .z7r-retry:hover { background: var(--z7r-surface-2); color: var(--z7r-text); border-color: var(--z7r-line-strong); box-shadow: none; }
.z7r-root .z7r-retry { margin-left: 10px; padding: 7px 14px; }

/* Loading placeholders */
.z7r-skel { border-radius: 10px; background: linear-gradient(100deg, #1a1a1a 30%, #222 50%, #1a1a1a 70%) 0 0 / 300% 100%; animation: z7r-shimmer 1.4s linear infinite; }
@keyframes z7r-shimmer { to { background-position: -150% 0; } }

/* ---------- Lightbox ---------- */
.z7r-lb { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 4vh 20px; }
.z7r-lb-backdrop { background: rgba(0, 0, 0, .55); animation: z7r-fade .25s ease-out both; }
.z7r-lb-panel {
	position: relative; width: min(940px, 100%); height: min(600px, 86vh);
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
	background: var(--z7r-bg); border: 1px solid var(--z7r-line-strong); border-radius: 12px; overflow: hidden;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
	animation: z7r-rise .38s var(--z7r-ease) both;
}
.z7r-lb-panel.z7r-nophoto { grid-template-columns: 1fr; width: min(520px, 100%); height: auto; max-height: 86vh; }
.z7r-lb-media { position: relative; background: #050505; min-height: 0; overflow: hidden; }
.z7r-lb-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.z7r-root .z7r-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .22); cursor: pointer;
	transition: background-color .2s;
}
.z7r-root .z7r-nav:hover { background: rgba(0, 0, 0, .85); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.z7r-root .z7r-nav svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.z7r-prev { left: 12px; } .z7r-next { right: 12px; }
.z7r-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 20px; background: rgba(0, 0, 0, .65); font-size: 11px; font-variant-numeric: tabular-nums; }

.z7r-lb-info { display: flex; flex-direction: column; min-height: 0; padding: 22px 22px 18px; border-left: 1px solid var(--z7r-line); }
.z7r-nophoto .z7r-lb-info { border-left: 0; }
.z7r-lb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.z7r-lb-info .z7r-name { font-size: 15px; }
.z7r-lb-info .z7r-stars svg { width: 15px; height: 15px; }
.z7r-lb-info .z7r-meta { justify-content: flex-start; gap: 12px; margin-top: 8px; }
.z7r-lb-text {
	flex: 1; min-height: 60px; overflow-y: auto; margin: 16px 0 0; padding-right: 4px;
	font-size: 14.5px; line-height: 1.7; color: rgba(244, 244, 242, .9); white-space: pre-line; overflow-wrap: anywhere;
	scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.z7r-prod { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--z7r-line); }
.z7r-prod img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: #0c0c0c; }
.z7r-prod-txt { flex: 1; min-width: 0; }
.z7r-prod-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--z7r-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z7r-prod-price { display: block; margin-top: 3px; font-size: 13px; color: var(--z7r-muted); font-variant-numeric: tabular-nums; }
.z7r-shop {
	flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 6px;
	background: #fff; color: #141414 !important; font-size: 13px; font-weight: 600; text-decoration: none !important;
	transition: background-color .2s, transform .3s var(--z7r-ease);
}
.z7r-shop:hover { background: #ececea; }
.z7r-shop svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .3s var(--z7r-ease); }
.z7r-shop:hover svg { transform: translateX(3px); }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.z7r-root .z7r-tab { padding: 13px 8px; font-size: 12px; gap: 6px; }
	.z7r-modal { padding: 0; align-items: end; }
	.z7r-panel { width: 100%; height: 92vh; height: 92dvh; border-radius: 16px 16px 0 0; border-bottom: 0; }
	.z7r-head { padding: 16px 14px 14px 18px; }
	.z7r-head h2 { font-size: 18px; }
	.z7r-body { padding: 12px 10px 24px; }
	.z7r-grid, .z7r-col { gap: 10px; }
	.z7r-cbody { padding: 10px 10px 11px; }
	.z7r-text { -webkit-line-clamp: 3; font-size: 12.5px; }
	.z7r-chip { display: none !important; }

	.z7r-lb { padding: 0; align-items: end; }
	.z7r-lb-panel { display: flex; flex-direction: column; width: 100%; height: auto; max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; }
	.z7r-lb-media { flex: none; height: min(48vh, 420px); }
	.z7r-lb-info { flex: 1 1 auto; min-height: 0; border-left: 0; border-top: 1px solid var(--z7r-line); padding: 16px 16px 18px; }
	.z7r-lb-text { flex: 1 1 auto; max-height: 26vh; font-size: 14px; margin-top: 12px; }
	.z7r-prod img { width: 44px; height: 44px; }
	.z7r-shop { padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.z7r-root *, .z7r-root *::before, .z7r-root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
