/**
 * Sugarshots Custom Bakes — scoped frontend styles.
 * All selectors are namespaced with .ss-custom-bakes- to avoid theme conflicts.
 *
 * Deliberately theme-agnostic: no font-family, text color, or background
 * color is set anywhere in this file. Typography and color are inherited
 * from the active theme; `currentColor` and `transparent` are used for the
 * few borders/backgrounds this layout needs so they automatically match
 * whatever color scheme the theme applies (including dark themes).
 */

.ss-custom-bakes-wrapper {
	--sscb-radius: 6px;
	--sscb-max-width: 1140px;

	box-sizing: border-box;
	padding: 48px 20px 80px;
}

.ss-custom-bakes-wrapper *,
.ss-custom-bakes-wrapper *::before,
.ss-custom-bakes-wrapper *::after {
	box-sizing: inherit;
}

.ss-custom-bakes-wrapper section {
	max-width: var(--sscb-max-width);
	margin: 0 auto;
	padding: 56px 0;
}

/* Section titles */
.ss-custom-bakes-section-title {
	margin: 0 0 32px;
	text-align: center;
}

/* Hero */
.ss-custom-bakes-hero {
	text-align: center;
	padding-top: 24px;
}

.ss-custom-bakes-title {
	margin: 0 0 16px;
}

.ss-custom-bakes-subtitle {
	max-width: 640px;
	margin: 0 auto 14px;
}

.ss-custom-bakes-description {
	max-width: 620px;
	margin: 0 auto 32px;
	opacity: 0.8;
}

/* CTA buttons — visual styling (color, padding, radius) comes from the
   theme's own .button / .button.alt classes added in the markup; only
   group layout lives here. */
.ss-custom-bakes-cta-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.ss-custom-bakes-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

/* Examples grid */
.ss-custom-bakes-example-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.ss-custom-bakes-card {
	background: transparent;
	border-radius: var(--sscb-radius);
	overflow: hidden;
	border: 1px solid currentColor;
}

.ss-custom-bakes-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ss-custom-bakes-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ss-custom-bakes-card-image--placeholder {
	width: 100%;
	height: 100%;
	background: currentColor;
	opacity: 0.06;
}

.ss-custom-bakes-card-body {
	padding: 18px 20px 22px;
}

.ss-custom-bakes-card-title {
	margin: 0 0 8px;
}

.ss-custom-bakes-card-desc {
	margin: 0 0 12px;
	opacity: 0.8;
}

.ss-custom-bakes-tag,
.ss-custom-bakes-tag-list {
	display: inline-block;
}

.ss-custom-bakes-tag {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	border: 1px solid currentColor;
	background: transparent;
	margin: 0 6px 6px 0;
}

.ss-custom-bakes-empty {
	text-align: center;
	font-style: italic;
	opacity: 0.8;
	padding: 24px 0;
}

/* Customization options */
.ss-custom-bakes-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px;
}

.ss-custom-bakes-option-group-title {
	margin: 0 0 12px;
}

.ss-custom-bakes-option-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-custom-bakes-option-list li {
	padding: 6px 0;
	opacity: 0.8;
	border-bottom: 1px dashed currentColor;
}

.ss-custom-bakes-option-list li:last-child {
	border-bottom: none;
}

/* Process */
.ss-custom-bakes-process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
}

.ss-custom-bakes-process-list li {
	text-align: center;
	padding: 20px 14px;
	background: transparent;
	border-radius: var(--sscb-radius);
	border: 1px solid currentColor;
}

.ss-custom-bakes-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	border-radius: 50%;
	border: 2px solid currentColor;
}

/* Notes */
.ss-custom-bakes-notes-list {
	max-width: 680px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.ss-custom-bakes-notes-list li {
	position: relative;
	padding: 10px 0 10px 24px;
	opacity: 0.8;
	border-bottom: 1px solid currentColor;
}

.ss-custom-bakes-notes-list li::before {
	content: "•";
	position: absolute;
	left: 4px;
}

/* Final CTA */
.ss-custom-bakes-final-cta {
	text-align: center;
	background: transparent;
	border-radius: var(--sscb-radius);
	border: 1px solid currentColor;
	padding: 48px 24px;
}

.ss-custom-bakes-final-cta p {
	max-width: 560px;
	margin: 0 auto 24px;
	opacity: 0.8;
}

/* Floating button — visual styling comes from the theme's .button.alt
   class added in the markup; only fixed positioning lives here. */
.ss-custom-bakes-floating-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
	transition: transform 0.15s ease;
}

.ss-custom-bakes-floating-btn:hover {
	transform: translateY(-2px) scale(1.03);
}

/* Responsive tweaks (layout only) */
@media (max-width: 600px) {
	.ss-custom-bakes-wrapper {
		padding: 32px 14px 64px;
	}

	.ss-custom-bakes-wrapper section {
		padding: 40px 0;
	}

	.ss-custom-bakes-floating-btn {
		bottom: 14px;
		right: 14px;
	}
}

/* Reduced motion: !important is intentional here — it must override the
   transform transitions above unconditionally for users who request
   reduced motion, regardless of selector specificity elsewhere. */
@media (prefers-reduced-motion: reduce) {
	.ss-custom-bakes-wrapper * {
		transition: none !important;
	}
}
