/* Salt & Crystal – Discover Your Stone popup */
.scsp-overlay {
	--scsp-gold: #c68739;
	--scsp-gold-dark: #a86f2a;
	--scsp-ink: #2a2622;
	--scsp-muted: #7f756c;
	--scsp-cream: #f3eee8;
	--scsp-sand: #f1e7da;
	--scsp-paper: #fcfaf8;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(42, 38, 34, .55);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.scsp-overlay.is-open { opacity: 1; visibility: visible; }

.scsp-modal {
	position: relative;
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	width: 100%;
	max-width: 760px;
	background: var(--scsp-paper);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(42, 38, 34, .35);
	transform: translateY(18px) scale(.97);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	color: var(--scsp-ink);
}
.scsp-overlay.is-open .scsp-modal { transform: none; }
.scsp-modal.scsp-noimg { grid-template-columns: 1fr; max-width: 480px; }

.scsp-media { position: relative; background: var(--scsp-sand); min-height: 100%; }
.scsp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scsp-badge {
	position: absolute; left: 18px; bottom: 18px;
	width: 54px; height: 54px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(252, 250, 248, .92);
	color: var(--scsp-gold);
	font-family: "Playfair Display", Georgia, serif; font-size: 15px; font-weight: 700;
	box-shadow: 0 6px 18px rgba(42, 38, 34, .18);
}

.scsp-body {
	padding: 52px 44px 40px;
	text-align: center;
	background:
		radial-gradient(circle at 100% 0, rgba(198, 135, 57, .10), transparent 45%),
		var(--scsp-paper);
}
.scsp-eyebrow {
	margin: 0 0 12px;
	font-size: 12px; font-weight: 700;
	letter-spacing: 2.2px; text-transform: uppercase;
	color: var(--scsp-gold);
}
.scsp-title {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 38px; line-height: 1.1; font-weight: 700;
	color: var(--scsp-ink);
}
.scsp-title em { font-style: italic; color: var(--scsp-gold); }

.scsp-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; }
.scsp-divider::before, .scsp-divider::after { content: ""; width: 38px; height: 1px; background: rgba(198, 135, 57, .5); }
.scsp-divider i { width: 7px; height: 7px; background: var(--scsp-gold); transform: rotate(45deg); }

.scsp-text { margin: 0 0 28px; font-size: 15.5px; line-height: 1.65; color: var(--scsp-muted); }

.scsp-btn {
	display: inline-block;
	padding: 15px 38px;
	border-radius: 999px;
	background: var(--scsp-gold);
	color: #fff !important;
	font-size: 13px; font-weight: 700;
	letter-spacing: 1.6px; text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(198, 135, 57, .35);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.scsp-btn:hover, .scsp-btn:focus-visible { background: var(--scsp-gold-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(198, 135, 57, .4); }

.scsp-later {
	display: block; margin: 16px auto 0; padding: 4px 8px;
	background: none; border: 0; cursor: pointer;
	font: inherit; font-size: 13px; color: var(--scsp-muted);
	text-decoration: underline; text-underline-offset: 3px;
}
.scsp-later:hover { color: var(--scsp-ink); }

.scsp-close {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid rgba(42, 38, 34, .12);
	background: rgba(252, 250, 248, .9);
	color: var(--scsp-ink); font-size: 22px; line-height: 1;
	cursor: pointer; transition: background .2s, color .2s;
}
.scsp-close:hover { background: var(--scsp-ink); color: #fff; }

body.scsp-lock { overflow: hidden; }

@media (max-width: 640px) {
	.scsp-overlay { align-items: flex-end; padding: 0; }
	.scsp-modal { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; transform: translateY(100%); }
	.scsp-media { height: 190px; min-height: 0; }
	.scsp-body { padding: 30px 24px 28px; }
	.scsp-title { font-size: 30px; }
	.scsp-btn { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.scsp-overlay, .scsp-modal { transition: none; }
}

/* ---------- Floating "Find My Stone" button (bottom right) ---------- */
.scsp-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 400; /* below the theme's cart drawer (500/600) */
	display: inline-flex;
	align-items: center;
	padding: 13px 24px;
	border-radius: 4px;
	background: #c68739;
	color: #fff !important;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(42, 38, 34, .22);
	animation: scsp-fab-in .5s cubic-bezier(.2, .8, .2, 1) .8s both;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.scsp-fab:hover,
.scsp-fab:focus-visible {
	background: #a86f2a;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(42, 38, 34, .28);
}
body.scsp-lock .scsp-fab { opacity: 0; pointer-events: none; }

@keyframes scsp-fab-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
	.scsp-fab { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 12px; letter-spacing: 1.2px; }
}

@media (prefers-reduced-motion: reduce) {
	.scsp-fab { animation: none; transition: none; }
}
