/**
 * Shuffleboard customization panel — scoped to .rs-sb-options only.
 */

.rs-sb-options {
	--rs-sb-ink: #1a1612;
	--rs-sb-muted: #6b6258;
	--rs-sb-line: rgba(26, 22, 18, 0.12);
	--rs-sb-gold: #b08d57;
	--rs-sb-gold-soft: rgba(176, 141, 87, 0.18);
	--rs-sb-surface: #f7f3ee;
	margin: 1.25rem 0 1.5rem;
	padding: 1.25rem 1.15rem 1.35rem;
	border: 1px solid var(--rs-sb-line);
	border-radius: 14px;
	background:
		radial-gradient(900px 220px at 0% 0%, var(--rs-sb-gold-soft), transparent 55%),
		linear-gradient(180deg, #fffcf8 0%, var(--rs-sb-surface) 100%);
	box-sizing: border-box;
}

.rs-sb-options__intro {
	margin-bottom: 1.15rem;
}

.rs-sb-options__title {
	margin: 0 0 0.35rem;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 600;
	color: var(--rs-sb-ink);
	line-height: 1.2;
}

.rs-sb-options__subtitle {
	margin: 0;
	color: var(--rs-sb-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.rs-sb-group {
	margin: 0 0 1.1rem;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.rs-sb-group__label {
	display: block;
	margin: 0 0 0.2rem;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rs-sb-ink);
}

.rs-sb-group__help {
	margin: 0 0 0.55rem;
	color: var(--rs-sb-muted);
	font-size: 0.86rem;
	line-height: 1.35;
}

.rs-sb-group__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

@media (min-width: 720px) {
	.rs-sb-group__choices {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.rs-sb-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0.55rem 0.55rem 0.65rem;
	border: 1px solid var(--rs-sb-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rs-sb-choice.has-thumb {
	padding-top: 0.45rem;
}

.rs-sb-choice__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #efeae3;
}

.rs-sb-choice__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rs-sb-choice__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0 0.15rem;
}

.rs-sb-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rs-sb-choice__name {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--rs-sb-ink);
	line-height: 1.25;
}

.rs-sb-choice__price {
	font-size: 0.8rem;
	color: var(--rs-sb-muted);
}

.rs-sb-choice:hover,
.rs-sb-choice:focus-within {
	border-color: rgba(176, 141, 87, 0.65);
}

.rs-sb-choice.is-selected {
	border-color: var(--rs-sb-gold);
	box-shadow: 0 0 0 1px var(--rs-sb-gold), 0 8px 18px rgba(26, 22, 18, 0.06);
	background: #fffdf9;
}

.rs-sb-summary {
	margin-top: 1.25rem;
	padding: 1rem 1rem 1.05rem;
	border-radius: 12px;
	border: 1px solid rgba(176, 141, 87, 0.35);
	background: #1a1612;
	color: #f7f1e8;
}

.rs-sb-summary__title {
	margin: 0 0 0.75rem;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.15rem;
	font-weight: 600;
}

.rs-sb-summary__list {
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
}

.rs-sb-summary__list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.28rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.88rem;
}

.rs-sb-summary__list span {
	color: rgba(247, 241, 232, 0.7);
}

.rs-sb-summary__list strong {
	font-weight: 600;
	text-align: right;
}

.rs-sb-summary__totals {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 0.85rem;
}

.rs-sb-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.92rem;
}

.rs-sb-summary__row--final {
	margin-top: 0.2rem;
	padding-top: 0.45rem;
	border-top: 1px solid rgba(212, 179, 122, 0.35);
	font-size: 1.05rem;
}

.rs-sb-summary__row--final strong {
	color: #e8c98a;
}

.rs-sb-summary__trust {
	margin: 0 0 0.4rem;
	font-size: 0.82rem;
	line-height: 1.4;
	color: rgba(247, 241, 232, 0.78);
}

.rs-sb-summary__trust--secondary {
	margin-bottom: 0;
	color: rgba(247, 241, 232, 0.62);
}

/* Soft-disable WoodMart AJAX visual on these PDPs if class remains */
body.rs-shuffleboard-pdp form.cart .single_add_to_cart_button.loading {
	pointer-events: none;
}
