/* Product Page */


.fpd-product-designer-wrapper {
	max-width: 100%;
	width: 100%;
	min-height: 700px;
	height: auto;
}

.fpd-fullwidth-summary .summary {
	width: 100% !important;
	float: none !important;
}

.fpd-container .fpd-login-info {
	padding: 0 0 10px 0;
	font-size: 14px;
}

.fpd-product-images-hidden .images {
	display: none !important;
}

.fpd-get-quote-enabled .summary .price {
	display: none !important;
}


/* Start Customizing Button */
.fpd-blue-btn /* old */,
.fpd-secondary-btn {
	background: #EBEBEB;
	color: #989898;
	padding: 10px 10px;
}

#fpd-start-customizing-button {
	pointer-events: visible;
	cursor: pointer;
	display: inline-block;
	opacity: 1;
	margin: 10px 0;
}

#fpd-start-customizing-button.fpd-disabled {
	pointer-events: none;
	opacity: 0.5;
}

.fpd-modal-price {
	border-left: 1px solid rgba(255,255,255, 0.4);
	padding-left: 5px;
	margin-left: 5px;
}

.single-product.fpd-customization-required .cart [type="submit"],
.fpd-customization-required [name="fpd_shortcode_form"] [type="submit"] {
	display: none !important;
}

.product-type-variable.fpd-variation-needed #fpd-start-customizing-button {
	display: none;
}


/* Design Sharing */

.fpd-share-design > * {
	display: inline-block;
	margin: 10px 10px 0 0;
}

#fpd-share-button > i {
	margin: 0 5px;
}

.fpd-share-process, .fpd-share-url {
	font-size: 12px;
	font-style: italic;
}

.fpd-share-url {
	vertical-align: text-top;
	line-height: 16px;
}

.fpd-share-widget .jssocials-share-link {
	width: 40px;
	display: block;
}

.fpd-share-design .jssocials-shares, .fpd-share-design .jssocials-share {
	margin-top: 0;
	margin-bottom: 0;
}



/* Shortcode */

form[name="fpd_shortcode_form"] {
	z-index: 0 !important;
}

form[name="fpd_shortcode_form"] > input {
	display: block;
	margin-bottom: 10px;
}

.fpd-shortcode-form-text-input {
	width: 100%;
}

.fpd-shortcode-form-text-input.fpd-error {
	background: #ffeeee !important;
}

.fpd-shortcode-price-wrapper {
	font-size: 1.6em;
	opacity: 0;
	-webkit-transition: opacity 300ms ease-out;
	transition: opacity 300ms ease-out;
}

.fpd-shortcode-price-wrapper.fpd-show-up {
	opacity: 1;
}

/* Saved Products */

.fpd-saved-products-grid {
	margin: 20px 0;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-content: flex-start;
}

.fpd-saved-products-grid > div {
	border: 1px solid rgba(0,0,0, 0.1);
	background-color: #fbfbfb;
	flex: 0 1 auto;
	width: 24%;
	height: auto;
	margin: 0 1% 20px 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	position: relative;
}

.fpd-saved-products-grid > div > a {
	display: block;
	width: 100%;
	height: 170px;
}

.fpd-saved-products-grid > div > span {
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: center;
	width: 100%;
	background: rgba(255,255,255, 0.8);
}

.fpd-saved-products-grid > div .fpd-sc-remove-saved-product {
	display: none;
	position: absolute;
	right: 10px;
	top: 0;
	left: auto !important;
	bottom: auto !important;
	font-size: 24px;
	padding: 5px;
	color: rgba(0,0,0, 0.8);
	width: auto !important;
	cursor: pointer;
	opacity: 0.5;
}

.fpd-saved-products-grid > div:hover .fpd-sc-remove-saved-product {
	display: block;
}

.fpd-saved-products-grid > div .fpd-sc-remove-saved-product:hover {
	opacity: 1;
}


/* Theme Check */

.fpd-theme-check-wrapper {
	top: 0;
	left: 0;
	position: fixed;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 10000;
}

.fpd-theme-check-wrapper > .fpd-theme-check-content {
	position: absolute;
	top: 200px;
	left: 50%;
	margin-left: -400px;
	width: 800px;
	min-height: 300px;
	background: #fff;
	padding: 20px;
}

.fpd-theme-check-content h4 {
	font-size: 18px;
	font-weight: bold;
	margin: 0 0 20px;
	padding: 0;
}

.fpd-theme-check-content h4 span {
	float: right;
	cursor: pointer;
}

.fpd-theme-check-content p {
	font-size: 12px;
	margin-bottom: 15px;
	padding: 10px;
	clear: both;
}

.fpd-theme-check-content p a {
	color: inherit;
	text-decoration: underline;
}

.fpd-theme-check-content p.fpd-success {
	background-color: #DFF0D8;
	color:#3c763d;
}

.fpd-theme-check-content p.fpd-warning {
	background-color: #FCF8E3;
	color:#8a6d3b;
}

.fpd-theme-check-content p.fpd-error {
	background-color: #F2DEDE;
	color: #a94442;
}

/* 3D Preview */

#fpd-3d-preview-placeholder {
	min-height: 500px;
	margin: 20px 0;
}


/* Shortcode: Module */

.fpd-sc-module-wrapper {
	border: 1px solid rgba(0,0,0,0.1);
	min-height: 300px;
}

/* WooCommerce: Cart */

.fpd-cart-item-meta-title {
	font-size:0.95em;
	font-weight: normal;
	overflow:hidden;
	text-overflow:ellipsis;
	max-width:80px;
	white-space:nowrap;
	display:inline-block;
	vertical-align: middle;
	line-height: 1;
}

.fpd-cart-element-color {
	white-space: nowrap; 
	border:1px solid #f2f2f2;
	font-size:11px;
	margin-right:4px;
	padding:2px 3px;
}



/* Notification */

.fpd-frontend-notification {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.2);
	z-index: 1000000;
}

.fpd-frontend-notification > div {
	position: fixed;
	left: 50%;
	top: 50%;
	width: 600px;
	min-height: 300px;
	max-width: 100vw;
	background: #fff;
	transform: translate(-50%, -50%);
	border-radius: 8px;
  	box-shadow: 0 10px 20px rgba(0,0,0, 0.2);
	padding: 20px;
	text-align: center;
}

.fpd-frontend-notification #fpd-frontend-notification-close {
	border: 1px solid #000;
	color: #000;
	padding: 6px 8px;
	font-size: 18px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-block;
	text-align: center;
	width: 80%;
	margin-top: 40px;
}

/* Tablets (portrait) ----------- */
@media (max-width : 767px) {

	.fpd-saved-products-grid > div {
		width: 48%;
	}

	.fpd-hidden-tablets .fpd-container,
	.fpd-hidden-tablets .fpd-done {
		display: none !important;
	}

}

/* Smartphones (portrait and landscape) ----------- */
@media (max-width : 568px) {

	.fpd-saved-products-grid > div {
		width: 100%;
	}

	.fpd-hidden-smartphones .fpd-container,
	.fpd-hidden-smartphones .fpd-done {
		display: none !important;
	}

}

/* V6 */

.fpd-sc-action-placeholder .fpd-btn {
	display: inline-flex !important;
	align-items: center;
	padding: 10px 12px !important;
}

.fpd-sc-action-placeholder[data-layout="icon-tooltip"] .fpd-btn > span, 
.fpd-sc-action-placeholder[data-layout="text"] .fpd-btn > i {
	display: none;
}

.fpd-sc-action-placeholder[data-layout="icon-text"] .fpd-btn > span {
	margin-left: 5px;
}

.fpd-sc-action-placeholder .fpd-switch {
	margin: 0 0 0 10px !important;
}

/* Front/Back View Selector Cards */
.fpd-custom-view-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: auto;
	min-width: 70px;
	z-index: 1000;
}

/* Ensure fpd-product-stage has relative positioning */
.fpd-product-stage {
	position: relative;
}

.fpd-view-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 90px;
	min-width: 70px;
	max-width: 70px;
	padding: 8px;
	background: #fff;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: relative;
}

.fpd-view-card-image {
	width: 100%;
	height: calc(100% - 20px);
	margin-bottom: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.fpd-view-card-label {
	font-size: 10px;
	font-weight: 500;
	color: #666;
	text-align: center;
	margin-top: 4px;
	position: relative;
	width: 100%;
	height: auto;
	overflow: visible;
	line-height: 1.2;
}

/* Ensure parent container has relative positioning */
.fpd-container,
.fpd-product-designer-wrapper,
.fpd-container > div {
	position: relative;
}

.fpd-view-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: scale(1.1);
}

.fpd-view-card.fpd-active {
	border-color: #0073e6;
	border-width: 2px;
	box-shadow: 0 4px 12px rgba(0, 115, 230, 0.2);
}

.fpd-view-card.fpd-active .fpd-view-card-label {
	color: #0073e6;
	font-weight: 600;
}

/* Hide the old pagination - specific elements */
.fpd-show-views-grid,
.fpd-view-prev,
.fpd-view-next {
	display: none !important;
}

/* Hide the old pagination - general selectors */
.fpd-actions-bar .fpd-views-nav,
.fpd-actions-bar [data-action="previous-view"],
.fpd-actions-bar [data-action="next-view"],
.fpd-container .fpd-views-nav,
fpd-actions-bar .fpd-views-nav,
fpd-actions-bar [data-action="previous-view"],
fpd-actions-bar [data-action="next-view"] {
	display: none !important;
}

/* Hide pagination text like "1/2" - handled in JavaScript */

/* Legacy support for view thumbnails */
.fpd-view-thumbnails,
.fpd-view-thumbnails-wrapper,
#fpd-view-thumbnails-target {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: center;
}

.fpd-view-thumbnail,
.fpd-view-thumbnail-item,
.fpd-view-thumbnails > div,
.fpd-view-thumbnails > a,
#fpd-view-thumbnails-target > div,
#fpd-view-thumbnails-target > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 300px;
	background: #fff;
	border-radius: 12px;
	border: 2px solid #e0e0e0;
	padding: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: relative;
}

.fpd-view-thumbnail:hover,
.fpd-view-thumbnail-item:hover,
.fpd-view-thumbnails > div:hover,
.fpd-view-thumbnails > a:hover,
#fpd-view-thumbnails-target > div:hover,
#fpd-view-thumbnails-target > a:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.fpd-view-thumbnail.fpd-active,
.fpd-view-thumbnail-item.fpd-active,
.fpd-view-thumbnails > div.fpd-active,
.fpd-view-thumbnails > a.fpd-active,
#fpd-view-thumbnails-target > div.fpd-active,
#fpd-view-thumbnails-target > a.fpd-active {
	border-color: #0073e6;
	box-shadow: 0 4px 12px rgba(0, 115, 230, 0.2);
}

.fpd-view-thumbnail img,
.fpd-view-thumbnail-item img,
.fpd-view-thumbnails > div img,
.fpd-view-thumbnails > a img,
#fpd-view-thumbnails-target > div img,
#fpd-view-thumbnails-target > a img {
	width: 100%;
	height: auto;
	max-width: 200px;
	object-fit: contain;
	margin-bottom: 15px;
}

.fpd-view-thumbnail::after,
.fpd-view-thumbnail-item::after,
.fpd-view-thumbnails > div.fpd-active::after,
.fpd-view-thumbnails > a.fpd-active::after,
#fpd-view-thumbnails-target > div.fpd-active::after,
#fpd-view-thumbnails-target > a.fpd-active::after {
	content: '';
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 2px;
	background: #0073e6;
	display: block;
}

.fpd-view-thumbnail span,
.fpd-view-thumbnail-item span,
.fpd-view-thumbnails > div span,
.fpd-view-thumbnails > a span,
#fpd-view-thumbnails-target > div span,
#fpd-view-thumbnails-target > a span {
	color: #666;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	margin-top: 10px;
}

.fpd-view-thumbnail.fpd-active span,
.fpd-view-thumbnail-item.fpd-active span,
.fpd-view-thumbnails > div.fpd-active span,
.fpd-view-thumbnails > a.fpd-active span,
#fpd-view-thumbnails-target > div.fpd-active span,
#fpd-view-thumbnails-target > a.fpd-active span {
	color: #333;
	font-weight: 600;
}

/* Hide narrow/horizontal view selector styles */
.fpd-view-thumbnails[style*="display: flex"][style*="flex-direction: row"],
.fpd-view-thumbnails[style*="display: inline-flex"] {
	flex-direction: column !important;
}

/* Alternative selectors for different view selector implementations */
.fpd-views-nav,
.fpd-views-navigation,
.fpd-view-selector {
	display: flex !important;
	flex-direction: column !important;
	gap: 15px !important;
	align-items: center !important;
}

.fpd-views-nav > *,
.fpd-views-navigation > *,
.fpd-view-selector > * {
	width: 100% !important;
	max-width: 300px !important;
	background: #fff !important;
	border-radius: 12px !important;
	border: 2px solid #e0e0e0 !important;
	padding: 20px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}

.fpd-views-nav > *.active,
.fpd-views-nav > *.selected,
.fpd-views-navigation > *.active,
.fpd-views-navigation > *.selected,
.fpd-view-selector > *.active,
.fpd-view-selector > *.selected {
	border-color: #0073e6 !important;
	box-shadow: 0 4px 12px rgba(0, 115, 230, 0.2) !important;
}

.fpd-views-nav > *.active::after,
.fpd-views-nav > *.selected::after,
.fpd-views-navigation > *.active::after,
.fpd-views-navigation > *.selected::after,
.fpd-view-selector > *.active::after,
.fpd-view-selector > *.selected::after {
	content: '' !important;
	position: absolute !important;
	bottom: 50px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: 80% !important;
	height: 2px !important;
	background: #0073e6 !important;
	display: block !important;
}

/* Navigation Sidebar Styling */
.fpd-navigation {
	background: #fff;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fpd-navigation.fpd-scrollbar-hidden {
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.fpd-navigation.fpd-scrollbar-hidden::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.fpd-navigation > *,
.fpd-navigation > div,
.fpd-navigation > button,
.fpd-navigation > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	margin: 0 8px;
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	color: #666;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	min-height: 70px;
}

.fpd-navigation > *:hover,
.fpd-navigation > div:hover,
.fpd-navigation > button:hover,
.fpd-navigation > a:hover {
	background: transparent;
	color: #333;
}

.fpd-navigation > *.fpd-active,
.fpd-navigation > *.active,
.fpd-navigation > div.fpd-active,
.fpd-navigation > div.active,
.fpd-navigation > button.fpd-active,
.fpd-navigation > button.active,
.fpd-navigation > a.fpd-active,
.fpd-navigation > a.active {
	background: #0073e6;
	color: #fff;
	border-radius: 0 12px 12px 0;
	margin-right: 0;
}

.fpd-navigation > * i,
.fpd-navigation > * svg,
.fpd-navigation > * .fpd-icon,
.fpd-navigation > div i,
.fpd-navigation > div svg,
.fpd-navigation > div .fpd-icon,
.fpd-navigation > button i,
.fpd-navigation > button svg,
.fpd-navigation > button .fpd-icon,
.fpd-navigation > a i,
.fpd-navigation > a svg,
.fpd-navigation > a .fpd-icon {
	font-size: 24px;
	margin-bottom: 6px;
	width: 24px;
	height: 24px;
	display: block;
}

.fpd-navigation > *.fpd-active i,
.fpd-navigation > *.active i,
.fpd-navigation > *.fpd-active svg,
.fpd-navigation > *.active svg,
.fpd-navigation > *.fpd-active .fpd-icon,
.fpd-navigation > *.active .fpd-icon,
.fpd-navigation > div.fpd-active i,
.fpd-navigation > div.active i,
.fpd-navigation > div.fpd-active svg,
.fpd-navigation > div.active svg,
.fpd-navigation > div.fpd-active .fpd-icon,
.fpd-navigation > div.active .fpd-icon,
.fpd-navigation > button.fpd-active i,
.fpd-navigation > button.active i,
.fpd-navigation > button.fpd-active svg,
.fpd-navigation > button.active svg,
.fpd-navigation > button.fpd-active .fpd-icon,
.fpd-navigation > button.active .fpd-icon,
.fpd-navigation > a.fpd-active i,
.fpd-navigation > a.active i,
.fpd-navigation > a.fpd-active svg,
.fpd-navigation > a.active svg,
.fpd-navigation > a.fpd-active .fpd-icon,
.fpd-navigation > a.active .fpd-icon {
	color: #fff;
	fill: #fff;
}

.fpd-navigation > * span,
.fpd-navigation > div span,
.fpd-navigation > button span,
.fpd-navigation > a span {
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
}

.fpd-navigation > *.fpd-active span,
.fpd-navigation > *.active span,
.fpd-navigation > div.fpd-active span,
.fpd-navigation > div.active span,
.fpd-navigation > button.fpd-active span,
.fpd-navigation > button.active span,
.fpd-navigation > a.fpd-active span,
.fpd-navigation > a.active span {
	color: #fff;
	font-weight: 500;
}

/* Additional navigation item selectors */
.fpd-navigation [data-module],
.fpd-navigation [data-action],
.fpd-navigation .fpd-module-item,
.fpd-navigation .fpd-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	margin: 0 8px;
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	color: #666;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	min-height: 70px;
}

.fpd-navigation [data-module]:hover,
.fpd-navigation [data-action]:hover,
.fpd-navigation .fpd-module-item:hover,
.fpd-navigation .fpd-nav-item:hover {
	background: transparent;
	color: #333;
}

.fpd-navigation [data-module].fpd-active,
.fpd-navigation [data-module].active,
.fpd-navigation [data-action].fpd-active,
.fpd-navigation [data-action].active,
.fpd-navigation .fpd-module-item.fpd-active,
.fpd-navigation .fpd-module-item.active,
.fpd-navigation .fpd-nav-item.fpd-active,
.fpd-navigation .fpd-nav-item.active {
	background: #0073e6;
	color: #fff;
	border-radius: 0 12px 12px 0;
	margin-right: 0;
}

.fpd-navigation [data-module].fpd-active *,
.fpd-navigation [data-module].active *,
.fpd-navigation [data-action].fpd-active *,
.fpd-navigation [data-action].active *,
.fpd-navigation .fpd-module-item.fpd-active *,
.fpd-navigation .fpd-module-item.active *,
.fpd-navigation .fpd-nav-item.fpd-active *,
.fpd-navigation .fpd-nav-item.active * {
	color: #fff;
	fill: #fff;
}

/* Text Editor Modal Styling */
.fpd-modal-text-editor,
.fpd-text-editor-modal,
.fpd-modal[data-type="text"] {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Language Tabs - Show only Arabic and English */
.fpd-text-lang-tab,
.fpd-lang-tab,
[data-lang] {
	display: inline-block;
	padding: 10px 20px;
	margin: 0 5px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

.fpd-text-lang-tab.active,
.fpd-lang-tab.active,
[data-lang].active {
	color: #0073e6;
	border-bottom-color: #0073e6;
	font-weight: 600;
}

/* Hide Greek and Hebrew tabs */
.fpd-text-lang-tab[data-lang="el"],
.fpd-text-lang-tab[data-lang="he"],
.fpd-lang-tab[data-lang="el"],
.fpd-lang-tab[data-lang="he"],
[data-lang="el"],
[data-lang="he"] {
	display: none !important;
}

/* Text Input Field */
.fpd-text-input,
.fpd-modal-text-input,
textarea[name*="text"],
input[name*="text"] {
	width: 100%;
	min-height: 120px;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.3s ease;
}

.fpd-text-input:focus,
.fpd-modal-text-input:focus,
textarea[name*="text"]:focus,
input[name*="text"]:focus {
	outline: none;
	border-color: #0073e6;
}

/* Font Selector with Google Fonts */
select[name*="font"],
select[data-type="font"],
.fpd-font-select,
[data-font-select] {
	width: 100%;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

select[name*="font"] option,
select[data-type="font"] option {
	padding: 8px;
	font-family: inherit;
}

/* Apply Google Fonts to font selector options */
select[name*="font"] option,
select[data-type="font"] option {
	font-family: var(--font-family, inherit);
}

/* Real-time text updates on canvas */
.fpd-view-stage canvas {
	transition: none;
	position: relative;
	z-index: 1;
}

/* Ensure newly added images appear above background template */
.fpd-view-stage canvas .upper-canvas,
.fpd-view-stage .fpd-canvas-wrapper,
.fpd-view-stage .fpd-canvas-container {
	position: relative;
	z-index: 1;
}

/* Ensure user-added images have higher z-index than background */
.fpd-view-stage img:not([src*="product-templates"]) {
	position: relative;
	z-index: 2;
}

/* Product template images layer */
.fpd-view-stage img[src*="product-templates"],
.fpd-view-stage .fpd-base-image,
.fpd-view-stage .fpd-template-image {
	position: relative;
	z-index: 1;
}

/* Text Module Sidebar Styling - Target fpd-module-text.fpd-active */
fpd-module-text.fpd-active {
	display: block;
	width: 320px;
	max-width: 320px;
	max-height: 650px;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
}

fpd-module-text.fpd-active textarea,
fpd-module-text.fpd-active input[type="text"] {
	width: 100%;
	min-height: 120px;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.3s ease;
}

fpd-module-text.fpd-active textarea:focus,
fpd-module-text.fpd-active input[type="text"]:focus {
	outline: none;
	border-color: #0073e6;
}

fpd-module-text.fpd-active select {
	width: 100%;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

/* Language tabs in fpd-module-text.fpd-active */
fpd-module-text.fpd-active [data-lang],
fpd-module-text.fpd-active .fpd-lang-tab {
	display: inline-block;
	padding: 10px 20px;
	margin: 0 5px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

fpd-module-text.fpd-active [data-lang].active,
fpd-module-text.fpd-active .fpd-lang-tab.active {
	color: #0073e6;
	border-bottom-color: #0073e6;
	font-weight: 600;
}

/* Hide Greek and Hebrew in fpd-module-text.fpd-active */
fpd-module-text.fpd-active [data-lang="el"],
fpd-module-text.fpd-active [data-lang="he"],
fpd-module-text.fpd-active .fpd-lang-tab[data-lang="el"],
fpd-module-text.fpd-active .fpd-lang-tab[data-lang="he"] {
	display: none !important;
}

/* Make fpd-add-text scrollable and increase wrapper height */
.fpd-add-text {
	max-height: 900px;
	min-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 10px;
}

.fpd-add-text::-webkit-scrollbar {
	width: 8px;
}

.fpd-add-text::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.fpd-add-text::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.fpd-add-text::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Additional styling for product designer wrapper (height already set above) */

/* Scrollbar styling for text module container */
fpd-module-text.fpd-active::-webkit-scrollbar {
	width: 8px;
}

fpd-module-text.fpd-active::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

fpd-module-text.fpd-active::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

fpd-module-text.fpd-active::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Enhanced Text Controls Styling */
.fpd-enhanced-text-controls {
	padding: 15px 0;
	background: #fff;
}

/* Action Buttons Row */
.fpd-action-buttons-row {
	display: flex;
	gap: 8px;
	padding: 10px 15px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 15px;
}

.fpd-action-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 1;
	min-width: 0;
}

.fpd-action-btn:hover {
	background: #f5f5f5;
	border-color: #d0d0d0;
}

.fpd-action-btn.active {
	background: #0073e6;
	border-color: #0073e6;
	color: #fff;
}

.fpd-action-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.fpd-action-btn span {
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	text-align: center;
}

/* Property Controls */
.fpd-property-controls {
	padding: 0 15px;
}

.fpd-property-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.fpd-property-row:hover {
	background-color: #fafafa;
	padding-left: 4px;
	padding-right: 4px;
	margin-left: -4px;
	margin-right: -4px;
	border-radius: 6px;
}

.fpd-property-row:last-child {
	border-bottom: none;
}

.fpd-property-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	flex-shrink: 0;
	min-width: 80px;
	letter-spacing: 0.2px;
}

.fpd-property-control {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: flex-end;
	cursor: pointer;
}

.fpd-property-control.fpd-slider-control {
	cursor: default;
	gap: 12px;
}

/* Font Display */
.fpd-font-display {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	flex: 1;
	text-align: right;
}

/* Color Display */
.fpd-color-swatch {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 1px solid #ddd;
	flex-shrink: 0;
}

.fpd-color-name {
	font-size: 14px;
	color: #333;
	flex: 1;
	text-align: right;
}

/* Outline Display */
.fpd-outline-display {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	justify-content: flex-end;
}

.fpd-outline-none {
	width: 16px;
	height: 16px;
	border: 1px solid #ddd;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff0000;
	font-size: 12px;
	flex-shrink: 0;
}

.fpd-outline-display span:last-child {
	font-size: 14px;
	color: #333;
}

/* Dropdown Arrow */
.fpd-dropdown-arrow {
	font-size: 10px;
	color: #999;
	flex-shrink: 0;
	margin-left: 4px;
}

/* Slider Controls - Enhanced UI */
.fpd-slider-control {
	position: relative;
}

.fpd-slider-control input[type="range"] {
	flex: 1;
	height: 6px;
	background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
	border-radius: 10px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fpd-slider-control input[type="range"]:hover {
	background: linear-gradient(to right, #d0d0d0 0%, #d0d0d0 100%);
}

.fpd-slider-control input[type="range"]:active {
	background: linear-gradient(to right, #0073e6 0%, #0073e6 100%);
}

/* Webkit Slider Thumb - Enhanced */
.fpd-slider-control input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.8);
	transition: all 0.2s ease;
	border: none;
}

.fpd-slider-control input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(0, 115, 230, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.9);
	background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
}

.fpd-slider-control input[type="range"]::-webkit-slider-thumb:active {
	transform: scale(1.1);
	box-shadow: 0 2px 4px rgba(0, 115, 230, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Firefox Slider Thumb - Enhanced */
.fpd-slider-control input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.8);
	transition: all 0.2s ease;
}

.fpd-slider-control input[type="range"]::-moz-range-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(0, 115, 230, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.9);
	background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
}

.fpd-slider-control input[type="range"]::-moz-range-thumb:active {
	transform: scale(1.1);
	box-shadow: 0 2px 4px rgba(0, 115, 230, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.fpd-slider-control input[type="range"]::-moz-range-track {
	height: 6px;
	background: #e0e0e0;
	border-radius: 10px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Number Input - Enhanced */
.fpd-slider-control input[type="number"] {
	width: 70px;
	padding: 8px 10px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	background: #fff;
	color: #333;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fpd-slider-control input[type="number"]:hover {
	border-color: #0073e6;
	box-shadow: 0 2px 6px rgba(0, 115, 230, 0.15);
	background: #f8f9ff;
}

.fpd-slider-control input[type="number"]:focus {
	outline: none;
	border-color: #0073e6;
	box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1), 0 2px 6px rgba(0, 115, 230, 0.2);
	background: #fff;
}

.fpd-slider-control input[type="number"]::-webkit-outer-spin-button,
.fpd-slider-control input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Hide text templates scroll area */
.fpd-text-templates.fpd-scroll-area {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
	max-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Color Picker Modal */
.fpd-color-picker-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fpd-color-picker-panel {
	background: #f5f5f5;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.fpd-color-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 12px 12px 0 0;
}

.fpd-color-picker-back,
.fpd-color-picker-close {
	font-size: 24px;
	color: #666;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.fpd-color-picker-back:hover,
.fpd-color-picker-close:hover {
	background: #f0f0f0;
}

.fpd-color-picker-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.fpd-color-picker-subtitle {
	font-size: 11px;
	color: #0073e6;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.fpd-color-picker-main-title {
	font-size: 18px;
	color: #333;
	font-weight: 500;
}

.fpd-color-picker-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	background: #f5f5f5;
}

.fpd-current-color-display {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #333;
}

.fpd-current-color-swatch {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	border: 1px solid #ddd;
	flex-shrink: 0;
}

.fpd-current-color-name {
	font-weight: 500;
}

.fpd-used-colors-section {
	margin-bottom: 25px;
}

.fpd-used-colors-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.fpd-water-drop-icon {
	font-size: 16px;
	display: inline-block;
}

.fpd-used-colors-grid,
.fpd-color-palette {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
}

.fpd-color-swatch-item {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 6px;
	cursor: pointer;
	position: relative;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fpd-color-swatch-item:hover {
	transform: scale(1.1);
	border-color: #0073e6;
	z-index: 1;
}

.fpd-color-swatch-item.selected {
	border-color: #0073e6;
	box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.2);
}

.fpd-color-swatch-item.selected .fpd-water-drop-icon {
	color: #fff;
	font-size: 14px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fpd-color-picker-footer {
	padding: 20px;
	background: #fff;
	border-top: 1px solid #e0e0e0;
	border-radius: 0 0 12px 12px;
}

.fpd-select-color-btn {
	width: 100%;
	padding: 14px;
	background: #0073e6;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fpd-select-color-btn:hover {
	background: #005bb5;
}

.fpd-select-color-btn:active {
	transform: scale(0.98);
}

/* Scrollbar for color picker content */
.fpd-color-picker-content::-webkit-scrollbar {
	width: 8px;
}

.fpd-color-picker-content::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.fpd-color-picker-content::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.fpd-color-picker-content::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Hide unwanted text editor UI elements */
fpd-module-text .fpd-close-sub-panel,
fpd-module-text .fpd-close,
fpd-module-text .fpd-tools-nav,
fpd-module-text .fpd-sub-panel {
	display: none !important;
}

/* Hide floating toolbar/panel - all edits should be from sidebar only */
.fpd-layout-large.fpd-container.fpd-smart.fpd-show,
.fpd-layout-large.fpd-container.fpd-smart,
.fpd-container.fpd-smart.fpd-show {
	display: none !important;
}

/* Font Picker Modal */
.fpd-font-picker-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

.fpd-font-picker-panel {
	background: #fff;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
}

.fpd-font-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #f8f9fa;
	border-radius: 12px 12px 0 0;
}

.fpd-font-picker-back,
.fpd-font-picker-close {
	cursor: pointer;
	font-size: 24px;
	color: #666;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.fpd-font-picker-back:hover,
.fpd-font-picker-close:hover {
	background: #e0e0e0;
	color: #333;
}

.fpd-font-picker-title {
	flex: 1;
	text-align: center;
}

.fpd-font-picker-subtitle {
	display: block;
	font-size: 11px;
	color: #0073e6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.fpd-font-picker-main-title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.fpd-font-picker-content {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fpd-font-search-bar {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	gap: 10px;
	align-items: center;
}

.fpd-font-search-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s ease;
}

.fpd-font-search-input:focus {
	border-color: #0073e6;
}

.fpd-font-search-btn {
	width: 44px;
	height: 44px;
	background: #0073e6;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background 0.2s ease;
}

.fpd-font-search-btn:hover {
	background: #005bb5;
}

.fpd-font-categories {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.fpd-view-all-categories {
	color: #0073e6;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.fpd-view-all-categories:hover {
	color: #005bb5;
	text-decoration: underline;
}

.fpd-font-list {
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
}

.fpd-font-list::-webkit-scrollbar {
	width: 8px;
}

.fpd-font-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.fpd-font-list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.fpd-font-list::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.fpd-font-item {
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
}

.fpd-font-item:hover {
	background: #f8f9fa;
}

.fpd-font-item.selected {
	background: #f0f7ff !important;
	border-left: 3px solid #0073e6;
}

.fpd-font-preview {
	font-family: inherit;
	font-size: 32px;
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
}

.fpd-font-name {
	padding: 12px 20px;
	font-size: 14px;
	color: #333;
	background: #fff;
}

.fpd-select-font-btn {
	margin: 0 20px 20px;
	padding: 10px 20px;
	background: #0073e6;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	width: calc(100% - 40px);
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.fpd-select-font-btn:hover {
	background: #005bb5;
}

/* Outline Picker Modal */
.fpd-outline-picker-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

.fpd-outline-picker-panel {
	background: #fff;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
	overflow: hidden;
}

.fpd-outline-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #f8f9fa;
	border-radius: 12px 12px 0 0;
}

.fpd-outline-picker-back,
.fpd-outline-picker-close {
	cursor: pointer;
	font-size: 24px;
	color: #666;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.fpd-outline-picker-back:hover,
.fpd-outline-picker-close:hover {
	background: #e0e0e0;
	color: #333;
}

.fpd-outline-picker-title {
	flex: 1;
	text-align: center;
}

.fpd-outline-picker-subtitle {
	display: block;
	font-size: 11px;
	color: #0073e6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.fpd-outline-picker-main-title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.fpd-outline-picker-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
}

.fpd-outline-picker-content::-webkit-scrollbar {
	width: 8px;
}

.fpd-outline-picker-content::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.fpd-outline-picker-content::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.fpd-outline-picker-content::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.fpd-current-outline-color-display {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fpd-current-outline-color-swatch {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	display: inline-block;
	position: relative;
}

.fpd-current-outline-color-name {
	font-size: 14px;
	color: #333;
}

.fpd-used-outline-colors-section {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.fpd-used-outline-colors-header {
	margin-bottom: 10px;
	font-size: 12px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.fpd-used-outline-colors-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
}

.fpd-outline-color-palette {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
}

.fpd-outline-color-swatch-item {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 6px;
	cursor: pointer;
	position: relative;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fpd-outline-color-swatch-item:hover {
	transform: scale(1.1);
	border-color: #0073e6;
	z-index: 1;
}

.fpd-outline-color-swatch-item.selected {
	border-color: #0073e6;
	box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.2);
}

.fpd-outline-fabric-option {
	padding: 15px 20px;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fpd-outline-fabric-option:hover {
	background: #f8f9fa;
}

.fpd-outline-size-section {
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.fpd-outline-size-section > div:first-child {
	margin-bottom: 10px;
	font-weight: 500;
	color: #333;
}

.fpd-outline-size-slider {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: #e0e0e0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.fpd-outline-size-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #0073e6;
	cursor: pointer;
}

.fpd-outline-size-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #0073e6;
	cursor: pointer;
	border: none;
}

.fpd-outline-size-input {
	width: 60px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
}

.fpd-outline-picker-footer {
	padding: 20px;
	background: #fff;
	border-top: 1px solid #e0e0e0;
	border-radius: 0 0 12px 12px;
}

.fpd-select-outline-btn {
	width: 100%;
	padding: 12px;
	background: #0073e6;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s ease;
}

.fpd-select-outline-btn:hover {
	background: #005bb5;
}

/* Hide undo/redo buttons from actions bar and navbar */
.fpd-actions-bar [data-action="undo"],
.fpd-actions-bar [data-action="redo"],
.fpd-actions [data-action="undo"],
.fpd-actions [data-action="redo"],
.fpd-btn[data-action="undo"]:not(.fpd-canvas-control-btn),
.fpd-btn[data-action="redo"]:not(.fpd-canvas-control-btn),
.fpd-tooltip[data-action="undo"]:not(.fpd-canvas-control-btn),
.fpd-tooltip[data-action="redo"]:not(.fpd-canvas-control-btn) {
	display: none !important;
	visibility: hidden !important;
}

/* Canvas-positioned undo/redo buttons */
.fpd-canvas-controls {
	position: absolute;
	left: 20px;
	top: 20px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Style original FPD buttons when moved to canvas position */
.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f5f5f5;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	transition: all 0.2s ease;
	min-width: 120px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin: 0;
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn:hover {
	background: #e8e8e8;
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn:active {
	transform: scale(0.98);
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn.fpd-disabled,
.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn:disabled {
	background: #fff;
	color: #999;
	cursor: not-allowed;
	opacity: 0.6;
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn.fpd-disabled:hover,
.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn:disabled:hover {
	background: #fff;
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn i {
	font-size: 16px;
	margin: 0;
}

.fpd-canvas-controls .fpd-btn.fpd-canvas-control-btn span {
	margin: 0;
	font-size: 14px;
}

/* Start Over button styling - matches undo/redo buttons */
.fpd-canvas-controls .fpd-start-over-btn {
	/* Same styling as other canvas control buttons */
	background: #f5f5f5;
	border: none;
	color: #333;
}

.fpd-canvas-controls .fpd-start-over-btn:hover {
	background: #e8e8e8;
}

.fpd-canvas-controls .fpd-start-over-btn:active {
	transform: scale(0.98);
}

.fpd-canvas-controls .fpd-start-over-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Custom Confirmation Dialog - matches plugin design */
.fpd-confirm-dialog-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

.fpd-confirm-dialog-panel {
	background: #fff;
	border-radius: 12px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
	overflow: hidden;
}

.fpd-confirm-dialog-content {
	padding: 30px;
	text-align: center;
}

.fpd-confirm-dialog-content p {
	margin: 0;
	font-size: 16px;
	color: #333;
	line-height: 1.5;
}

.fpd-confirm-dialog-footer {
	display: flex;
	gap: 12px;
	padding: 20px 30px 30px;
	justify-content: flex-end;
	background: #f8f9fa;
	border-top: 1px solid #e0e0e0;
}

.fpd-confirm-btn {
	padding: 10px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 80px;
}

.fpd-confirm-btn.fpd-confirm-cancel {
	background: #e0e0e0;
	color: #333;
}

.fpd-confirm-btn.fpd-confirm-cancel:hover {
	background: #d0d0d0;
}

.fpd-confirm-btn.fpd-confirm-ok {
	background: #0073e6;
	color: #fff;
}

.fpd-confirm-btn.fpd-confirm-ok:hover {
	background: #005bb5;
}

.fpd-confirm-btn:active {
	transform: scale(0.98);
}

/* Custom Alert/Notification Dialog - matches plugin design */
.fpd-alert-dialog-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

.fpd-alert-dialog-panel {
	background: #fff;
	border-radius: 12px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
	overflow: hidden;
}

.fpd-alert-dialog-panel.fpd-alert-success {
	border-top: 4px solid #27ae60;
}

.fpd-alert-dialog-panel.fpd-alert-error {
	border-top: 4px solid #e74c3c;
}

.fpd-alert-dialog-panel.fpd-alert-info {
	border-top: 4px solid #0073e6;
}

.fpd-alert-dialog-content {
	padding: 30px;
	text-align: center;
}

.fpd-alert-icon {
	font-size: 48px;
	margin-bottom: 15px;
	line-height: 1;
}

.fpd-alert-success .fpd-alert-icon {
	color: #27ae60;
}

.fpd-alert-error .fpd-alert-icon {
	color: #e74c3c;
}

.fpd-alert-info .fpd-alert-icon {
	color: #0073e6;
}

.fpd-alert-dialog-content p {
	margin: 0;
	font-size: 16px;
	color: #333;
	line-height: 1.5;
}

.fpd-alert-dialog-footer {
	display: flex;
	justify-content: center;
	padding: 20px 30px 30px;
	background: #f8f9fa;
	border-top: 1px solid #e0e0e0;
}

.fpd-alert-btn {
	padding: 10px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 80px;
}

.fpd-alert-btn.fpd-alert-ok {
	background: #0073e6;
	color: #fff;
}

.fpd-alert-btn.fpd-alert-ok:hover {
	background: #005bb5;
}

.fpd-alert-success .fpd-alert-btn.fpd-alert-ok {
	background: #27ae60;
}

.fpd-alert-success .fpd-alert-btn.fpd-alert-ok:hover {
	background: #229954;
}

.fpd-alert-error .fpd-alert-btn.fpd-alert-ok {
	background: #e74c3c;
}

.fpd-alert-error .fpd-alert-btn.fpd-alert-ok:hover {
	background: #c0392b;
}

.fpd-alert-btn:active {
	transform: scale(0.98);
}

/* Size Selection Form Styles */
.fpd-size-selection-wrapper {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
}

.fpd-size-group {
	margin-bottom: 25px;
}

.fpd-size-group:last-child {
	margin-bottom: 0;
}

/* Bulk Order Title */
.fpd-bulk-order-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 20px 0;
	padding: 0;
	text-align: left;
}

.fpd-size-group-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
	padding: 0;
}

/* Size Buttons Row */
.fpd-size-buttons-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 15px;
}

.fpd-size-button {
	background: #fff;
	border: 2px solid #d0d0d0;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 50px;
	text-align: center;
	flex: 0 0 auto;
}

.fpd-size-button:hover {
	border-color: #4a90e2;
	background: #f5f8ff;
	color: #4a90e2;
}

.fpd-size-button.active {
	border-color: #4a90e2;
	background: #4a90e2;
	color: #fff;
}

.fpd-size-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Size Quantities Row */
.fpd-size-quantities-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
}

.fpd-size-quantity-item {
	flex: 0 0 auto;
	min-width: 50px;
}

.fpd-size-quantity-item input.fpd-size-quantity-input {
	width: 80px;
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 15px;
	text-align: center;
	transition: all 0.2s ease;
	background: #fff;
	-moz-appearance: textfield;
}

.fpd-size-quantity-item input.fpd-size-quantity-input::-webkit-outer-spin-button,
.fpd-size-quantity-item input.fpd-size-quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fpd-size-quantity-item input.fpd-size-quantity-input:focus {
	outline: none;
	border-color: #4a90e2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
	background: #f9f9f9;
}

.fpd-size-quantity-item input.fpd-size-quantity-input:hover {
	border-color: #b0b0b0;
}

.fpd-size-quantity-item input.fpd-size-quantity-input:not(:placeholder-shown) {
	border-color: #4a90e2;
	font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.fpd-size-buttons-row {
		gap: 8px;
	}
	
	.fpd-size-button {
		padding: 8px 15px;
		font-size: 13px;
		min-width: 45px;
	}
	
	.fpd-size-quantities-row {
		gap: 8px;
	}
	
	.fpd-size-quantity-item {
		min-width: 45px;
	}
	
	.fpd-size-quantity-item input.fpd-size-quantity-input {
		width: 70px;
		padding: 8px 10px;
		font-size: 14px;
	}
}

/* Bulk Quantity Selector Styles */
.fpd-bulk-quantity-wrapper {
	margin: 20px 0;
	padding: 15px 0;
}

.fpd-quantity-group {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.fpd-quantity-label {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin: 0;
	min-width: 80px;
}

.fpd-quantity-input-wrapper {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.fpd-quantity-btn {
	background: #f5f5f5;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	transition: background-color 0.2s ease, color 0.2s ease;
	user-select: none;
	min-width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fpd-quantity-btn:hover {
	background: #e0e0e0;
	color: #000;
}

.fpd-quantity-btn:active {
	background: #d0d0d0;
}

.fpd-quantity-btn:focus {
	outline: 2px solid #4a90e2;
	outline-offset: -2px;
}

.fpd-bulk-quantity-input {
	width: 80px;
	padding: 10px;
	border: none;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	font-size: 16px;
	text-align: center;
	font-weight: 500;
	-moz-appearance: textfield;
	background: #fff;
}

.fpd-bulk-quantity-input::-webkit-outer-spin-button,
.fpd-bulk-quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fpd-bulk-quantity-input:focus {
	outline: none;
	background: #f9f9f9;
}

/* Responsive adjustments for bulk quantity */
@media (max-width: 768px) {
	.fpd-quantity-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.fpd-quantity-label {
		min-width: auto;
	}
	
	.fpd-bulk-quantity-input {
		width: 70px;
		padding: 8px;
	}
	
	.fpd-quantity-btn {
		padding: 8px 12px;
		min-width: 35px;
	}
}

/* Hide WooCommerce quantity input when size selection is enabled */
.fpd-size-selection-wrapper ~ .quantity,
.fpd-size-selection-wrapper ~ form .quantity,
.single-product form.cart .quantity:has(~ .fpd-size-selection-wrapper),
.single-product form.cart:has(.fpd-size-selection-wrapper) .quantity {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Alternative selector for themes that place quantity differently */
body.single-product:has(.fpd-size-selection-wrapper) form.cart .quantity,
body.single-product:has(.fpd-size-selection-wrapper) .woocommerce-variation-add-to-cart .quantity,
body.single-product:has(.fpd-size-selection-wrapper) .woocommerce-variation-add-to-cart-wrapper .quantity,
body.single-product:has(.fpd-size-selection-wrapper) .single_variation_wrap .quantity {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide quantity input specifically next to add to cart button */
form.cart:has(.fpd-size-selection-wrapper) .quantity,
.woocommerce-variation-add-to-cart:has(~ .fpd-size-selection-wrapper) .quantity,
.woocommerce-variation-add-to-cart-wrapper:has(.fpd-size-selection-wrapper) .quantity {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide WooCommerce size variation selectors when FPD bulk sizes are enabled */
body:has(.fpd-size-selection-wrapper) .variations tr:has(label:contains("Size")),
body:has(.fpd-size-selection-wrapper) .variations tr:has(label:contains("SIZE")),
body:has(.fpd-size-selection-wrapper) .variations tr:has(th:contains("Size")),
body:has(.fpd-size-selection-wrapper) .variations tr:has(th:contains("SIZE")),
body:has(.fpd-size-selection-wrapper) .variations select[name*="attribute_size"],
body:has(.fpd-size-selection-wrapper) .variations select[name*="attribute_pa_size"],
body:has(.fpd-size-selection-wrapper) .variations select[id*="size"],
body:has(.fpd-size-selection-wrapper) .variations_form .variations tr:has(select[name*="size"]),
body:has(.fpd-size-selection-wrapper) label:contains("SIZE:"),
body:has(.fpd-size-selection-wrapper) label:contains("Size:") {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* More aggressive hiding for all quantity inputs when size selection exists */
body:has(.fpd-size-selection-wrapper) .single-product form.cart .quantity input[type="number"],
body:has(.fpd-size-selection-wrapper) .single-product .quantity input.qty,
body:has(.fpd-size-selection-wrapper) .single-product form.cart input[name="quantity"],
body:has(.fpd-size-selection-wrapper) .single-product input.qty,
body:has(.fpd-size-selection-wrapper) .single-product input[type="text"][name="quantity"],
body:has(.fpd-size-selection-wrapper) .single-product input.input-text.qty,
body:has(.fpd-size-selection-wrapper) .single-product input[id^="quantity_"] {
	display: none !important;
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	opacity: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

