/* ==========================================================================
   JC Reviews – Rating / Review Slider
   Shortcode: [jc_reviews]
   Colours are CSS variables – override them in style.css or on a custom class
   ========================================================================== */

.jcr-wrap {
	--jcr-primary:   #1c8b83;   /* teal – headings, borders, dots  */
	--jcr-accent:    #e2703a;   /* orange – question line, divider */
	--jcr-star:      #2c2c2c;   /* star colour                     */
	--jcr-text:      #4a5555;   /* quote text                      */
	--jcr-muted:     #6b7676;   /* sub heading                     */
	--jcr-card-bg:   #ffffff;
	--jcr-border:    rgba(28, 139, 131, .55);
	--jcr-radius:    6px;
	--jcr-gap:       24px;
	--jcr-cols:      1;         /* set by JS per breakpoint         */

	position: relative;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.jcr-wrap *,
.jcr-wrap *::before,
.jcr-wrap *::after { box-sizing: border-box; }

/* ---------- Section header ------------------------------------------------ */
.jcr-divider {
	height: 1px;
	max-width: 680px;
	margin: 0 auto 34px;
	background: var(--jcr-accent);
}

.jcr-title {
	margin: 0 0 10px;
	color: var(--jcr-primary);
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	text-align: center;
}

.jcr-subtitle {
	margin: 0 0 30px;
	color: var(--jcr-muted);
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

/* ---------- Slider shell -------------------------------------------------- */
.jcr-slider { position: relative; }

.jcr-viewport {
	overflow: hidden;
	width: 100%;
	/* small breathing room so focus rings are not clipped */
	padding: 3px;
}

.jcr-track {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--jcr-gap);
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.jcr-slide {
	flex: 0 0 calc((100% - (var(--jcr-cols) - 1) * var(--jcr-gap)) / var(--jcr-cols));
	max-width: calc((100% - (var(--jcr-cols) - 1) * var(--jcr-gap)) / var(--jcr-cols));
	min-width: 0;
	display: flex;
}

/* ---------- Card ---------------------------------------------------------- */
.jcr-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	padding: 30px 34px 26px;
	background: var(--jcr-card-bg);
	border: 1px solid var(--jcr-border);
	border-radius: var(--jcr-radius);
	text-align: center;
}

.jcr-align-left .jcr-card,
.jcr-align-left .jcr-title,
.jcr-align-left .jcr-subtitle { text-align: left; }

.jcr-card__heading {
	margin: 0 0 16px;
	color: var(--jcr-accent);
	font-size: 17px !important;
	line-height: 1.45 !important;
	font-weight: 700;
}

.jcr-card__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jcr-text);
	font-size: 16px;
	line-height: 1.7;
	font-style: normal;
	quotes: none;
}

.jcr-card__text::before,
.jcr-card__text::after { content: none; }

.jcr-card__foot { margin-top: 22px; }

.jcr-card__author {
	margin: 0 0 6px;
	color: var(--jcr-text);
	font-size: 15px;
	font-style: italic;
}

.jcr-card__role { font-style: italic; }

.jcr-card__source {
	margin: 6px 0 0;
	color: var(--jcr-muted);
	font-size: 13px;
}

.jcr-card__source a {
	color: var(--jcr-primary);
	text-decoration: none;
}

.jcr-card__source a:hover { text-decoration: underline; }

/* ---------- Stars (supports half values) ---------------------------------- */
.jcr-stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
	vertical-align: middle;
}

.jcr-stars__base { color: #d4d8d8; }

.jcr-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--jcr-star);
	white-space: nowrap;
}

/* ---------- Arrows -------------------------------------------------------- */
.jcr-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0 0 3px;
	transform: translateY(-50%);
	border: 1px solid var(--jcr-border);
	border-radius: 50%;
	background: #fff;
	color: var(--jcr-primary);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.jcr-nav:hover  { background: var(--jcr-primary); color: #fff; }
.jcr-nav:focus-visible { outline: 2px solid var(--jcr-accent); outline-offset: 2px; }
.jcr-nav--prev  { left: -22px; }
.jcr-nav--next  { right: -22px; }

.jcr-nav[disabled] { opacity: .35; cursor: default; }
.jcr-nav[disabled]:hover { background: #fff; color: var(--jcr-primary); }
.jcr-nav[hidden] { display: none; }

/* ---------- Dots ---------------------------------------------------------- */
.jcr-dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 22px;
}

.jcr-dots:empty { display: none; }

.jcr-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid var(--jcr-primary);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.jcr-dot:hover { background: var(--jcr-border); }

.jcr-dot.is-active {
	background: var(--jcr-primary);
	transform: scale(1.2);
}

.jcr-dot:focus-visible { outline: 2px solid var(--jcr-accent); outline-offset: 2px; }

/* ---------- Grab cursor while dragging ------------------------------------ */
.jcr-slider.is-draggable .jcr-viewport { cursor: grab; }
.jcr-slider.is-dragging  .jcr-viewport { cursor: grabbing; user-select: none; }
.jcr-slider.is-dragging  .jcr-card     { user-select: none; }

.jcr-empty {
	padding: 14px;
	border: 1px dashed #cfd6d6;
	color: #777;
	text-align: center;
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1200px) {
	.jcr-nav--prev { left: -10px; }
	.jcr-nav--next { right: -10px; }
}

@media (max-width: 991px) {
	.jcr-title { font-size: 27px; }
	.jcr-card  { padding: 26px 24px 22px; }
}

@media (max-width: 767px) {
	.jcr-title    { font-size: 23px; }
	.jcr-subtitle { margin-bottom: 24px; font-size: 14px; }
	.jcr-card     { padding: 24px 18px 20px; }
	.jcr-card__heading { font-size: 16px; }
	.jcr-card__text    { font-size: 15px; }

	/* arrows move below the slider so they never cover the card */
	.jcr-nav {
		position: static;
		transform: none;
		width: 38px;
		height: 38px;
	}
	.jcr-slider { text-align: center; }
	.jcr-nav--prev,
	.jcr-nav--next {
		display: inline-flex;
		margin: 18px 6px 0;
	}
	.jcr-dots { margin-top: 16px; }
}

/* ---------- Motion preferences -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.jcr-track { transition: none !important; }
}

/* ==========================================================================
   STYLE VARIANT: compact  ->  [jc_reviews style="compact"]
   Small inline quote box: quote left aligned, author + stars right aligned.
   ========================================================================== */

.jcr-style-compact .jcr-card {
	padding: 18px 22px 16px;
	text-align: left;
}

.jcr-style-compact .jcr-card__heading {
	margin-bottom: 10px;
	font-size: 15px;
}

.jcr-style-compact .jcr-card__text {
	font-size: 15px;
	line-height: 1.6;
}

.jcr-style-compact .jcr-card__foot {
	margin-top: 12px;
	text-align: right;
}

.jcr-style-compact .jcr-card__author {
	margin-bottom: 4px;
	font-size: 14px;
}

.jcr-style-compact .jcr-stars {
	font-size: 14px;
	letter-spacing: 1px;
}

.jcr-style-compact .jcr-card__source { text-align: right; }

/* arrows sit tighter to a small box */
.jcr-style-compact .jcr-nav {
	width: 34px;
	height: 34px;
	font-size: 21px;
}

.jcr-style-compact .jcr-dots { margin-top: 14px; }

@media (max-width: 767px) {
	.jcr-style-compact .jcr-card { padding: 16px 16px 14px; }
}
