/* Craftcloud Reviews: frontend widget styles. No external fonts or images. */

.cc-rv {
	--cc-rv-cols: var(--cc-rv-cols-lg, 3);
	--cc-rv-gap: 20px;
	--cc-rv-pad: 22px;
	--cc-rv-radius: 10px;
	--cc-rv-text: #2c2f33;
	--cc-rv-heading: #1f2328;
	--cc-rv-muted: #80858c;
	--cc-rv-link: #1764c0;
	--cc-rv-card: #f4f5f7;
	--cc-rv-border: transparent;
	--cc-rv-shadow: none;
	--cc-rv-panel: transparent;
	--cc-rv-panel-pad: 0;
	--cc-rv-star-empty: #d7d9dd;
	--cc-rv-reply-bg: rgba(0, 0, 0, .035);
	--cc-rv-nav-bg: #fff;
	--cc-rv-dot: #c9ccd1;
	--cc-rv-dot-active: #6b7078;
	--cc-rv-dialog: #fff;

	box-sizing: border-box;
	position: relative;
	/* Columns follow the widget's own width, so narrow content columns and sidebars work too. */
	container: cc-rv / inline-size;
	margin: 0;
	padding: var(--cc-rv-panel-pad);
	border-radius: calc(var(--cc-rv-radius) + 4px);
	background: var(--cc-rv-panel);
	color: var(--cc-rv-text);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.cc-rv[hidden] {
	display: none !important;
}

.cc-rv *,
.cc-rv *::before,
.cc-rv *::after {
	box-sizing: inherit;
}

/* ---- Styles ---- */

.cc-rv--style-border {
	--cc-rv-card: #fff;
	--cc-rv-border: #e1e4e8;
}

.cc-rv--style-shadow {
	--cc-rv-card: #fff;
	--cc-rv-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .08);
}

.cc-rv--style-minimal {
	--cc-rv-card: transparent;
	--cc-rv-pad: 4px 0;
	--cc-rv-radius: 0;
}

.cc-rv--style-dark,
.cc-rv--style-minimal-dark {
	--cc-rv-text: #e8eaed;
	--cc-rv-heading: #fff;
	--cc-rv-muted: #9aa0a8;
	--cc-rv-link: #8ab8f5;
	--cc-rv-card: #262a30;
	--cc-rv-panel: #17191d;
	--cc-rv-panel-pad: 28px;
	--cc-rv-star-empty: #454a52;
	--cc-rv-reply-bg: rgba(255, 255, 255, .05);
	--cc-rv-nav-bg: #33383f;
	--cc-rv-dot: #4b5058;
	--cc-rv-dot-active: #c4c8ce;
	--cc-rv-dialog: #17191d;
}

.cc-rv--style-minimal-dark {
	--cc-rv-card: transparent;
	--cc-rv-pad: 4px 0;
}

/* ---- Lists ---- */

.cc-rv .cc-rv__track {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-rv .cc-rv__track > .cc-rv__item {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	min-width: 0;
}

.cc-rv .cc-rv__track > .cc-rv__item::before {
	content: none;
}

/* ---- Card ---- */

.cc-rv__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: var(--cc-rv-pad);
	border: 1px solid var(--cc-rv-border);
	border-radius: var(--cc-rv-radius);
	background: var(--cc-rv-card);
	box-shadow: var(--cc-rv-shadow);
}

.cc-rv__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cc-rv__avatar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: hsl(var(--cc-rv-hue, 210) 38% 46%);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cc-rv .cc-rv__avatar--img {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--cc-rv-star-empty);
	object-fit: cover;
}

.cc-rv__who {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.cc-rv__name {
	overflow: hidden;
	color: var(--cc-rv-heading);
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cc-rv__date {
	overflow: hidden;
	color: var(--cc-rv-muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cc-rv__source {
	display: flex;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-left: auto;
	line-height: 0;
}

.cc-rv__g {
	display: block;
	width: 20px;
	height: 20px;
}

.cc-rv__wordmark {
	display: inline-block;
	width: auto;
	height: 22px;
	vertical-align: middle;
}

.cc-rv--style-dark .cc-rv__wordmark path,
.cc-rv--style-minimal-dark .cc-rv__wordmark path {
	fill: #fff;
}

/* On dark backgrounds the mark sits on a white disc, as Google's own badges do. */
.cc-rv--style-dark .cc-rv__source,
.cc-rv--style-minimal-dark .cc-rv__source {
	padding: 4px;
	border-radius: 50%;
	background: #fff;
}

.cc-rv__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cc-rv__verified {
	display: flex;
	flex: 0 0 auto;
	line-height: 0;
}

.cc-rv__verified svg {
	width: 16px;
	height: 16px;
}

.cc-rv__text {
	margin: 0;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.cc-rv__translated {
	color: var(--cc-rv-muted);
	font-size: 12px;
	font-style: italic;
}

.cc-rv .cc-rv__more {
	all: unset;
	color: var(--cc-rv-link);
	font-size: .9em;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.cc-rv .cc-rv__more:hover {
	text-decoration: underline;
}

.cc-rv .cc-rv__more:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--cc-rv-link);
	outline-offset: 2px;
}

.cc-rv__reply {
	padding: 10px 12px;
	border-left: 3px solid var(--cc-rv-star-empty);
	border-radius: 0 6px 6px 0;
	background: var(--cc-rv-reply-bg);
	color: var(--cc-rv-muted);
	font-size: 14px;
	line-height: 1.5;
}

.cc-rv__reply-by {
	display: block;
	margin-bottom: 2px;
	color: var(--cc-rv-heading);
	font-weight: 700;
}

/* ---- Stars ---- */

.cc-rv__stars {
	display: inline-block;
	position: relative;
	align-self: flex-start;
	line-height: 0;
	white-space: nowrap;
	vertical-align: middle;
}

.cc-rv__stars svg {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 2px;
}

.cc-rv__stars--lg svg {
	width: 24px;
	height: 24px;
}

.cc-rv__stars-bg svg {
	fill: var(--cc-rv-star-empty);
}

.cc-rv__stars-fg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}

.cc-rv__stars-fg svg {
	fill: var(--cc-rv-star, #f6bb06);
}

/* ---- Header ---- */

.cc-rv__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	margin: 0 0 22px;
	color: var(--cc-rv-muted);
	text-align: center;
}

.cc-rv__header .cc-rv__stars {
	align-self: center;
}

.cc-rv__grade {
	color: var(--cc-rv-heading);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cc-rv__based strong {
	color: var(--cc-rv-heading);
}

.cc-rv .cc-rv__platform {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cc-rv-heading);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

/* ---- Layout: grid ---- */

.cc-rv--grid .cc-rv__track {
	display: grid;
	grid-template-columns: repeat(var(--cc-rv-cols, 3), minmax(0, 1fr));
	gap: var(--cc-rv-gap);
}

/* ---- Layout: masonry ---- */

.cc-rv--masonry .cc-rv__track {
	column-count: var(--cc-rv-cols, 3);
	column-gap: var(--cc-rv-gap);
}

.cc-rv--masonry .cc-rv__track > .cc-rv__item {
	display: inline-block;
	width: 100%;
	margin-bottom: var(--cc-rv-gap);
	break-inside: avoid;
}

/* ---- Layout: list ---- */

.cc-rv--list .cc-rv__track {
	display: flex;
	flex-direction: column;
	gap: var(--cc-rv-gap);
}

@container cc-rv (min-width: 640px) {
	.cc-rv--list .cc-rv__card {
		display: grid;
		grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
		align-content: start;
		gap: 8px 28px;
	}

	.cc-rv--list .cc-rv__meta {
		grid-row: 1 / span 3;
		align-self: start;
	}

	.cc-rv--list .cc-rv__card > :not(.cc-rv__meta) {
		grid-column: 2;
	}
}

.cc-rv--list.cc-rv--style-minimal .cc-rv__item + .cc-rv__item,
.cc-rv--list.cc-rv--style-minimal-dark .cc-rv__item + .cc-rv__item {
	padding-top: var(--cc-rv-gap);
	border-top: 1px solid var(--cc-rv-star-empty);
}

/* ---- Layout: slider ---- */

.cc-rv__viewport {
	position: relative;
}

.cc-rv--slider .cc-rv__track {
	display: flex;
	gap: var(--cc-rv-gap);
	/* Room for card shadows inside the scroll container, cancelled out by the negative margin. */
	margin: -8px -8px -16px;
	padding: 8px 8px 16px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-padding-inline: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cc-rv--slider .cc-rv__track::-webkit-scrollbar {
	display: none;
}

.cc-rv--slider .cc-rv__track:focus-visible {
	border-radius: var(--cc-rv-radius);
	outline: 2px solid var(--cc-rv-link);
	outline-offset: -2px;
}

.cc-rv--slider .cc-rv__track > .cc-rv__item {
	flex: 0 0 calc((100% - (var(--cc-rv-cols, 3) - 1) * var(--cc-rv-gap)) / var(--cc-rv-cols, 3));
	scroll-snap-align: start;
}

.cc-rv .cc-rv__nav {
	all: unset;
	display: flex;
	position: absolute;
	top: 50%;
	z-index: 2;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--cc-rv-nav-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 3px 10px rgba(0, 0, 0, .12);
	color: var(--cc-rv-heading);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s;
}

.cc-rv .cc-rv__nav svg {
	width: 20px;
	height: 20px;
}

.cc-rv .cc-rv__nav--prev {
	left: -14px;
}

.cc-rv .cc-rv__nav--prev svg {
	transform: rotate(180deg);
}

.cc-rv .cc-rv__nav--next {
	right: -14px;
}

/* Minimal styles have no card padding: make room so the arrows never cover text. */
@media (hover: hover) {
	.cc-rv--arrows.cc-rv--style-minimal .cc-rv__viewport,
	.cc-rv--arrows.cc-rv--style-minimal-dark .cc-rv__viewport {
		padding-inline: 36px;
	}

	.cc-rv--arrows.cc-rv--style-minimal .cc-rv__nav--prev,
	.cc-rv--arrows.cc-rv--style-minimal-dark .cc-rv__nav--prev {
		left: -4px;
	}

	.cc-rv--arrows.cc-rv--style-minimal .cc-rv__nav--next,
	.cc-rv--arrows.cc-rv--style-minimal-dark .cc-rv__nav--next {
		right: -4px;
	}
}

.cc-rv .cc-rv__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.cc-rv .cc-rv__nav:focus-visible {
	outline: 2px solid var(--cc-rv-link);
	outline-offset: 2px;
}

.cc-rv__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	min-height: 24px;
	margin-top: 14px;
}

.cc-rv .cc-rv__dot {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	cursor: pointer;
}

.cc-rv .cc-rv__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: var(--cc-rv-dot);
	transition: width .2s, background-color .2s;
}

.cc-rv .cc-rv__dot[aria-current="true"]::before {
	width: 18px;
	background: var(--cc-rv-dot-active);
}

.cc-rv .cc-rv__dot:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--cc-rv-link);
}

.cc-rv.is-static .cc-rv__nav,
.cc-rv.is-static .cc-rv__dots {
	visibility: hidden;
}

/* ---- Header on the left ---- */

.cc-rv__body {
	/* The cards' column count follows the space next to the header, not the whole widget. */
	container: cc-rv / inline-size;
	min-width: 0;
}

@container cc-rv (min-width: 760px) {
	.cc-rv--header-left > .cc-rv__layout {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		align-items: center;
		gap: 0 32px;
	}

	.cc-rv--header-left .cc-rv__header {
		flex-direction: column;
		gap: 8px;
		margin: 0;
	}
}

/* ---- Layout: sidebar (one card at a time, controls below) ---- */

.cc-rv--slider.cc-rv--sidebar .cc-rv__track > .cc-rv__item {
	flex-basis: 100%;
}

.cc-rv--sidebar .cc-rv__header {
	gap: 4px 10px;
	margin-bottom: 14px;
}

.cc-rv--sidebar .cc-rv__grade {
	font-size: 17px;
}

.cc-rv__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.cc-rv__controls .cc-rv__dots {
	margin: 0;
}

.cc-rv--sidebar .cc-rv__controls .cc-rv__nav {
	display: flex;
	position: static;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1px solid var(--cc-rv-star-empty);
	background: transparent;
	box-shadow: none;
	transform: none;
}

.cc-rv--sidebar .cc-rv__controls .cc-rv__nav svg {
	width: 16px;
	height: 16px;
}

.cc-rv--sidebar .cc-rv__controls .cc-rv__nav:disabled {
	opacity: .35;
}

/* ---- Layouts: badge, button, floating ---- */

.cc-rv.cc-rv--badge,
.cc-rv.cc-rv--button,
.cc-rv.cc-rv--floating {
	--cc-rv-panel: transparent;
	--cc-rv-panel-pad: 0;
	/* Sized by their content, so no size containment here. */
	container-type: normal;
	width: fit-content;
	max-width: 100%;
}

.cc-rv--style-minimal,
.cc-rv--style-minimal-dark {
	--cc-rv-summary-pad: 4px 0;
}

.cc-rv .cc-rv__summary {
	all: unset;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	gap: 14px;
	max-width: 100%;
	padding: var(--cc-rv-summary-pad, 14px 20px);
	border: 1px solid var(--cc-rv-border);
	border-radius: var(--cc-rv-radius);
	background: var(--cc-rv-summary-bg, var(--cc-rv-card));
	box-shadow: var(--cc-rv-shadow);
	color: var(--cc-rv-text);
	font: inherit;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.cc-rv button.cc-rv__summary,
.cc-rv a.cc-rv__summary {
	cursor: pointer;
}

.cc-rv button.cc-rv__summary:hover,
.cc-rv a.cc-rv__summary:hover {
	transform: translateY(-1px);
}

.cc-rv .cc-rv__summary:focus-visible {
	outline: 2px solid var(--cc-rv-link);
	outline-offset: 3px;
}


.cc-rv__summary-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cc-rv__summary-title {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--cc-rv-heading);
	font-weight: 700;
}

.cc-rv__summary-score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cc-rv__score {
	color: var(--cc-rv-heading);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.cc-rv__count {
	color: var(--cc-rv-muted);
	font-size: 13px;
}

.cc-rv--button .cc-rv__summary {
	gap: 8px;
	padding: var(--cc-rv-summary-pad, 9px 18px);
	border-radius: 999px;
}

.cc-rv--button .cc-rv__g {
	width: 20px;
	height: 20px;
}

.cc-rv--button .cc-rv__score {
	font-size: 16px;
}

.cc-rv--button .cc-rv__stars svg {
	width: 16px;
	height: 16px;
}

.cc-rv.cc-rv--floating {
	position: fixed;
	bottom: 20px;
	z-index: 9990;
	max-width: calc(100vw - 32px);
	--cc-rv-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 8px 28px rgba(0, 0, 0, .16);
}

.cc-rv--float-right {
	right: 20px;
}

.cc-rv--float-left {
	left: 20px;
}

/* Floating over page content needs a solid background, also in the minimal styles. */
.cc-rv--floating.cc-rv--style-minimal {
	--cc-rv-summary-bg: #fff;
	--cc-rv-summary-pad: 12px 18px;
}

.cc-rv--floating.cc-rv--style-minimal-dark {
	--cc-rv-summary-bg: #262a30;
	--cc-rv-summary-pad: 12px 18px;
}

.cc-rv .cc-rv__dismiss {
	all: unset;
	display: flex;
	position: absolute;
	top: -9px;
	right: -9px;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--cc-rv-heading);
	color: var(--cc-rv-dialog);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: pointer;
}

.cc-rv--float-left .cc-rv__dismiss {
	right: auto;
	left: -9px;
}

.cc-rv .cc-rv__dismiss svg {
	width: 12px;
	height: 12px;
}

.cc-rv .cc-rv__dismiss:focus-visible {
	outline: 2px solid var(--cc-rv-link);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.cc-rv.cc-rv--floating {
		bottom: 12px;
	}

	.cc-rv--float-right {
		right: 12px;
	}

	.cc-rv--float-left {
		left: 12px;
	}

	.cc-rv--floating .cc-rv__summary {
		gap: 10px;
		padding: 10px 14px;
	}

	.cc-rv--floating .cc-rv__summary-title .cc-rv__wordmark {
		height: 18px;
	}
}

/* ---- Popup ---- */

.cc-rv .cc-rv__dialog {
	container: cc-rv / inline-size;
	box-sizing: border-box;
	width: min(760px, calc(100vw - 32px));
	max-width: none;
	max-height: min(86vh, 900px);
	margin: auto;
	padding: 0 24px 24px;
	overflow: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 14px;
	background: var(--cc-rv-dialog);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
	color: var(--cc-rv-text);
	text-align: left;
}

.cc-rv .cc-rv__dialog::backdrop {
	background: rgba(15, 18, 22, .55);
}

.cc-rv__dialog-head {
	display: flex;
	position: sticky;
	top: 0;
	z-index: 1;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 -24px 16px;
	padding: 14px 24px;
	border-bottom: 1px solid var(--cc-rv-star-empty);
	background: var(--cc-rv-dialog);
}

.cc-rv .cc-rv__dialog-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--cc-rv-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.cc-rv .cc-rv__close {
	all: unset;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--cc-rv-heading);
	cursor: pointer;
}

.cc-rv .cc-rv__close:hover {
	background: var(--cc-rv-reply-bg);
}

.cc-rv .cc-rv__close:focus-visible {
	outline: 2px solid var(--cc-rv-link);
}

.cc-rv .cc-rv__close svg {
	width: 20px;
	height: 20px;
}

.cc-rv__dialog .cc-rv__header {
	justify-content: flex-start;
	margin: 0 0 18px;
}

.cc-rv__dialog .cc-rv__track {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---- Responsive (container width) ---- */

@container cc-rv (max-width: 900px) {
	.cc-rv__track {
		--cc-rv-cols: var(--cc-rv-cols-md, 2);
	}
}

@container cc-rv (max-width: 560px) {
	.cc-rv__track {
		--cc-rv-cols: 1;
		--cc-rv-gap: 14px;
	}

	.cc-rv:not(.cc-rv--style-minimal):not(.cc-rv--style-minimal-dark) .cc-rv__card {
		--cc-rv-pad: 18px;
	}

	/* Let the next card peek in so visitors see they can swipe. */
	.cc-rv--slider .cc-rv__track > .cc-rv__item {
		flex-basis: 86%;
	}

	.cc-rv .cc-rv__nav {
		display: none;
	}

	.cc-rv .cc-rv__viewport {
		padding-inline: 0;
	}
}

@media (max-width: 640px) {
	.cc-rv--style-dark,
	.cc-rv--style-minimal-dark {
		--cc-rv-panel-pad: 20px 16px;
	}
}

@media (hover: none) {
	.cc-rv .cc-rv__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-rv--slider .cc-rv__track {
		scroll-behavior: auto;
	}
}
