:root{
	--sc-designer-footer-height: 54px;
	--sc-designer-normal-height: 680px;
}

/* Keep WooCommerce details (tabs / related products) visible even when the designer is ON. */

/* When the designer is ON, the hero should stop being 2 columns. */
body.sc-designer-on .single-product-layout__hero{
	grid-template-columns: 1fr;
}

/* Fullscreen focus mode: prevent horizontal scrollbar caused by minor overflows. */
body.is-browser-fullscreen.sc-designer-on .single-product-layout.is-focus-mode{
	overflow-x: hidden;
}

/* Ensure hidden attribute works (author CSS must not override it). */
.sc-designer-default-shell[hidden],
.sc-designer-shell[hidden]{
	display:none !important;
}

/* IMPORTANT: Don't change the theme's 2-column product layout.
   These wrappers must not create layout boxes, otherwise the gallery/summary stack. */
.sc-designer-root,
.sc-designer-default-shell{
	display: contents;
}

.sc-designer-shell{
	display:block;
	grid-column: 1 / -1;
	position: relative;
	z-index: 10;
	isolation: isolate;
}

/* Related templates (only visible when Designer is ON) */
body:not(.sc-designer-on) .sc-related-templates{
	display:none;
}

.sc-related-templates{
	margin-top: 22px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--sc-radius-lg);
	padding: 18px;
}

.sc-related-templates__title{
	margin: 0 0 14px 0;
	font-size: 16px;
	font-weight: 800;
	color: rgba(15, 23, 42, 0.9);
}

.sc-related-templates__grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 22px;
}

.sc-related-templates__grid.is-count-1{ grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sc-related-templates__grid.is-count-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-related-templates__grid.is-count-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-related-templates__grid.is-count-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sc-related-template-card{
	display: block;
	text-decoration: none;
	color: inherit;
}

.sc-related-template-card__thumb{
	display:block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.sc-related-template-card__thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sc-related-template-card__label{
	display:block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	color: rgba(15, 23, 42, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-related-template-card.is-active .sc-related-template-card__thumb{
	border-color: #00ff1b;
	box-shadow: 0 0 0 1px rgba(0, 255, 27, 0.35);
}

.sc-related-templates__pagination{
	display:flex;
	justify-content:center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.sc-related-templates__page{
	min-width: 34px;
	height: 34px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #ffffff;
	color: rgba(15, 23, 42, 0.9);
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
}

.sc-related-templates__page.is-current{
	border-color: rgba(15, 23, 42, 0.22);
	background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 780px){
	.sc-related-templates{
		padding: 14px;
	}

	.sc-related-templates__grid{
		display: flex;
		overflow-x: auto;
		gap: 12px;
		padding-bottom: 6px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.sc-related-templates__grid::-webkit-scrollbar{
		display: none;
		height: 0;
	}

	.sc-related-template-card{
		flex: 0 0 calc(50% - 6px);
	}
}

.sc-designer-layout{
	display:grid;
	grid-template-columns: minmax(0, 1fr) 470px;
	gap: 28px;
	align-items: stretch;
}

.sc-designer-canvas{
	position:relative;
	background: #d1d5db;
	border-radius: var(--sc-radius-lg);
	border: 1px solid rgba(229, 231, 235, 0.9);
	box-shadow: var(--sc-shadow-soft);
	padding: 0;
	display:flex;
	flex-direction:column;
	min-height: 520px;
	overflow: hidden;
}

.sc-designer-surface-wrap{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 0px;
	background: transparent;
	position: relative;
	margin: 0px;
}

.sc-designer-surface{
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	will-change: transform;
	overflow: hidden;
}

.sc-designer-floating-credits{
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--sc-designer-footer-height) + 8px);
	text-align: right;
	padding: 0 12px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: #ffffff;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	/* Keep above the footer bar but still under the sticky site header. */
	z-index: 10;
	/* Fallback contrast: readable on light/dark backgrounds. */
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.85),
		0 0 1px rgba(0, 0, 0, 0.85);
}

.sc-designer__layers{
	position:relative;
	width: 100%;
	height: 100%;
	display:flex;
	align-items:center;
	justify-content:center;
}

.sc-designer__layer{
	position:absolute;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
}

/* Frontend sidebar must never show canvas background behind it */
#sc_frontend_sidebar,
#sc_frontend_sidebar_content{
	background-color: rgb(195, 196, 198) !important;
	background-image: none !important;
}

#sc_frontend_sidebar{
	z-index: 1000004 !important;
}

/* Sliding panel close buttons (Frontend) */
#sc_frontend_sidebar_close {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 22px !important;
	line-height: 1 !important;
	border-radius: 10px !important;
	color: #111 !important;
	background: rgba(255, 255, 255, 0.75) !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	cursor: pointer !important;
}

#sc_frontend_sidebar_close:hover {
	background: rgba(255, 255, 255, 0.95) !important;
	border-color: rgba(0, 0, 0, 0.24) !important;
}

#sc_frontend_sidebar_close:focus {
	outline: 2px solid rgba(0, 0, 0, 0.25) !important;
	outline-offset: 2px !important;
}

/* Frontend sidebar settings rows */
#sc_frontend_sidebar_content .sc-settings-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
}

/* Designer: Upload Photo panel */
#sc_frontend_sidebar_content .sc-photo-gridwrap {
	max-height: 280px;
	overflow-y: auto;
	padding-right: 2px;
	scrollbar-width: thin;
}

/* Thumb buttons are real <button>s; remove UA padding that shrinks the image. */
#sc_frontend_sidebar_content .sc-photo-thumb{
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

#sc_frontend_sidebar_content .sc-photo-gridwrap::-webkit-scrollbar {
	width: 6px;
}

#sc_frontend_sidebar_content .sc-photo-gridwrap::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.22);
	border-radius: 10px;
}

/* Designer: Layers panel list scrollbar (app-like) */
.sc-designer-layers-list{
	padding-right: 4px;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.sc-designer-layers-list::-webkit-scrollbar{
	width: 4px;
}

.sc-designer-layers-list::-webkit-scrollbar-track{
	background: transparent;
}

.sc-designer-layers-list::-webkit-scrollbar-button{
	width: 0;
	height: 0;
	display: none;
}

.sc-designer-layers-list::-webkit-scrollbar-thumb{
	background: rgba(0, 0, 0, 0.26);
	border-radius: 999px;
}

.sc-designer-layers-list:hover::-webkit-scrollbar-thumb{
	background: rgba(0, 0, 0, 0.36);
}

.sc-layer-search-wrap{
	position: relative;
	flex: 0 0 auto;
	margin: 0 0 10px;
}

.sc-layer-search-input{
	width: 100%;
	height: 28px;
	padding: 0 32px 0 8px;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 28px;
	outline: none;
	box-sizing: border-box;
}

.sc-layer-search-input::placeholder{
	color: rgba(255, 255, 255, 0.82);
	opacity: 1;
}

.sc-layer-search-input:focus{
	background: rgba(0, 0, 0, 0.34);
	box-shadow: inset 0 0 0 2px rgba(18, 213, 47, 0.72);
}

.sc-designer-layers-list [data-sc-layer-uid].sc-layer-search-hidden,
.sc-designer-layers-list [data-sc-layer-uid][hidden]{
	display: none !important;
}

.sc-layer-search-icon{
	position: absolute;
	right: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 0 3px 3px 0;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 17px;
	line-height: 28px;
	text-align: center;
	pointer-events: auto;
	cursor: pointer;
}

.sc-layer-search-empty{
	padding: 12px 6px;
	color: rgba(0, 0, 0, 0.62);
	font-size: 12px;
	font-weight: 700;
}

#sc_frontend_sidebar_content .sc-photo-thumb {
	position: relative;
}

#sc_frontend_sidebar_content .sc-photo-thumb .sc-photo-badge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	font-size: 7px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1;
	padding: 2px 4px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	pointer-events: none;
	text-transform: uppercase;
}

#sc_frontend_sidebar_content .sc-photo-thumb .sc-photo-delete{
	left: 2px;
	top: 2px;
}

.sc-designer__layer svg{
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sc-designer-canvas-footer {
	position: relative;
    margin-top: auto;
    border-radius: 0 0 var(--sc-radius-lg) var(--sc-radius-lg);
	background: #1f2937;
	background-clip: padding-box;
	overflow: hidden;
    color: #ffffff;
    padding: 0px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 55px;
	z-index: 1000006;
	border-top: 3px solid #00ff1b;
}


.sc-designer-actions {
	display: flex;
	gap: 2px;
	align-items: flex-end;
	min-width: 0;
}

.sc-designer-action__icon{
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
}

.sc-designer-action{
	appearance:none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0;
	position: relative;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap: 2px;
	min-width: 64px;
	cursor:pointer;
}

@media (min-width: 981px){
	body.sc-designer-on #sc_save_my_design_btn{ top: 2px !important; }
	body.sc-designer-on #sc_move_select_btn{ top: 50px !important; }
	body.sc-designer-on #sc_hand_design_btn{ top: 98px !important; }
	body.sc-designer-on #sc_crop_tool_btn{ top: 146px !important; }
	body.sc-designer-on #sc_marquee_tool_btn{ top: 194px !important; }
	body.sc-designer-on #sc_transparency_tool_btn{ top: 242px !important; }
	body.sc-designer-on #sc_remove_bg_btn{ top: 290px !important; }
	body.sc-designer-on #sc_pen_tools_btn{ top: 338px !important; }
	body.sc-designer-on #sc_paint_brush_btn{ top: 386px !important; }
	body.sc-designer-on #sc_text_tools_btn{ top: 434px !important; }
	body.sc-designer-on #sc_layers_design_btn{ top: 482px !important; }
	body.sc-designer-on #sc_background_design_btn{ top: 530px !important; }

	body.sc-designer-on .sc-designer-canvas > .sc-designer-action[aria-pressed="true"]::after,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action.is-active::after,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action.is-on::after,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action[data-sc-active="true"]::after,
	body.sc-designer-on .sc-designer-actions .sc-designer-action[aria-pressed="true"]::after,
	body.sc-designer-on .sc-designer-actions .sc-designer-action.is-active::after,
	body.sc-designer-on .sc-designer-actions .sc-designer-action.is-on::after,
	body.sc-designer-on .sc-designer-actions .sc-designer-action[data-sc-active="true"]::after{
		content: "";
		position: absolute;
		top: 2px;
		right: calc(50% - 20px);
		width: 10px;
		height: 10px;
		border-radius: 999px;
		background: #00ff1b;
		box-shadow: 0 0 0 2px rgba(12, 18, 32, 0.24), 0 1px 4px rgba(0, 0, 0, 0.22);
		pointer-events: none;
		z-index: 2;
	}
}

body.sc-designer-on #sc_pen_tools_menu .sc-pen-item{
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

body.sc-designer-on #sc_pen_tools_menu .sc-pen-item img{
	filter: brightness(0) invert(1);
	opacity: 0.96 !important;
}

body.sc-designer-on #sc_pen_tools_menu .sc-pen-item[aria-selected="true"],
body.sc-designer-on #sc_pen_tools_menu .sc-pen-item.is-active{
	background: rgba(34, 197, 94, 0.22) !important;
	color: #ffffff !important;
}

.sc-designer-action .dashicons{
	width: 24px;
	height: 24px;
	font-size: 24px;
	color: rgba(255, 255, 255, 0.9);
}

.sc-designer-action__label{
	font-weight: 900;
	font-size: 7px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.95;
}

.sc-designer-btn{
	appearance: none;
	border: 1px solid rgb(86 86 86 / 70%);
	background: rgb(255 255 255);
	color: #111;
	border-radius: 10px;
	height: 32px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.sc-designer-btn:disabled{
	opacity: 0.45;
	cursor: default;
}

/* Legacy selectors kept for safety (action buttons are now .sc-designer-action). */
.sc-designer-actions button,
.sc-designer-zoom button{
	appearance:none;
	border:0;
	background:transparent;
	color: inherit;
	font-weight: 900;
	font-size: 12px;
	letter-spacing: 0.06em;
	padding: 6px 8px;
	border-radius: 10px;
	cursor:pointer;
	transition: background 0.15s ease;
}

.sc-designer-actions button:hover,
.sc-designer-zoom button:hover{
	background: rgba(255,255,255,0.12);
}

.sc-designer-zoom{
	display:flex;
	align-items:center;
	gap: 6px;
}

.sc-designer-zoom button{
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.sc-designer-zoom button:disabled{
	opacity: 0.45;
	cursor: default;
}

/* Undo/Redo live in the zoom row; keep them compact like zoom buttons. */
.sc-designer-zoom #sc_undo_design_btn,
.sc-designer-zoom #sc_redo_design_btn{
	min-width: 28px;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	padding: 0;
	border-radius: 999px;
	flex-direction: row;
	gap: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Keep undo/redo visually separate from the zoom controls. */
.sc-designer-zoom #sc_redo_design_btn{
	margin-right: 10px;
}

.sc-designer-zoom #sc_undo_design_btn .sc-designer-action__icon,
.sc-designer-zoom #sc_redo_design_btn .sc-designer-action__icon{
	margin: 0 !important;
	display: block;
}

.sc-designer-zoom #sc_undo_design_btn .sc-designer-action__label,
.sc-designer-zoom #sc_redo_design_btn .sc-designer-action__label{
	display: none;
}

.sc-designer-zoom__label{
	min-width: 54px;
	text-align:center;
	font-weight:800;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.sc-designer-price{
	margin-left: 14px;
	font-weight: 900;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: #00ff1b;
}

.sc-designer-more-details{
	display: none;
}

/* Clean Professional CAD Dimensions */
.sc-cad-dimension-w, .sc-cad-dimension-h {
	position: absolute;
	pointer-events: none;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	/* Avoid relying on flex gap: html2canvas often ignores it, causing the ruler line
	   to render as a continuous line through the label in exports. */
	gap: 0;
}

.sc-cad-dimension-w {
	top: calc(100px - (35px * var(--sc-iz, 1))); 
	left: 100px; 
	right: 0; 
	height: calc(15px * var(--sc-iz, 1));
	border-left: calc(1.5px * var(--sc-iz, 1)) solid #555;
	border-right: calc(1.5px * var(--sc-iz, 1)) solid #555;
}

.sc-cad-dimension-w::before, .sc-cad-dimension-w::after {
	content: '';
	flex: 1 1 auto;
	border-bottom: calc(1.5px * var(--sc-iz, 1)) solid #555;
}

.sc-cad-dimension-h {
	left: calc(100px - (35px * var(--sc-iz, 1))); 
	top: 100px; 
	bottom: 0; 
	width: calc(15px * var(--sc-iz, 1));
	flex-direction: column;
	border-top: calc(1.5px * var(--sc-iz, 1)) solid #555;
	border-bottom: calc(1.5px * var(--sc-iz, 1)) solid #555;
}

.sc-cad-dimension-h::before, .sc-cad-dimension-h::after {
	content: '';
	flex: 1 1 auto;
	border-right: calc(1.5px * var(--sc-iz, 1)) solid #555;
}

.sc-cad-dimension-w span, .sc-cad-dimension-h span {
	font-family: 'Inter', 'Roboto Mono', 'Consolas', sans-serif;
	font-size: calc(13px * var(--sc-iz, 1));
	font-weight: 500;
	letter-spacing: 0.05em;
	color: #555;
	background: transparent;
	line-height: 1;
}

.sc-cad-dimension-w span {
	margin: 0 calc(8px * var(--sc-iz, 1));
}

.sc-cad-dimension-h span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	margin: calc(8px * var(--sc-iz, 1)) 0;
}


.sc-designer-controls{
	position: sticky;
	top: 156px;
	z-index: 10;
	height: 100%;
	min-height: 0;
	display:flex;
	flex-direction:column;
	gap: 0px;
	max-height: calc(100vh - 220px);
}

.sc-product-details-title{
	margin: 0;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--sc-color-secondary);
}

.sc-designer-panel__head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.sc-designer-panel__body{
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

@media (min-width: 981px) {
	/* In fullscreen focus mode, match the OFF UI behavior: left + right columns share the same height. */
	body.is-browser-fullscreen.sc-designer-on .single-product-layout.is-focus-mode .sc-designer-controls{
		position: static;
		top: auto;
		max-height: none;
		height: var(--sc-product-gallery-height, auto);
		max-height: var(--sc-product-gallery-height, none);
	}

	body.is-browser-fullscreen.sc-designer-on .single-product-layout.is-focus-mode .sc-designer-canvas{
		height: var(--sc-product-gallery-height, auto);
		max-height: var(--sc-product-gallery-height, none);
		min-height: 0;
	}

	body.is-browser-fullscreen.sc-designer-on .single-product-layout.is-focus-mode .sc-designer-layout{
		height: var(--sc-product-gallery-height, auto);
		max-height: var(--sc-product-gallery-height, none);
	}

	body.is-browser-fullscreen.sc-designer-on .single-product-layout.is-focus-mode .sc-designer-controls .sc-designer-panel{
		flex: 1 1 auto;
		overflow: hidden;
		background: #ffffff;
		border: 0;
		box-shadow: none;
		border-radius: 30px 30px 0px 0px !important;
		padding: 28px;
		display: flex;
		flex-direction: column;
		height: 100%;
		max-height: 100%;
	}
}

/* In designer ON mode, make the right controls column a full-height card (like the OFF summary card)
   with internal scrolling, so the footer position/shape matches exactly. */
@media (min-width: 981px) {
	body:not(.is-browser-fullscreen).sc-designer-on .sc-designer-controls{
		height: var(--sc-designer-normal-height);
		max-height: var(--sc-designer-normal-height);
		gap: 0;
		background: var(--sc-color-surface);
		border-radius: var(--sc-radius-lg);
		box-shadow: var(--sc-shadow-soft);
		border: 1px solid rgba(229, 231, 235, 0.9);
		overflow: hidden;
	}

	body.sc-designer-on .sc-designer-controls .sc-designer-panel{
		flex: 1 1 auto;
		overflow: hidden;
		background: #ffffff;
		border: 0;
		box-shadow: none;
		border-radius: 30px 30px 0px 0px !important;
		padding: 28px;
		display: flex;
		flex-direction: column;
	}
}

.sc-designer-panel{
	position: relative;
	z-index: 1;
	background: var(--sc-color-surface);
	border-radius: var(--sc-radius-lg);
	border: 1px solid rgba(229, 231, 235, 0.9);
	box-shadow: var(--sc-shadow-soft);
	padding: 10px;
	flex: 1 1 auto;
	min-height: 0;
	overflow:hidden;
	display:flex;
	flex-direction:column;
}

.sc-designer-accordion{
	border: 1px solid var(--sc-color-border);
	border-radius: 12px;
	overflow:hidden;
	margin-bottom: 10px;
}

.sc-designer-accordion__head{
	display:grid;
	grid-template-columns: 26px 1fr 22px;
	align-items:center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--sc-color-surface-alt);
	cursor:pointer;
}

.sc-designer-accordion__num{
	width: 26px;
	height: 26px;
	display:flex;
	align-items:center;
	justify-content:center;
	border-radius: 8px;
    background: #dbdbdb;
    border: 1px solid #b8b8b8;
    font-size: 12px;
    font-weight: 900;
    color: #000000;
}

.sc-designer-accordion__title{
	font-size: 13px;
	font-weight: 900;
	color: var(--sc-color-secondary);
}

.sc-designer-accordion__head .dashicons{
	color: var(--sc-color-muted);
	display:flex;
	align-items:center;
	justify-content:center;
	transition: transform 0.18s ease;
}

.sc-designer-accordion.is-open .sc-designer-accordion__head .dashicons{
	transform: rotate(90deg);
}

.sc-designer-accordion__body{
	display:none;
	padding: 12px;
	background: var(--sc-color-surface);
}

.sc-designer-accordion.is-open .sc-designer-accordion__body{
	display:block;
}

.sc-designer-field{
	display:grid;
	gap: 6px;
	margin-bottom: 12px;
}

.sc-designer-field__label{
	font-size: 12px;
	font-weight: 800;
	color: var(--sc-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sc-designer-field__label > div{
	font-size: 10px !important;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}


	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details{
		color: #fff;
	}

	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details__label{
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72), 0 0 8px rgba(0, 0, 0, 0.42);
	}

	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details__chevrons{
		filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.68));
	}
.sc-designer-field textarea{
	width: 100%;
	resize: vertical;
	min-height: 56px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	font-weight: 700;
}

.sc-designer-field input[type="text"],
.sc-designer-field select{
	width: 100%;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	font-weight: 700;
}

.sc-designer-field__heading{
	margin: 10px 0 6px;
	font-size: 13px;
	font-weight: 900;
	color: var(--sc-color-secondary);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sc-designer-choice-list{
	display: grid;
	gap: 8px;
}

.sc-designer-choice{
	display: grid;
	grid-template-columns: 18px 1fr;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	cursor: pointer;
}

.sc-designer-choice input{
	margin: 0;
}

.sc-designer-choice__label{
	font-weight: 800;
	color: var(--sc-color-secondary);
}

.sc-designer-choice input:checked + .sc-designer-choice__label{
	text-decoration: underline;
}

.sc-designer-choice-grid{
	--sc-choice-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--sc-choice-columns), minmax(0, 1fr));
	gap: 10px;
}

@media (max-width: 520px){
	.sc-designer-choice-grid{
		--sc-choice-columns: 2;
	}
}

.sc-designer-card{
	position: relative;
	display: grid;
	gap: 8px;
	padding: 10px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	cursor: pointer;
}

.sc-designer-card input{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sc-designer-card__media{
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--sc-color-surface-alt);
	border: 1px solid var(--sc-color-border);
	display: grid;
	place-items: center;
}

.sc-designer-card__media img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sc-designer-card__swatch{
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.sc-designer-card__zoom{
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 4;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: #111827;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
	cursor: zoom-in;
}

.sc-designer-card__zoom:hover,
.sc-designer-card__zoom:focus-visible{
	background: #ffffff;
	border-color: rgba(15, 23, 42, 0.36);
}

.sc-designer-card__zoom .dashicons{
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 1;
}

.sc-designer-card__label{
	font-size: 12px;
	font-weight: 900;
	color: var(--sc-color-secondary);
}

.sc-designer-choice-grid.has-labels-inside .sc-designer-card{
	gap: 0;
}

.sc-designer-choice-grid.has-labels-inside .sc-designer-card__media{
	position: relative;
}

.sc-designer-choice-grid.has-labels-inside .sc-designer-card__label{
	position: absolute;
	left: 2px;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 6px;
	border-radius: 2px;
	background: rgb(255 255 255 / 0%);
	box-shadow: 0 1px 2px rgb(15 23 42 / 0%);
	line-height: 1.15;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}

.sc-designer-card input:checked + .sc-designer-card__media{
	border-color: var(--sc-color-secondary);
	outline: 2px solid var(--sc-color-secondary);
	outline-offset: 1px;
}

.sc-designer-row{
	display:grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sc-designer-row label{
	display:grid;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
	color: var(--sc-color-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sc-designer-row select,
.sc-designer-row input{
	width: 100%;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
}

.sc-designer-row input[type="color"]{
	width: 46px;
	height: 38px;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
}

/* Footer bar - base */
.sc-designer-footer{
	margin-top: 12px;
	display:grid;
	grid-template-columns: 1fr 170px;
	min-height: var(--sc-designer-footer-height);
	gap: 0;
	border-radius: 14px;
	overflow:hidden;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface-alt);
}

/* Default-mode footer pinned to bottom of the scrollable summary card (Image 5).
   The summary card has 28px padding; we pull the footer to the edges so it reads as a true bottom bar. */
.sc-designer-default-shell .single-product-layout__card{
	padding: 0;
}

.sc-designer-default-shell .single-product-layout__status{
	padding: 28px 28px 18px;
}

.sc-designer-default-shell .sc-designer-default-summary{
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0 28px 18px;
}

.sc-designer-default-shell .sc-designer-footer{
	margin-top: auto;
	position: static;
	bottom: auto;
	z-index: auto;
	margin: 0;
	border-radius: 0 0 var(--sc-radius-lg) var(--sc-radius-lg);
	border: 0;
	border-top: 0;
	background: #9ca3af;
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

/* Lock the right column (desktop): content scrolls, footer stays pinned. */
@media (min-width: 981px) {
	body:not(.is-browser-fullscreen) .sc-designer-default-shell .single-product-layout__gallery{
		height: var(--sc-designer-normal-height);
		max-height: var(--sc-designer-normal-height);
		overflow: hidden;
	}

	body:not(.is-browser-fullscreen) .sc-designer-default-shell .single-product-layout__summary{
		height: var(--sc-designer-normal-height);
		max-height: var(--sc-designer-normal-height);
	}

	body:not(.is-browser-fullscreen) .sc-designer-default-shell .single-product-layout__summary .single-product-layout__card{
		height: 100%;
		max-height: 100%;
		overflow: hidden;
	}

	body:not(.is-browser-fullscreen) .sc-designer-default-shell .sc-designer-default-summary{
		flex: 1 1 auto;
		min-height: 0;
		overflow: auto;
	}

	/* Designer ON mode: left canvas and right controls match height exactly. */
	body:not(.is-browser-fullscreen).sc-designer-on .sc-designer-canvas{
		height: var(--sc-designer-normal-height);
		min-height: var(--sc-designer-normal-height);
	}

	/* Note: ON-mode controls height is handled by the card styling block above (also non-fullscreen). */
}

@media (min-width: 1201px) {
	/* The theme uses negative margins for the sticky header in the scroll card; undo that for the designer default shell. */
	.sc-designer-default-shell .single-product-layout__summary .single-product-layout__status{
		margin-top: 0;
		padding-top: 28px !important;
		padding-bottom: 18px;
	}

	/* Move scrolling from the card to the content wrapper (keeps footer outside the scroll area). */
	.sc-designer-default-shell .single-product-layout__summary .single-product-layout__card{
		overflow: hidden;
	}
}

/* Image 2/3 styling: dark footer bar with light text (default mode only). */
.sc-designer-default-shell .sc-designer-footer__qty,
.sc-designer-default-shell .sc-designer-footer__btn,
.sc-designer-default-shell .sc-designer-toggle__label{
	color: #ffffff;
}

.sc-designer-default-shell .sc-designer-toggle__label{
	margin-right: 5px;
}

.sc-designer-default-shell .sc-designer-footer__qty{
	border-right: 0;
}

.sc-designer-default-shell .sc-designer-footer__btn.is-primary{
	border-right: 0;
	border-left: 0;
}

.sc-designer-default-shell .sc-designer-footer__btn:hover{
	background: rgba(255, 255, 255, 0.12);
}

.sc-designer-default-shell .sc-designer-footer__qty input{
	background: rgb(255 255 255 / 12%);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

/* Designer footer pinned at bottom of right panel */
.sc-designer-controls .sc-designer-footer{
	margin-top: auto;
	position: static;
	bottom: auto;
	z-index: 20;
}

/* Firefox can render sticky elements square against rounded containers.
   Use a flex column layout so the footer stays at the bottom without sticky positioning. */
.sc-designer-controls{
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.sc-designer-footer{
	background-clip: padding-box;
}

/* Hide default Woo add-to-cart controls when using the custom footer bar. */
.sc-designer-default-shell form.cart .quantity,
.sc-designer-default-shell form.cart button.single_add_to_cart_button,
.sc-designer-default-shell form.cart a.single_add_to_cart_button {
	display: none !important;
}

.sc-designer-footer__left{
	display:grid;
	grid-template-columns: 120px 1fr;
	min-width: 0;
}

.sc-designer-footer__qty{
	display:flex;
	align-items:center;
	justify-content:center;
	gap: 8px;
	min-height: var(--sc-designer-footer-height);
	font-weight: 900;
	color: var(--sc-color-secondary);
	padding: 10px 0px 12px 20px;
	border-right: 1px solid var(--sc-color-border);
}

.sc-designer-footer__qty input{
	width: 56px;
	padding: 3px 2px;
	border-radius: 5px;
	border: 1px solid var(--sc-color-border);
	background: #ffffff94;
	color: var(--sc-color-secondary);
	font-weight: 900;
	text-align:center;
}

.sc-designer-footer__btn{
	appearance:none;
	border: 0;
	border-radius: 0;
	display:flex;
	align-items:center;
	justify-content:center;
	min-height: var(--sc-designer-footer-height);
	padding: 12px 14px;
	font-weight: 900;
	letter-spacing: 0.02em;
	cursor:pointer;
	background: transparent;
	color: var(--sc-color-secondary);
	transition: background 0.15s ease;
}

.sc-designer-footer__btn:hover{
	background: rgba(15, 23, 42, 0.06);
}

.sc-designer-footer__btn.is-primary{
	border-right: 1px solid var(--sc-color-border);
}

.sc-designer-footer__btn.is-primary:hover{
	background: rgba(15, 23, 42, 0.06);
}

.sc-designer-footer__btn.is-toggle{
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #7ce700;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__btn.is-toggle{
	background: #3f4856;
}

/* OFF = red. Keep the same styling for ON as well (only text changes). */
.sc-designer-toggle__label{
	color: var(--sc-color-secondary);
}

.sc-designer-toggle__state{
	color: #ef4444;
}

body.sc-designer-on .sc-designer-toggle__state,
body.sc-designer-on .sc-designer-controls .sc-designer-toggle__state{
	color: #2bff00;
}

/* Keep the same footer bar UI in designer ON mode too. */
body.sc-designer-on .sc-designer-controls .sc-designer-footer{
	border-top: 3px solid #00ff1b;
	border-right: 0;
	border-bottom: 0;
	border-left: 0;
	background: #1f2937;
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
	border-radius: 0;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__qty,
body.sc-designer-on .sc-designer-controls .sc-designer-footer__btn,
body.sc-designer-on .sc-designer-controls .sc-designer-toggle__label{
	color: #ffffff;
}

body.sc-designer-on .sc-designer-controls .sc-designer-toggle__label{
	margin-right: 5px;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__qty{
	border-right: 0;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__btn.is-primary{
	border-right: 0;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__btn:hover{
	background: rgba(255, 255, 255, 0.12);
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer__qty input{
	background: rgb(255 255 255 / 12%);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

@media (max-width: 980px) {
	@supports selector(html:has(body.sc-designer-on)){
		html:has(body.sc-designer-on){
			overflow: hidden;
		}
	}

	.sc-designer-layout{
		grid-template-columns: 1fr;
	}
	.sc-designer-controls{
		position: static;
		top: auto;
	}
	.sc-designer-panel{
		max-height: none;
	}

	body.sc-designer-on .single-product-layout{
		overflow: visible;
		padding-bottom: 0;
	}

	body.sc-designer-on .single-product-layout__hero{
		display: block;
	}

	body.sc-designer-on{
		overflow: hidden;
		touch-action: none;
	}

	body.sc-designer-on #smhl-launcher-root,
	body.sc-designer-on .smhl-launcher-root,
	body.sc-designer-on .fb_dialog,
	body.sc-designer-on iframe[title*="chat" i],
	body.sc-designer-on iframe[src*="messenger" i],
	body.sc-designer-on iframe[src*="chat" i]{
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.sc-designer-on .sc-designer-shell{
		position: fixed;
		inset: 0;
		z-index: 999980;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		padding: 0;
		background: #eef2f6;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: y mandatory;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	body.sc-designer-on .sc-designer-shell::-webkit-scrollbar{
		display: none;
	}

	body.sc-designer-on .sc-designer-layout{
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100vw;
		min-height: 100vh;
		min-height: 100dvh;
	}

	body.sc-designer-on .sc-designer-canvas{
		flex: 0 0 100vh;
		flex-basis: 100dvh;
		width: 100vw;
		min-height: 0;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
		border: 0;
		box-shadow: none;
		scroll-snap-align: start;
	}

	body.sc-designer-on .sc-designer-surface-wrap{
		padding: 0;
	}

	body.sc-designer-on .sc-designer-surface-wrap,
	body.sc-designer-on .sc-designer-surface-wrap .sc-bg-image-layer{
		background-repeat: repeat-y !important;
		background-position: 50% 0 !important;
		background-size: 104% auto !important;
	}

	body.sc-designer-on .sc-designer-canvas > .sc-designer-action{
		right: 6px !important;
		width: 38px;
		min-width: 38px;
		height: 38px;
		padding: 3px !important;
		border-radius: 11px !important;
		background: rgba(17, 24, 39, 0.66) !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16) !important;
		color: #ffffff;
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	body.sc-designer-on .sc-designer-canvas > .sc-designer-action[aria-pressed="true"],
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action.is-active,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action.is-on,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action[data-sc-active="true"]{
		background: rgba(34, 197, 94, 0.66) !important;
		border-color: rgba(187, 247, 208, 0.44) !important;
		box-shadow: 0 6px 14px rgba(21, 128, 61, 0.22) !important;
	}

	body.sc-designer-on .sc-designer-canvas > .sc-designer-action .sc-designer-action__icon,
	body.sc-designer-on .sc-designer-canvas > .sc-designer-action svg{
		width: 18px !important;
		height: 18px !important;
		margin-bottom: 0 !important;
		filter: brightness(0) invert(1);
		stroke: currentColor;
	}

	body.sc-designer-on .sc-designer-canvas > .sc-designer-action .sc-designer-action__label{
		display: none;
	}

	body.sc-designer-on #sc_save_my_design_btn{ top: 8px !important; }
	body.sc-designer-on #sc_move_select_btn{ top: 52px !important; }
	body.sc-designer-on #sc_hand_design_btn{ top: 96px !important; }
	body.sc-designer-on #sc_crop_tool_btn{ top: 140px !important; }
	body.sc-designer-on #sc_marquee_tool_btn{ top: 184px !important; }
	body.sc-designer-on #sc_transparency_tool_btn{ top: 228px !important; }
	body.sc-designer-on #sc_pen_tools_btn{ top: 272px !important; }
	body.sc-designer-on #sc_paint_brush_btn{ top: 316px !important; }
	body.sc-designer-on #sc_text_tools_btn{ top: 360px !important; }
	body.sc-designer-on #sc_layers_design_btn{ top: 404px !important; }
	body.sc-designer-on #sc_background_design_btn{ top: 448px !important; }

	body.sc-designer-on #sc_frontend_sidebar{
		display: flex !important;
		visibility: visible !important;
		pointer-events: auto !important;
		position: fixed !important;
		top: 0 !important;
		right: auto !important;
		bottom: calc(62px + env(safe-area-inset-bottom)) !important;
		left: 0 !important;
		width: min(78vw, 300px) !important;
		max-width: calc(100vw - 84px) !important;
		z-index: 1000004 !important;
		border-radius: 0 !important;
		box-shadow: 12px 0 28px rgba(15, 23, 42, 0.18) !important;
		overflow: hidden !important;
	}

	body.sc-designer-on #sc_frontend_sidebar.sc-mobile-text-sidebar-hidden{
		visibility: hidden !important;
		pointer-events: none !important;
		transform: translateX(-100%) !important;
	}

	body.sc-designer-on #sc_frontend_sidebar_content .sc-icons,
	body.sc-designer-on #sc_frontend_sidebar_content .sc-shapes,
	body.sc-designer-on #sc_frontend_sidebar_content .sc-elements,
	body.sc-designer-on #sc_frontend_sidebar_content .sc-photo{
		flex: 1 1 auto !important;
		height: 100% !important;
		min-height: 0 !important;
		padding-bottom: 10px !important;
		box-sizing: border-box !important;
	}

	body.sc-designer-on #sc_frontend_sidebar_content .sc-photo-gridwrap{
		flex: 1 1 auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}

	body.sc-designer-on #sc_frontend_sidebar_content .sc-icons-more,
	body.sc-designer-on #sc_frontend_sidebar_content .sc-shapes-more,
	body.sc-designer-on #sc_frontend_sidebar_content .sc-elements-more,
	body.sc-designer-on #sc_frontend_sidebar_content #sc_photo_load_more_btn{
		appearance: none !important;
		-webkit-appearance: none !important;
		width: 100% !important;
		height: 36px !important;
		min-height: 36px !important;
		padding: 0 12px !important;
		margin: 0 !important;
		border-radius: 10px !important;
		font-size: 12px !important;
		font-weight: 800 !important;
		line-height: 1 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		box-sizing: border-box !important;
	}

	body.sc-designer-on #sc_pen_tools_menu,
	body.sc-designer-on #sc_text_tools_menu{
		left: auto !important;
		right: 52px !important;
		width: min(240px, calc(100vw - 104px)) !important;
		min-width: 0 !important;
		z-index: 1000005 !important;
	}

	body.sc-designer-on .sc-designer-canvas-footer{
		position: relative;
		z-index: 1000006 !important;
		min-height: 62px;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		gap: 4px;
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
		border-radius: 0;
	}

	body.sc-designer-on .sc-designer-more-details{
		appearance: none;
		-webkit-appearance: none;
		position: fixed;
		left: 50%;
		bottom: calc(62px + env(safe-area-inset-bottom) + 2px);
		z-index: 1000007;
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1px;
		width: 116px;
		height: 42px;
		padding: 0;
		margin: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		color: #1f2933;
		font: inherit;
		line-height: 1;
		cursor: pointer;
		text-align: center;
		text-decoration: none;
		transform: translateX(-50%);
		animation: scMoreDetailsLift 1.25s ease-in-out infinite;
		-webkit-tap-highlight-color: transparent;
	}

	body.sc-designer-on .sc-designer-more-details__chevrons{
		position: relative;
		display: block;
		width: 30px;
		height: 22px;
		margin-bottom: 4px;
	}

	body.sc-designer-on .sc-designer-more-details__chevrons::after,
	body.sc-designer-on .sc-designer-more-details__chevrons::before{
		content: "";
		position: absolute;
		left: 50%;
		width: 17px;
		height: 17px;
		border-right: 3px solid currentColor;
		border-bottom: 3px solid currentColor;
		box-sizing: border-box;
		transform: translateX(-50%) rotate(45deg) skew(-8deg, -8deg);
		transform-origin: center;
	}

	body.sc-designer-on .sc-designer-more-details__chevrons::before{
		top: -4px;
		opacity: 0.66;
	}

	body.sc-designer-on .sc-designer-more-details__chevrons::after{
		top: 6px;
		opacity: 0.92;
	}

	body.sc-designer-on .sc-designer-more-details__label{
		font-size: 8px !important;
		font-weight: 900;
		letter-spacing: 0;
		white-space: nowrap;
		text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
	}

	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details{
		color: #ffffff;
	}

	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details__chevrons{
		filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 7px rgba(0, 0, 0, 0.48));
	}

	body.sc-designer-on.sc-designer-more-details-on-dark-bg .sc-designer-more-details__label{
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.86), 0 0 8px rgba(0, 0, 0, 0.58);
	}

	body.sc-designer-on .sc-designer-controls .sc-designer-more-details{
		display: none;
	}

	body.sc-designer-on.sc-designer-details-view .sc-designer-more-details{
		display: none;
	}

	@keyframes scMoreDetailsLift{
		0%, 100%{
			transform: translate(-50%, -1px);
		}
		50%{
			transform: translate(-50%, 7px);
		}
	}

	@media (prefers-reduced-motion: reduce){
		body.sc-designer-on .sc-designer-more-details{
			animation: none;
		}
	}

	body.sc-designer-on .sc-designer-actions{
		display: flex;
		gap: 2px;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		align-self: stretch;
		overflow-x: hidden;
		overflow-y: hidden;
		padding-bottom: 0;
		scrollbar-width: none;
	}

	body.sc-designer-on .sc-designer-actions::-webkit-scrollbar{
		display: none;
	}

	body.sc-designer-on .sc-designer-actions .sc-designer-action{
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		max-width: 46px;
		min-height: 44px;
		padding: 3px;
		border-radius: 11px;
		background: rgba(255, 255, 255, 0.055);
		gap: 0;
	}

	body.sc-designer-on .sc-designer-actions .sc-designer-action:hover,
	body.sc-designer-on .sc-designer-actions .sc-designer-action:focus-visible{
		background: rgba(255, 255, 255, 0.12);
	}

	body.sc-designer-on .sc-designer-actions .sc-designer-action[aria-pressed="true"],
	body.sc-designer-on .sc-designer-actions .sc-designer-action.is-active,
	body.sc-designer-on .sc-designer-actions .sc-designer-action.is-on,
	body.sc-designer-on .sc-designer-actions .sc-designer-action[data-sc-active="true"]{
		background: rgba(34, 197, 94, 0.66);
		border-color: rgba(187, 247, 208, 0.44);
		box-shadow: 0 6px 14px rgba(21, 128, 61, 0.22);
		color: #ffffff;
	}

	body.sc-designer-on .sc-designer-action__icon{
		width: 20px;
		height: 20px;
	}

	body.sc-designer-on .sc-designer-action__label{
		display: none;
	}

	body.sc-designer-on .sc-designer-actions .sc-designer-action__label::after{
		content: none;
	}

	body.sc-designer-on .sc-designer-zoom{
		align-self: center;
		flex: 0 0 auto;
		gap: 3px;
		padding-left: 4px;
		border-left: 1px solid rgba(255, 255, 255, 0.18);
	}

	body.sc-designer-on .sc-designer-zoom #sc_redo_design_btn{
		margin-right: 6px;
	}

	body.sc-designer-on .sc-designer-zoom #sc_undo_design_btn,
	body.sc-designer-on .sc-designer-zoom #sc_redo_design_btn{
		width: 20px;
		height: 20px;
		min-width: 20px;
	}

	body.sc-designer-on .sc-designer-zoom button{
		width: 24px;
		height: 24px;
		min-width: 24px;
	}

	body.sc-designer-on .sc-designer-zoom__label{
		min-width: 28px;
		font-size: 12px;
		font-weight: 900;
	}

	@media (max-width: 420px){
		body.sc-designer-on .sc-designer-canvas-footer{
			gap: 3px;
			padding-left: 4px;
			padding-right: 4px;
		}

		body.sc-designer-on .sc-designer-actions{
			gap: 2px;
		}

		body.sc-designer-on .sc-designer-actions .sc-designer-action{
			min-height: 42px;
			border-radius: 10px;
		}

		body.sc-designer-on .sc-designer-action__icon{
			width: 19px;
			height: 19px;
		}

		body.sc-designer-on .sc-designer-zoom{
			gap: 2px;
			padding-left: 5px;
		}

		body.sc-designer-on .sc-designer-zoom #sc_redo_design_btn{
			margin-right: 5px;
		}

		body.sc-designer-on .sc-designer-zoom #sc_undo_design_btn,
		body.sc-designer-on .sc-designer-zoom #sc_redo_design_btn{
			width: 19px;
			height: 19px;
			min-width: 19px;
		}

		body.sc-designer-on .sc-designer-zoom button{
			width: 23px;
			height: 23px;
			min-width: 23px;
		}

		body.sc-designer-on .sc-designer-zoom__label{
			min-width: 26px;
			font-size: 11px;
		}
	}

	body.sc-designer-on .sc-designer-price{
		position: fixed;
		top: calc(env(safe-area-inset-top) + 12px);
		left: 50%;
		z-index: 1000003;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 146px;
		max-width: calc(100vw - 128px);
		min-height: 36px;
		margin: 0;
		padding: 7px 18px;
		box-sizing: border-box;
		border: 1px solid rgba(52, 211, 153, 0.72);
		border-radius: 999px;
		background: linear-gradient(135deg, rgba(8, 18, 31, 0.94), rgba(15, 46, 42, 0.92));
		box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24), 0 0 18px rgba(0, 255, 27, 0.18);
		color: #35ff5a;
		font-size: 15px;
		font-weight: 950;
		line-height: 1;
		letter-spacing: 0;
		text-align: center;
		white-space: nowrap;
		transform: translateX(-50%);
		pointer-events: none;
	}

	body.sc-designer-on .sc-designer-price .woocommerce-Price-amount{
		color: inherit;
	}

	body.sc-designer-on .sc-designer-controls{
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 0;
		box-sizing: border-box;
		background: #fff;
		scroll-snap-align: start;
	}

	body.sc-designer-on .sc-designer-panel{
		flex: 1 1 auto;
		min-height: 0;
		border-radius: 0;
		padding: 14px;
		text-align: center;
		overflow: hidden;
	}
	body.sc-designer-on #sc_frontend_sidebar[style*="translateX(0"] ~ .sc-designer-canvas-footer .sc-designer-price{
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	body.sc-designer-on .sc-designer-panel__head{
		position: sticky;
		top: 0;
		z-index: 5;
		margin: -14px -14px 12px;
		padding: 12px 14px;
		background: rgba(255, 255, 255, 0.96);
		border-radius: 0;
		box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	body.sc-designer-on .sc-designer-panel__body{
		min-height: 0;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		margin-top: 15px !important;
	}

	body.sc-designer-on .sc-designer-accordion{
		border-radius: 14px;
		margin-bottom: 8px;
	}

	body.sc-designer-on .sc-designer-accordion__head{
		min-height: 50px;
		padding: 10px 12px;
		grid-template-columns: 28px 1fr 22px;
	}

	body.sc-designer-on .sc-designer-footer{
		position: sticky;
		left: auto;
		right: auto;
		bottom: 0;
		z-index: 20;
		grid-template-columns: minmax(0, 1fr) minmax(96px, 32%);
		min-height: 62px;
		margin: 0;
		border-radius: 0;
		box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
	}

	body.sc-designer-on .sc-designer-footer__left{
		grid-template-columns: 86px minmax(0, 1fr);
	}

	body.sc-designer-on .sc-designer-footer__qty,
	body.sc-designer-on .sc-designer-footer__btn{
		min-height: 62px;
		padding: 10px 8px;
		font-size: 12px;
	}

	body.sc-designer-on .sc-designer-footer__qty{
		gap: 6px;
		padding-left: 8px;
	}

	body.sc-designer-on .sc-designer-footer__qty input{
		width: 42px;
		height: 34px;
	}
}

body.sc-designer-on .sc-designer-zoom .sc-lighting-toggle,
body.sc-designer-on .sc-lighting-toggle{
	position: fixed;
	top: var(--sc-lighting-toggle-top, calc(env(safe-area-inset-top) + 12px));
	left: var(--sc-lighting-toggle-left, 12px);
	z-index: 1000003;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 72px;
	height: 34px;
	min-width: 72px;
	min-height: 34px;
	padding: 4px 10px 4px 4px;
	border: 0;
	border-radius: 999px;
	background: rgba(2, 6, 23, 0.86);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.16), 0 8px 20px rgba(15, 23, 42, 0.22);
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
	touch-action: manipulation;
}

body.sc-designer-on .sc-lighting-toggle[hidden]{
	display: none !important;
}

body.sc-designer-on .sc-designer-zoom .sc-lighting-toggle__dot,
body.sc-designer-on .sc-lighting-toggle__dot{
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	min-width: 26px;
	min-height: 26px;
	border-radius: 999px;
	background: #64748b;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.sc-designer-on .sc-lighting-toggle.is-on .sc-lighting-toggle__dot{
	background: #7cff00;
	box-shadow: 0 0 12px rgba(124, 255, 0, 0.64);
}

body.sc-designer-on .sc-lighting-toggle__note{
	position: absolute;
	top: calc(100% + 7px);
	left: 0;
	min-width: 142px;
	padding: 7px 9px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.9);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	white-space: normal;
	pointer-events: none;
}

@media (max-width: 980px){
	.single-product-layout__fullscreen-toggle[data-fullscreen-toggle]{
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.sc-designer-on .sc-designer-zoom .sc-lighting-toggle,
	body.sc-designer-on .sc-lighting-toggle{
		position: absolute;
		top: calc(env(safe-area-inset-top) + 12px);
		left: 12px;
	}
}

.sc-lighting-modal{
	position: fixed;
	inset: 0;
	z-index: 1000005;
	display: grid;
	place-items: center;
	padding: 18px;
}

.sc-lighting-modal__scrim{
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
}

.sc-lighting-modal__dialog{
	position: relative;
	z-index: 1;
	width: min(100%, 340px);
	padding: 12px;
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: var(--sc-radius-sm, 12px);
	background: var(--sc-color-text, #1f2937);
	box-shadow: var(--sc-shadow-card, 0 10px 26px rgba(0,0,0,0.35));
	color: rgba(255,255,255,0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.sc-lighting-modal__head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.sc-lighting-modal__head strong{
	font-size: 14px;
	font-weight: 950;
}

.sc-lighting-modal__head button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.94);
	font-size: 16px;
	font-weight: 900;
	cursor: pointer;
}

.sc-lighting-modal__dialog p{
	margin: 0 0 10px;
	color: rgba(255,255,255,0.66);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.sc-lighting-modal__actions{
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.sc-lighting-modal__actions button{
	display: grid;
	gap: 2px;
	padding: 9px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: rgba(255,255,255,0.94);
	text-align: left;
	cursor: pointer;
}

.sc-lighting-modal__actions button:hover,
.sc-lighting-modal__actions button:focus-visible{
	background: rgba(255,255,255,0.09);
}

.sc-lighting-modal__actions button:last-child{
	border-color: transparent;
	background: transparent;
}

.sc-lighting-modal__actions span{
	font-size: 12px;
	font-weight: 950;
}

.sc-lighting-modal__actions small{
	font-size: 11px;
	font-weight: 800;
	color: rgba(255,255,255,0.58);
}

.sc-designer-message-overlay{
	position: absolute;
	inset: 0 0 var(--sc-designer-footer-height, 55px) 0;
	z-index: 1000008;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(15, 23, 42, 0.36);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	pointer-events: auto;
	transition: opacity 160ms ease;
}

.sc-designer-message-overlay.is-visible{
	opacity: 1;
}

.sc-designer-message{
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	width: min(430px, 100%);
	padding: 18px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.96));
	box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.16);
	color: #ffffff;
	transform: translateY(8px) scale(0.98);
	transition: transform 160ms ease;
}

.sc-designer-message-overlay.is-visible .sc-designer-message{
	transform: translateY(0) scale(1);
}

.sc-designer-message__icon{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: rgba(0, 255, 27, 0.14);
	border: 1px solid rgba(0, 255, 27, 0.32);
	color: #00ff1b;
	font-size: 24px;
	font-weight: 950;
	line-height: 1;
}

.sc-designer-message__content{
	min-width: 0;
	padding-right: 30px;
}

.sc-designer-message__title{
	font-size: 14px;
	font-weight: 950;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.sc-designer-message__body{
	margin-top: 7px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.sc-designer-message__ok,
.sc-designer-message__close{
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.sc-designer-message__ok{
	margin-top: 14px;
	min-width: 76px;
	min-height: 34px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #00ff1b;
	color: #0f172a;
	font-size: 12px;
	font-weight: 950;
	box-shadow: 0 10px 24px rgba(0, 255, 27, 0.22);
}

.sc-designer-message__close{
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.76);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sc-designer-message__ok:hover,
.sc-designer-message__ok:focus-visible{
	background: #5dff70;
}

.sc-designer-message__close:hover,
.sc-designer-message__close:focus-visible{
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

@media (max-width: 640px){
	.sc-designer-message-overlay{
		padding: 14px;
	}

	.sc-designer-message{
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 12px;
		padding: 16px;
		border-radius: 14px;
	}

	.sc-designer-message__icon{
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}
}

/* Save / Export modal (frontend designer) */
.sc-designer-modal-overlay{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0,0,0,0.45);
}

.sc-designer-modal{
	width: 900px;
	max-width: 100%;
	background: var(--sc-color-surface);
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius-lg);
	box-shadow: var(--sc-shadow-soft);
	color: var(--sc-color-text);
	overflow: hidden;
}

.sc-designer-modal__header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--sc-color-surface-alt);
	border-bottom: 1px solid var(--sc-color-border);
}

.sc-designer-modal__title{
	font-weight: 900;
	letter-spacing: 0.01em;
	font-size: 16px;
}

.sc-designer-modal__close{
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--sc-color-text);
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	opacity: 0.7;
}

.sc-designer-modal__close:hover{
	opacity: 1;
}

.sc-designer-modal__body{
	padding: 18px;
}

.sc-designer-modal__grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.sc-designer-modal__card{
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	border-radius: var(--sc-radius-md);
	box-shadow: var(--sc-shadow-card);
	padding: 16px;
}

.sc-designer-modal__cardTitle{
	font-weight: 900;
	font-size: 14px;
	margin-bottom: 6px;
}

.sc-designer-modal__cardDesc{
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.9;
	margin-bottom: 12px;
}

.sc-designer-modal__btnRow{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.sc-designer-modal__primaryBtn{
	background: var(--sc-color-primary);
	border-color: rgba(var(--sc-color-primary-rgb), 0.35);
	color: #ffffff;
}

.sc-designer-modal__primaryBtn:hover{
	background: var(--sc-color-primary-dark);
}

.sc-designer-modal__linkBtn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	min-height: 32px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface-alt);
	color: var(--sc-color-text);
}

.sc-designer-modal__linkBtn:hover{
	border-color: rgba(var(--sc-color-primary-rgb), 0.35);
}

.sc-designer-modal__status{
	margin-top: 10px;
	font-size: 12px;
	font-weight: 800;
	min-height: 16px;
}

.sc-designer-modal__progressWrap{
	margin-top: 10px;
}

.sc-designer-modal__progressTop{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	min-height: 16px;
}

.sc-designer-modal__progressMsg{
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-designer-modal__progressPct{
	flex: 0 0 auto;
	min-width: 40px;
	text-align: right;
}

.sc-designer-modal__progressBar{
	margin-top: 8px;
	height: 10px;
	border-radius: 999px;
	background: var(--sc-color-surface-alt);
	border: 1px solid var(--sc-color-border);
	overflow: hidden;
}

.sc-designer-modal__progressFill{
	height: 100%;
	width: 0%;
	background: var(--sc-color-primary);
}

.sc-designer-modal__exportRow{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sc-designer-modal__exportBtn{
	width: 100%;
	position: relative;
	overflow: visible;
}

.sc-designer-modal__exportBtnLabel{
	display: inline-block;
}

.sc-designer-modal__buyerBadge{
	position: absolute;
	top: -10px;
	right: 14px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.04em;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	color: var(--sc-color-text);
	pointer-events: none;
	z-index: 2;
}

@media (max-width: 720px) {
	.sc-designer-modal__grid{
		grid-template-columns: 1fr;
	}
	.sc-designer-modal{
		border-radius: var(--sc-radius-md);
	}
}

/* My Account -> My Designs list (icon actions + thumbnail) */
.sc-my-designs-list,
.sc-my-designs-item,
.sc-my-designs-actions{
	overflow: hidden;
}

.sc-my-designs-item{
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 14px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--sc-color-border);
	border-radius: 12px;
	margin-bottom: 10px;
	background: var(--sc-color-surface);
}

.sc-my-designs-item:hover{
	border-color: rgba(var(--sc-color-primary-rgb), 0.30);
}

.sc-my-designs-main{
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	min-width: 0;
	overflow: hidden;
}

.sc-my-designs-thumbWrap{
	flex: 0 0 auto;
}

.sc-my-designs-thumb{
	display: block;
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
}

.sc-my-designs-meta{
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.sc-my-designs-title{
	font-weight: 900;
	line-height: 1.25;
	white-space: nowrap;
	word-break: break-word;
}

.sc-designer-choice-grid.has-labels-inside .sc-designer-card__media.has-swatch .sc-designer-card__label{
	left: 8px;
	right: 8px;
	padding: 5px 8px;
	border: 1px solid rgb(255 255 255 / 0%);
	background: rgb(255 255 255 / 0%);
	color: #111827;
	box-shadow: 0 6px 18px rgb(15 23 42 / 0%);
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	max-width: 100%;
}

.sc-my-designs-date{
	margin-top: 4px;
	opacity: 0.75;
	font-size: 13px;
}

.sc-my-designs-badge{
	margin-top: 8px;
	font-size: 12px;
	font-weight: 900;
	opacity: 0.9;
}

.sc-my-designs-actions{
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	justify-self: end;
}

.sc-my-designs-sendForm{
	margin: 0;
	display: inline-flex;
}

.sc-my-designs-iconBtn{
	appearance: none;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	color: var(--sc-color-text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.9;
	position: relative;
}

.sc-my-designs-iconBtn:focus{
	outline: none;
}

.sc-my-designs-iconBtn:focus-visible{
	outline: none;
	border-radius: 12px;
	box-shadow: 0 0 0 3px rgba(var(--sc-color-primary-rgb), 0.25) !important;
}

.sc-my-designs-iconBtn:hover{
	opacity: 1;
}

.sc-my-designs-iconBtn svg{
	display: block;
}

/* The account panels use overflow:hidden (theme.css); allow tooltips on My Designs. */
.sc-my-designs-endpoint .woocommerce-MyAccount-content,
.sc-my-designs-endpoint .sc-account-content,
.sc-my-designs-endpoint .woocommerce-MyAccount-navigation,
.sc-my-designs-endpoint .sc-account-navigation,
/* Fallback: if body class isn't present, still unclip on account pages where this CSS is enqueued. */
.sc-account-page .woocommerce-MyAccount-content,
.sc-account-page .sc-account-content,
.sc-account-page .woocommerce-MyAccount-navigation,
.sc-account-page .sc-account-navigation{
	overflow: visible !important;
}

.sc-my-designs-list,
.sc-my-designs-item,
.sc-my-designs-actions{
	overflow: visible;
}

/* Tooltip (speech-bubble pointer: border + fill, same background as bubble) */
.sc-my-designs-iconBtn .sc-tooltip{
	display: block;
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	transform: translate(-50%, -4px);
	width: max-content;
	min-width: 220px;
	max-width: min(320px, calc(100vw - 48px));
	white-space: normal;
	text-align: left;
	line-height: 1.35;
	word-break: normal;
	overflow-wrap: break-word;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface-alt);
	color: var(--sc-color-text);
	font-size: 12px;
	font-weight: 800;
	box-shadow: var(--sc-shadow-soft);
	z-index: 20;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

/* Outer border triangle */
.sc-my-designs-iconBtn .sc-tooltip::before{
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% - 1px);
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 9px solid var(--sc-color-border);
}

/* Inner fill triangle (slightly smaller, overlaps border triangle) */
.sc-my-designs-iconBtn .sc-tooltip::after{
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% - 1px);
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid var(--sc-color-surface-alt);
}

.sc-my-designs-iconBtn:hover .sc-tooltip,
.sc-my-designs-iconBtn:focus .sc-tooltip,
.sc-my-designs-iconBtn:focus-visible .sc-tooltip,
.sc-my-designs-iconBtn:focus-within .sc-tooltip{
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

@media (max-width: 720px) {
	.sc-my-designs-iconBtn .sc-tooltip{
		min-width: min(220px, calc(100vw - 48px));
	}
}

@media (max-width: 720px) {
	.sc-my-designs-item{
		padding: 12px;
		gap: 10px;
	}
	.sc-my-designs-thumb{
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}
	.sc-my-designs-iconBtn{
		width: 36px;
		height: 36px;
	}
	.sc-my-designs-title{
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.sc-my-designs-thread{
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
	border-style: solid;
	border-color: var(--sc-color-border);
	border-width: 0;
	border-radius: 12px;
	background: var(--sc-color-surface);
	transition:
		max-height 220ms ease,
		opacity 180ms ease,
		padding 180ms ease,
		margin 180ms ease,
		border-width 180ms ease;
}

.sc-my-designs-threadToggle{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.sc-my-designs-deleteToggle{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@keyframes scThreadOpen{
	from{max-height:0;opacity:0;padding:0;margin:0;border-width:0}
	to{max-height:1400px;opacity:1;padding:14px 15px;margin:-2px 0 14px 0;border-width:1px}
}

.sc-my-designs-thread.is-open{
	max-height: 1400px;
	opacity: 1;
	margin: -2px 0 14px 0;
	padding: 14px 15px;
	border-width: 1px;
	animation: scThreadOpen 220ms ease both;
}

.sc-my-designs-threadToggle:checked ~ .sc-my-designs-thread{
	max-height: 1400px;
	opacity: 1;
	margin: -2px 0 14px 0;
	padding: 14px 15px;
	border-width: 1px;
	animation: scThreadOpen 220ms ease both;
}

/* Delete confirmation modal (CSS-only, no JS needed) */
.sc-my-designs-deleteModal{
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0,0,0,.45);
	z-index: 9999;
}

.sc-my-designs-deleteToggle:checked ~ .sc-my-designs-deleteModal{
	display: flex;
}

.sc-my-designs-deleteModal__panel{
	width: min(520px, 100%);
	border-radius: 14px;
	border: 1px solid var(--sc-color-border);
	background: var(--sc-color-surface);
	box-shadow: var(--sc-shadow-soft);
	padding: 16px;
}

.sc-my-designs-deleteModal__title{
	font-weight: 900;
	font-size: 16px;
	margin: 0 0 6px 0;
}

.sc-my-designs-deleteModal__msg{
	opacity: 0.8;
	font-size: 13px;
	line-height: 1.45;
	margin: 0;
}

.sc-my-designs-deleteModal__actions{
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
	margin-top: 14px;
}

.sc-my-designs-deleteModal__cancel{
	cursor: pointer;
}

body.sc-designer-on .sc-designer-controls .sc-designer-footer {
	border-top: 3px solid #00ff1b;
	background: #1f2937;
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
	border-radius: 0 0 var(--sc-radius-lg) var(--sc-radius-lg);
}

.sc-designer-canvas-footer {
	position: relative;
	margin-top: auto;
	border-radius: 0 0 var(--sc-radius-lg) var(--sc-radius-lg);
	background: #1f2937;
	background-clip: padding-box;
	overflow: hidden;
	color: #ffffff;
	padding: 0px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 55px;
	z-index: 1000006;
	border-top: 3px solid #00ff1b;
}
