/* Shellback Reviews — tweak the variables below to match the site. */
.sb-carousel,
.sb-form-wrap {
	--sb-star-on: #000;
	--sb-star-off: #d4d4d8;
	--sb-text: inherit;
	--sb-card-bg: #fff;
	--sb-radius: 24px;
	--sb-border: #d4d4d8;
	--sb-font: 'Outfit', sans-serif;
	--sb-gap: 24px;
	--sb-accent: #000;
}

/* ---------- Carousel ---------- */
.sb-carousel { position: relative; width: 100%; }

.sb-track {
	display: flex;
	gap: var(--sb-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 6px 4px 18px;
}
.sb-track::-webkit-scrollbar { display: none; }

.sb-card {
	flex: 0 0 calc((100% - (var(--sb-gap) * 2)) / 3);
	scroll-snap-align: start;
	box-sizing: border-box;
	background: var(--sb-card-bg);
	border-radius: var(--sb-radius);
	padding: 18px 18px 22px;
	border: 1px solid var(--sb-border);
	color: var(--sb-text);
	min-height: 260px;
	display: flex;
	flex-direction: column;
}

.sb-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sb-avatar { width: 50px; height: 50px; border-radius: 50% !important; object-fit: cover; flex: none; aspect-ratio: 1 / 1; }
.sb-card__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb-stars { font-size: 20px; line-height: 1; letter-spacing: 1px; }
.sb-stars .is-on { color: var(--sb-star-on); }
.sb-stars .is-off { color: var(--sb-star-off); }

.sb-card__name { margin: 0; font-family: var(--sb-font); font-size: 16px; font-weight: 600; line-height: 1.3; }
.sb-card__text { margin: 0; font-family: var(--sb-font); font-size: 16px; line-height: 1.5; flex: 1; }
.sb-card__dest { margin: 0 0 10px; font-weight: 700; font-size: 16px; font-family: var(--sb-font); }
.sb-card__loc { margin: 16px 0 0; font-size: 14px; font-weight: 700; opacity: .65; }

.sb-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; }
.sb-dots:empty { display: none; }
.sb-dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: var(--sb-star-off); cursor: pointer; transition: background .2s, transform .2s;
}
.sb-dot:hover { background: #a1a1aa; }
.sb-dot.is-active { background: var(--sb-accent); transform: scale(1.25); }
.sb-dot:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.sb-empty { text-align: center; }

@media (max-width: 1024px) {
	.sb-card { flex-basis: calc((100% - var(--sb-gap)) / 2); }
}
@media (max-width: 640px) {
	.sb-card { flex-basis: 88%; }
}

/* ---------- Form ---------- */
.sb-form-wrap { max-width: 640px; margin: 0 auto; }
.sb-form { display: flex; flex-direction: column; gap: 18px; }
.sb-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.sb-field label, .sb-field legend { font-weight: 600; font-size: 15px; padding: 0; }
.sb-field label span, .sb-field legend span { color: #c0262d; }
.sb-field label small { font-weight: 400; opacity: .65; }
.sb-field input[type="text"],
.sb-field textarea {
	width: 100%; box-sizing: border-box;
	padding: 12px 14px; font: inherit;
	border: 1px solid #d4d4d8; border-radius: 10px; background: #fff;
}
.sb-field input[type="text"]:focus,
.sb-field textarea:focus { outline: 2px solid var(--sb-accent); outline-offset: 1px; }
.sb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .sb-row { grid-template-columns: 1fr; } }

/* Star picker: radios reversed so hover/checked fills leftwards */
.sb-star-radios { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.sb-star-radios input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sb-star-radios label { font-size: 34px; line-height: 1; cursor: pointer; color: var(--sb-star-off); transition: color .12s; }
.sb-star-radios input:checked ~ label,
.sb-star-radios label:hover,
.sb-star-radios label:hover ~ label { color: var(--sb-star-on); }
.sb-star-radios input:focus-visible + label { outline: 2px solid var(--sb-accent); border-radius: 4px; }
.sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sb-submit {
	align-self: flex-start;
	padding: 13px 28px; border: 0; border-radius: 999px;
	background: var(--sb-accent); color: #fff;
	font: inherit; font-weight: 600; cursor: pointer;
}
.sb-submit:hover { opacity: .85; }

.sb-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.sb-notice--ok { background: #e6f6ec; color: #0a6b2b; }
.sb-notice--err { background: #fdecec; color: #9b1c1c; }

/* Character counter */
.sb-counter { font-size: 14px; opacity: .8; }
.sb-counter .sb-count { font-weight: 700; }
.sb-counter.is-low { color: #b45309; opacity: 1; }
.sb-counter.is-zero { color: #c0262d; opacity: 1; }

/* Photo adjuster */
.sb-photo-error { color: #9b1c1c; font-size: 14px; }
.sb-photo-error:empty { display: none; }
.sb-crop-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.sb-crop-wrap[hidden] { display: none; }
.sb-crop-hint { margin: 0; font-size: 14px; opacity: .8; }
.sb-crop {
	position: relative; width: 220px; height: 220px; flex: none;
	border-radius: 50%; overflow: hidden; background: #e5e7eb;
	border: 1px solid var(--sb-border); cursor: grab; touch-action: none; user-select: none;
}
.sb-crop.is-drag { cursor: grabbing; }
.sb-crop img { position: absolute; max-width: none !important; height: auto; pointer-events: none; -webkit-user-drag: none; }
.sb-crop-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sb-zoom-label { font-size: 14px; font-weight: 600; }
.sb-zoom { width: 160px; accent-color: var(--sb-accent); }
.sb-remove {
	padding: 8px 16px; border: 1px solid #c0262d; border-radius: 999px;
	background: #fff; color: #c0262d; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.sb-remove:hover { background: #c0262d; color: #fff; }

/* Honeypot */
.sb-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
