/* ==========================================================================
   SoftCoheto — SiteOrigin Page Builder Integration Styles
   Ensures seamless full-width rows, custom row surfaces, widget cards,
   and clean spacing with SiteOrigin Page Builder & Widgets Bundle.
   ========================================================================== */

/* Full-width canvas compatibility & overflow guard */
.sc-siteorigin-content,
.sc-siteorigin-content .panel-layout,
.sc-has-siteorigin .sc-entry-content>.panel-layout {
	width: 100%;
	max-width: 100%;
}

.panel-grid,
.panel-row-style,
.panel-grid-cell,
.so-panel {
	min-width: 0;
	box-sizing: border-box;
}

.panel-grid-cell,
.so-panel {
	max-width: 100%;
}

/* Reset bottom margins when using custom SoftCoheto section padding */
.panel-grid.sc-so-row {
	margin-bottom: 0 !important;
}

.panel-grid-cell .so-panel:last-child {
	margin-bottom: 0;
}

/* SoftCoheto Row Surface Presets (configured in SiteOrigin Row Styles) */
.sc-so-surface-light {
	background-color: var(--sc-surface);
}

.sc-so-surface-alt {
	background-color: var(--sc-surface-alt);
	border-top: 1px solid var(--sc-border);
	border-bottom: 1px solid var(--sc-border);
}

.sc-so-surface-dark {
	background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.20) 0%, transparent 45%), var(--sc-dark);
	color: #CBD5E1;
}

.sc-so-surface-dark h1,
.sc-so-surface-dark h2,
.sc-so-surface-dark h3,
.sc-so-surface-dark h4,
.sc-so-surface-dark .widget-title {
	color: #FFFFFF;
}

.sc-so-surface-accent {
	background: linear-gradient(135deg, #ECFDF5 0%, #EEF2FF 100%);
	border-top: 1px solid var(--sc-border);
	border-bottom: 1px solid var(--sc-border);
}

/* SoftCoheto Row Padding Presets */
.sc-so-pad-compact {
	padding-top: 40px;
	padding-bottom: 40px;
}

.sc-so-pad-normal {
	padding-top: 72px;
	padding-bottom: 72px;
}

.sc-so-pad-spacious {
	padding-top: 104px;
	padding-bottom: 104px;
}

/* Inner container width helpers inside SiteOrigin full-width stretched rows */
.sc-so-width-standard>.panel-grid-cell,
.sc-so-width-standard>.panel-row-style {
	max-width: var(--sc-container);
	margin-left: auto;
	margin-right: auto;
}

.sc-so-width-narrow>.panel-row-style {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

/* Ensure SiteOrigin standard rows align with SoftCoheto container */
.sc-siteorigin-canvas .panel-grid:not(.panel-no-style) .panel-row-style:not([data-stretch-type="full-stretched"]) {
	padding-left: 24px;
	padding-right: 24px;
}

/* Avoid double horizontal gutters when SoftCoheto widgets sit inside non-stretched rows */
.sc-siteorigin-canvas .panel-grid:not(.panel-no-style) .panel-row-style:not([data-stretch-type="full"]):not([data-stretch-type="full-stretched"]) .sc-container {
	padding-left: 0;
	padding-right: 0;
}

.sc-siteorigin-canvas .panel-grid>.panel-grid-cell {
	box-sizing: border-box;
}

/* SoftCoheto Widget Card Presets (configured in SiteOrigin Widget Styles) */
.sc-so-card-bordered {
	background: #FFFFFF;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-md);
	padding: 28px;
}

.sc-so-card-elevated {
	background: #FFFFFF;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-lg);
	padding: 30px;
	box-shadow: var(--sc-shadow-md);
}

.sc-so-card-pro {
	background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);
	border: 2px solid var(--sc-accent);
	border-radius: var(--sc-radius-lg);
	padding: 30px;
	box-shadow: var(--sc-shadow-md);
}

/* Clean typography for native SiteOrigin Editor / Features / Button widgets */
.so-widget-sow-editor,
.widget_text {
	max-width: 100%;
	overflow-wrap: break-word;
}

.so-widget-sow-editor h2,
.widget_text h2 {
	font-size: clamp(24px, 2.8vw, 34px);
	margin-bottom: 12px;
}

.so-widget-sow-editor h3,
.widget_text h3 {
	font-size: 20px;
	margin-bottom: 8px;
}

.so-widget-sow-button .ow-button-base a {
	border-radius: 10px !important;
	font-family: var(--sc-font-heading) !important;
	font-weight: 700 !important;
	max-width: 100%;
	box-sizing: border-box;
}

/* Sticky Buy Bar for Pro Landing Template */
.sc-sticky-buybar {
	position: sticky;
	bottom: 0;
	z-index: 800;
	background: rgba(15, 23, 42, 0.96);
	backdrop-filter: blur(10px);
	color: #FFFFFF;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 12px 0;
	width: 100%;
	max-width: 100%;
}

.sc-sticky-buybar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.sc-sticky-buybar__title {
	font-family: var(--sc-font-heading);
	font-weight: 700;
	font-size: 15px;
	min-width: 0;
}

.sc-sticky-buybar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

@media (max-width: 780px) {
	.sc-so-pad-compact {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.sc-so-pad-normal {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.sc-so-pad-spacious {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.sc-so-card-bordered,
	.sc-so-card-elevated,
	.sc-so-card-pro {
		padding: 20px;
	}
}

@media (max-width: 640px) {
	.sc-siteorigin-canvas .panel-grid:not(.panel-no-style) .panel-row-style:not([data-stretch-type="full-stretched"]) {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sc-sticky-buybar {
		padding: 10px 0;
	}

	.sc-sticky-buybar__inner {
		gap: 10px;
	}
}

@media (max-width: 540px) {
	.sc-sticky-buybar__inner {
		flex-wrap: nowrap;
	}

	.sc-sticky-buybar__title {
		flex: 1 1 auto;
		font-size: 14px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sc-sticky-buybar__secondary {
		display: none;
	}

	.sc-sticky-buybar__actions .sc-btn {
		padding: 9px 14px;
		font-size: 13px;
		white-space: nowrap;
	}
}