/* WP GWS Reviews — scoped front-end styles.
   All selectors are namespaced under .gws-* so the theme cannot clobber them. */

:root {
	--gws-primary: #2d8a4e;
	--gws-star: #f5b301;
}

.gws-testimonials,
.gws-form {
	--gws-radius: 10px;
	--gws-border: #e2e4e8;
	--gws-muted: #6b7280;
	font-family: inherit;
	color: var(--gws-text, #1f2329);
	box-sizing: border-box;
}

.gws-testimonials *,
.gws-form * {
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.gws-btn {
	display: inline-block;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--gws-radius);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: opacity .15s ease;
}
.gws-btn:hover { opacity: .9; }
.gws-btn--primary { background: var(--gws-primary); color: #fff; }
.gws-btn--primary:hover { background: var(--gws-primary-hover, var(--gws-primary)); color: var(--gws-primary-hover-text, #fff); opacity: 1; }
.gws-btn--ghost {
	background: transparent;
	color: var(--gws-primary);
	border: 1px solid var(--gws-primary);
}

/* ---------- Section head ---------- */
.gws-testimonials__head { text-align: center; margin-bottom: 32px; }
.gws-testimonials__title { margin: 0 0 10px; font-size: 32px; font-weight: 800; }
.gws-testimonials__subtitle {
	margin: 0 auto;
	max-width: 620px;
	color: var(--gws-muted);
	font-size: 16px;
	line-height: 1.5;
}

/* Slider section gets a soft tinted panel like the reference. */
.gws-testimonials--slider {
	background: var(--gws-slider-bg, var(--gws-panel, #f4f6fd));
	border-radius: 16px;
	padding: 48px 40px;
}

/* ---------- Slider ---------- */
.gws-slider { position: relative; }
.gws-slider__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 2px 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.gws-slider__track::-webkit-scrollbar { display: none; }

.gws-slider__nav { display: flex; gap: 12px; margin-top: 28px; }
.gws-slider__btn {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--gws-border);
	background: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--gws-text, #1f2329);
	transition: all .15s ease;
}
.gws-slider__btn:hover {     border-color: var(--gws-primary);
    color: #ffffff;
    background-color: var(--gws-primary); }
/*.gws-slider__btn--next {
	background: var(--gws-primary);
	border-color: var(--gws-primary);
	color: #fff;
}
.gws-slider__btn--next:hover { background: var(--gws-primary-hover, var(--gws-primary)); border-color: var(--gws-primary-hover, var(--gws-primary)); opacity: 1; color: var(--gws-primary-hover-text, #fff); }*/

/* ---------- Card ---------- */
.gws-card {
	background: var(--gws-card-bg, #fff);
	border: 1px solid var(--gws-border);
	border-radius: var(--gws-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .05 );
}
/* Slider sizing only — grid cards are full column width. */
.gws-slider .gws-card {
	flex: 0 0 275px;
	max-width: 275px;
	scroll-snap-align: start;
}

/* ---------- Grid (masonry) + Load More ---------- */
.gws-grid__track {
	column-count: var( --gws-cols, 3 );
	column-gap: 20px;
}
.gws-grid .gws-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 20px;
	width: 100%;
}
/* Grid card order: stars on top, then text, then name. */
.gws-testimonials--grid .gws-card .gws-stars { order: -1; }

.gws-loadmore {
	text-align: center;
	margin-top: 32px;
}
.gws-loadmore .gws-btn { border-radius: 999px; padding: 11px 30px; }

@media ( max-width: 782px ) {
	.gws-grid__track { column-count: 2; }
}
@media ( max-width: 480px ) {
	.gws-grid__track { column-count: 1; }
}

/* ---------- Section head icon ---------- */
.gws-testimonials__icon {
	display: block;
	font-size: 44px;
	line-height: 1;
	color: var( --gws-primary );
	margin-bottom: 6px;
}

/* ---------- Grid CTA bar ("Share your thoughts") ---------- */
.gws-cta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var( --gws-panel, #f4f6fd );
	border: 1px solid var( --gws-border );
	border-radius: 12px;
	padding: 18px 24px;
	margin-bottom: 28px;
}
.gws-cta-bar__title { margin: 0; font-size: 18px; font-weight: 700; }
.gws-cta-bar__sub { margin: 4px 0 0; color: var( --gws-muted ); font-size: 14px; }
.gws-cta-bar .gws-btn { flex: 0 0 auto; }

@media ( max-width: 600px ) {
	.gws-cta-bar { flex-direction: column; align-items: flex-start; }
}
.gws-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--gws-text);
    padding: 0;
    border: none !important;
}
.gws-card__by {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	font-size: 14px;
}
.gws-card__logo { flex: 0 0 auto; }
.gws-card__logo-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
	display: block;
}
.gws-card__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gws-card__name { font-weight: 700; }
.gws-card__company { color: var(--gws-muted); }
.gws-card__company a { color: var(--gws-primary); }

/* ---------- Stars (display, supports halves via fill width) ---------- */
.gws-stars {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 1px;
}
.gws-stars__bg { color: #d6d8dc; }
.gws-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--gws-star, #f5b301);
	width: 0;
}

/* ---------- Write button ---------- */
.gws-write { margin-top: 20px; text-align: center; }
.gws-empty { color: var(--gws-muted); }

/* ---------- Modal ---------- */
.gws-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647; /* max — sit above theme/builder overlays */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
/* The HTML hidden attribute must win over display:flex above. */
.gws-modal[hidden] {
	display: none !important;
}
.gws-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, .55 );
}
.gws-modal__box {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 24px 24px 22px;
	width: 100%;
	max-width: 440px;
	max-height: 86vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, .3 );
}
.gws-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f3f9;
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--gws-muted);
	z-index: 2;
	padding: 0;
	transition: background .15s ease, color .15s ease;
}
.gws-modal__close:hover { background: #e2e4e8; color: var(--gws-text); }
/* Keep modal headings clear of the close button. */
.gws-modal .gws-q { padding-right: 38px; }
body.gws-modal-open { overflow: hidden; }

/* ---------- Form ---------- */
.gws-q { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.gws-help { font-size: 13px; color: var(--gws-muted); margin: 0 0 10px; }

.gws-field { display: block; margin-bottom: 12px; }
.gws-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.gws-field input,
.gws-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--gws-border);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--gws-text);
}
.gws-field textarea { resize: none; }
.gws-field input:focus,
.gws-field textarea:focus {
	outline: none;
	border-color: var(--gws-primary);
	box-shadow: 0 0 0 3px rgba( 45, 138, 78, .15 );
}

.gws-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin: 6px 0 14px; }
.gws-check input { margin-top: 3px; }

/* Submit: full-width, pill, separated from the publish Yes/No pair by a divider. */
.gws-actions {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--gws-border);
}
.gws-actions .gws-btn {
	display: block;
	width: 100%;
	border-radius: 999px;
	padding: 13px 20px;
	font-size: 16px;
}
.gws-captcha { margin: 0 0 14px; }

/* ---------- Logo dropzone ---------- */
.gws-dropzone {
	position: relative;
	border: 2px dashed var(--gws-border);
	border-radius: 10px;
	padding: 22px 16px;
	text-align: center;
	background: #fafbfc;
	transition: border-color .15s ease, background .15s ease;
}
.gws-dropzone.is-drag { border-color: var(--gws-primary); background: rgba( 45, 138, 78, .06 ); }
.gws-dropzone__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.gws-dropzone__inner {
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--gws-muted);
	font-size: 14px;
}
.gws-dropzone__icon { color: var(--gws-primary); }
.gws-dropzone__browse { color: var(--gws-primary); font-weight: 600; text-decoration: underline; }
.gws-dropzone__hint { font-size: 12px; }
.gws-dropzone__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
}
.gws-dropzone__preview img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.gws-dropzone__remove {
	position: relative;
	z-index: 2;
	border: 0;
	background: #e2e4e8;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	font-size: 15px;
	color: #444;
}
.gws-dropzone__remove:hover { background: #d6d8dc; }

.gws-cta {
	background: #f3f8f4;
	border: 1px solid #d6ebdd;
	border-radius: var(--gws-radius);
	padding: 14px 16px;
	margin-bottom: 18px;
}
.gws-cta p { margin: 0 0 10px; font-size: 14px; }
.gws-cta-links { display: flex; gap: 10px; flex-wrap: wrap; }

.gws-error {
	color: #b32d2e;
	font-size: 14px;
	margin: 10px 0 0;
	font-weight: 600;
}
.gws-thankyou {
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: var(--gws-primary);
	padding: 20px 0;
}

/* ---------- Yes/No buttons (satisfied gate + publish choice) ---------- */
.gws-yesno { display: flex; gap: 10px; margin: 2px 0 4px; }
.gws-yesno .gws-btn {
	flex: 1 1 0;
	text-align: center;
	border-radius: 999px;
	padding: 11px 14px;
}

/* Satisfied gate — centered, balanced. */
.gws-step--satisfied { text-align: center; padding: 14px 0 8px; }
.gws-step--satisfied .gws-q { padding: 0 36px; font-size: 19px; margin: 0 0 20px; }
.gws-step--satisfied .gws-yesno { justify-content: center; }
.gws-step--satisfied .gws-yesno .gws-btn { flex: 0 1 132px; max-width: 150px; }

/* Happy path: publishing-details sub-step (revealed after "Yes"). */
.gws-pub-details { margin-top: 10px; }

/* ---------- Half-star rating input ---------- */
.gws-stars-input { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.gws-si-track {
	position: relative;
	display: inline-block;
	font-size: 36px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
	cursor: pointer;
	touch-action: none;
	outline: none; /* no focus box, per request */
}
.gws-si-track:focus,
.gws-si-track:focus-visible { outline: none; box-shadow: none; }
.gws-si-bg { color: #d6d8dc; }
.gws-si-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--gws-star, #f5b301);
	width: 0;
	pointer-events: none;
	transition: width .08s ease;
}
.gws-si-num { font-size: 15px; color: var(--gws-muted); min-width: 48px; }

/* Honeypot — hide from humans, keep in DOM for bots. */
.gws-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}



/* ---------- Responsive ---------- */
@media ( max-width: 767px ) {
.tcb-style-wrap blockquote {
     font-size: 16px;
}
}
@media ( max-width: 480px ) {
	.gws-slider .gws-card { flex-basis: 80vw; max-width: 80vw; }
	.gws-modal { padding: 12px; }
	.gws-modal__box { padding: 20px 16px 18px; border-radius: 16px; max-height: 92vh; }
	.gws-modal .gws-q { padding-right: 34px; }
	.gws-yesno { flex-wrap: wrap; }
	.gws-step--satisfied .gws-yesno .gws-btn { flex: 1 1 120px; max-width: none; }
}
