.sgse-widget .sgse-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sgse-summary-loader-shell {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.94);
}

.sgse-summary-loader-shell[hidden] {
	display: none !important;
}

.sgse-summary-loader-shell .model-viewer-loader {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(420px, 70vw);
	height: 96px;
}

.sgse-summary-loader-shell .model-viewer-loader-bar {
	position: relative;
	width: 60%;
	height: 2px;
	background-color: rgba(0, 0, 0, 0.18);
}

.sgse-summary-loader-shell .model-viewer-loader-progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--sgg-template-color, #000);
}

.sgse-summary-loader-shell .model-viewer-loader-value {
	color: var(--sgg-template-color, #000);
	position: absolute;
	display: block;
	top: -35px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--sgg-heading-font, inherit);
	font-weight: var(--sgg-heading-font-weight, 700);
}

html.sgse-summary-hydrating .staggs-summary-template-actions,
html.sgse-summary-hydrating .staggs-summary-template-form,
body.sgse-summary-hydrating .staggs-summary-template-actions,
body.sgse-summary-hydrating .staggs-summary-template-form {
	visibility: hidden;
}

html.sgse-summary-ready .staggs-summary-template-actions,
html.sgse-summary-ready .staggs-summary-template-form,
body.sgse-summary-ready .staggs-summary-template-actions,
body.sgse-summary-ready .staggs-summary-template-form {
	visibility: visible;
}

.sgse-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sgse-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sgse-button-secondary {
	opacity: 0.92;
}

.sgse-save-build[disabled] {
	cursor: wait;
	opacity: 0.7;
}

.sgse-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.sgse-widget strong,
.sgse-widget p {
	text-transform: uppercase;
}

.sgse-note.is-success {
	color: #1f6f43;
}

.sgse-note.is-error {
	color: #9a3412;
}

.sgse-widget-placeholder {
	display: none !important;
}

.sgse-share-action-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.sgse-share-action-form input[type="text"] {
	flex: 1 1 240px;
	min-width: 0;
}

.sgse-share-links {
	--sgse-icon-button-size: 42px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.sgse-share-links .sgse-button {
	width: var(--sgse-icon-button-size);
	min-width: var(--sgse-icon-button-size);
	height: var(--sgse-icon-button-size);
	padding: 0;
	gap: 0;
}

.sgse-share-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
}

.sgse-share-link-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.staggs-summary-template-form .intro .product_title.sgse-product-title-has-media {
	line-height: 0;
	width: 100%;
}

.staggs-summary-template-form .intro .product_title .sgse-product-title-media {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 24px 0;
}

.staggs-summary-template-table .staggs-summary-template-table-row > :first-child,
.staggs-summary-template-totals .staggs-summary-template-table-row > :first-child {
	font-weight: 700;
}

.staggs-summary-template-table.table-3-cols .staggs-summary-template-table-row > :nth-child(3) {
	font-weight: 700;
	justify-content: flex-end;
	text-align: right;
}

.staggs-summary-template-total-price {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	background: #000 !important;
	color: #fff !important;
	border: 0 !important;
	border-left: 0 !important;
	box-shadow: none !important;
	font-weight: 700;
	text-align: right;
	padding: 14px 18px;
}

.staggs-summary-template .staggs-summary-total-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
	padding: 24px 0;
}

.staggs-summary-template .staggs-summary-total-buttons > *,
.staggs-summary-template .staggs-summary-total-buttons .button-wrapper,
.staggs-summary-template .staggs-summary-total-buttons .button-wrapper > * {
	width: 100%;
	margin: 0;
}

.staggs-summary-template .staggs-summary-total-buttons .button-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.staggs-summary-template .staggs-summary-total-buttons .staggs-back-configurator,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button .button,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button button,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button a,
.staggs-summary-template .staggs-summary-total-buttons #wcpay-woopay-button,
.staggs-summary-template .staggs-summary-total-buttons .wcpay-express-checkout-wrapper,
.staggs-summary-template .staggs-summary-total-buttons .wc-payment-request-wrapper {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button .button,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button button,
.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button a {
	text-align: center;
}

.staggs-summary-template .staggs-summary-total-buttons .staggs-cart-form-button #totalprice {
	display: none !important;
}

.staggs-summary-template .staggs-summary-total-buttons #wcpay-woopay-button .woopay-express-button {
	width: 100%;
	min-width: 0;
}

.sgse-summary-tabs-shell {
	display: block;
}

.sgse-summary-tabs-nav {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 0;
	background: #000;
	border: 1px solid #d7dce2;
	border-bottom: 0;
}

.sgse-summary-tab {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 16px 18px;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sgse-summary-tab:last-child {
	border-right: 0;
}

.sgse-summary-tab:hover,
.sgse-summary-tab:focus {
	background: #111;
	color: #fff;
}

.sgse-summary-tab.is-active {
	background: #fff;
	color: #000;
}

.sgse-summary-tab-panel[hidden] {
	display: none !important;
}

.sgse-summary-tabs-shell .sgse-summary-tab-panel {
	display: block;
}

.sgse-summary-tabs-shell .sgse-summary-customizations-table,
.sgse-summary-tabs-shell .sgse-summary-specs-table {
	margin-top: 0;
}

.sgse-summary-specs-table .staggs-summary-template-table-row > :nth-child(2) {
	flex: 1 1 auto;
}

.sgse-specs-value-cell {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.sgse-specs-value-text {
	min-width: 0;
	flex: 1 1 auto;
}

.sgse-specs-value-delta {
	flex: 0 0 auto;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.sgse-summary-specs-message {
	padding: 18px 20px;
	border: 1px solid #d7dce2;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.5;
}

@media (min-width: 992px) {
	.staggs-summary-template-row {
		align-items: flex-start;
	}

	.staggs-summary-template-gallery {
		position: sticky;
		top: 18px;
		align-self: flex-start;
		z-index: 2;
	}

	body.admin-bar .staggs-summary-template-gallery {
		top: 50px;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active {
		display: block;
		max-height: none;
		overflow: visible;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table,
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals {
		border: 1px solid #d7dce2;
		border-radius: 0;
		background: #fff;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table {
		margin-bottom: 0;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals {
		margin-top: 0 !important;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-head {
		background: #000;
		color: #fff;
		border-bottom: 1px solid #d7dce2;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-title {
		display: block;
		margin: 0;
		padding: 16px 20px 10px;
		background: #000;
		color: #fff;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row {
		padding: 0;
		align-items: stretch;
		border-bottom: 1px solid #d7dce2;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row > * {
		display: flex;
		align-items: center;
		margin: 0;
		padding: 14px 18px;
		min-width: 0;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-head .staggs-summary-template-table-row {
		background: #000;
		color: #fff;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-head .staggs-summary-template-table-row > * {
		padding-top: 12px;
		padding-bottom: 14px;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row > * + *,
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals .staggs-summary-template-table-row > * + * {
		border-left: 1px solid #d7dce2;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table.table-3-cols .staggs-summary-template-table-row > :nth-child(3) {
		font-weight: 700;
		justify-content: flex-end;
		text-align: right;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row > :first-child,
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals .staggs-summary-template-table-row > :first-child {
		background: #000;
		color: #fff;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row > :not(:first-child),
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals .staggs-summary-template-table-row > :not(:first-child) {
		background: #fff;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-total-price {
		background: #000 !important;
		color: #fff !important;
		border: 0 !important;
		border-left: 0 !important;
		box-shadow: none !important;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table .staggs-summary-template-table-row:last-child,
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-totals .staggs-summary-template-table-row {
		border-bottom: 0;
	}

	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row p,
	.staggs-summary-template-form.sgse-summary-scroll-active .staggs-summary-template-table-row strong {
		overflow-wrap: anywhere;
	}

	.staggs-summary-template-preview.sgse-preview-overlay-active {
		position: relative;
		overflow: hidden;
		width: 100%;
	}

	.staggs-summary-template-preview.sgse-preview-overlay-active > img {
		display: block;
		width: 100%;
		height: auto;
	}

	.sgse-preview-overlay {
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.sgse-preview-slot {
		position: absolute;
		pointer-events: none;
	}

	.sgse-preview-slot-top-left {
		top: 18px;
		left: 18px;
		width: min(320px, calc(50% - 30px));
	}

	.sgse-preview-slot-top-full {
		top: 18px;
		left: 18px;
		right: 18px;
	}

	.sgse-preview-slot-top-right {
		top: 18px;
		right: 18px;
		width: min(320px, calc(50% - 30px));
	}

	.sgse-preview-slot-bottom {
		left: 18px;
		right: 18px;
		bottom: 18px;
	}

	.sgse-preview-slot > .staggs-summary-template-action-widget {
		margin: 0;
		pointer-events: auto;
	}

	.sgse-preview-slot-bottom > .staggs-summary-template-action-widget {
		width: 100%;
	}

	.sgse-preview-slot-top-full > .staggs-summary-template-action-widget {
		width: 100%;
	}

	.sgse-preview-overlay .staggs-summary-template-action-widget .staggs-summary-widget-content {
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(10px);
		box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
	}

	.sgse-preview-overlay .staggs-summary-template-action-widget.share-link,
	.sgse-preview-overlay .staggs-summary-template-action-widget.share-link .staggs-summary-widget-content {
		background: transparent !important;
	}

	.sgse-preview-overlay .staggs-summary-template-action-widget[data-sgse-widget],
	.sgse-preview-overlay .staggs-summary-template-action-widget[data-sgse-widget] .staggs-summary-widget-content {
		background: transparent !important;
	}

	.sgse-preview-overlay .staggs-summary-widget-action-form {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.sgse-preview-overlay input[type="text"],
	.sgse-preview-overlay input[type="email"] {
		width: 100%;
	}

	.sgse-preview-overlay .sgse-share-action-form {
		flex-direction: row;
		align-items: center;
	}

	.sgse-preview-overlay .sgse-share-action-form input[type="text"] {
		width: auto;
	}

	.sgse-preview-slot-bottom .sgse-actions {
		justify-content: flex-start;
	}

	.staggs-summary-template-actions.sgse-actions-empty {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.sgse-actions {
		flex-direction: column;
	}

	.sgse-summary-tabs-nav {
		flex-wrap: wrap;
	}

	.sgse-summary-tab {
		flex-basis: 100%;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	}

	.sgse-summary-tab:last-child {
		border-bottom: 0;
	}

	.sgse-actions .sgse-button {
		width: 100%;
	}

	.sgse-share-action-form,
	.sgse-share-links {
		flex-direction: column;
		align-items: stretch;
	}

	.sgse-share-action-form .sgse-button,
	.sgse-share-links .sgse-button {
		width: 100%;
	}
}
