div#phone-cform label:before {
	content: "\e91f";
	font-family: 'icomoon';
	color: var(--color1);
	margin-left: 10px;
	font-size: 18px;
	background-repeat: no-repeat;
	background-size: contain;
}
.wpc_form_holder {
    margin: auto;
    background: #fcfdfd;
    margin-bottom: 50px;
    margin-top: 50px;
    border-radius: 10px;
    padding: 40px;
	display:block !important;
	position: relative;
}
span.wpc_acf-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #57575726;
    z-index: 9;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wpc_form_holder .form-validate-jquery {
    max-width: 600px;
    margin: auto;
}
.wpc-order-app.wpc_form_holder .form-validate-jquery,
.wpc-order-app .form-validate-jquery {
	max-width: none !important;
	width: 100%;
	margin: 0;
}
.wpc_form_holder div#type-cform {
	padding:0px
}	
.wpc_form_holder select {
    font-size: 20px;
    font-weight: 800;
    border-radius: 25px;
    padding-left: 50px !important;
    height: 50px;
}
.wpc_form_holder span.acf-required {
    font-family: math;
    color: red;
    font-weight: 900;
    font-size: 17px;
}
.wpc_form_holder {
    padding: 15px;
}

.wpc_form_holder .editor-content input {
    height: 50px !important;
    max-height: unset !important;
    border-radius: 15px;
    font-size: 20px !important;
}

button.acf-button.button.wpc_form_submit {
    font-size: 20px;
    margin: auto;
    padding: 20px;
}

.wpc_form_holder .acf-form-submit{
    margin: auto;
    width: auto;
    margin-top: 35px;
    margin-bottom: 25px;
}
span.mini_hint {
    font-size: 11px;
    margin-right: 10px;
}
div#vcode-cform {
    padding: 10px;
    background: #ff000012;
    border: 1px solid #ff9f9f;
    box-shadow: 0px 0px 10px #ff000042;
    border-radius: 10px;
}
.boingInUp {
    -webkit-animation-name: boingInUp;
    animation-name: boingInUp
}

@-webkit-keyframes boingInUp {
    0% {
        opacity: 0;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(-90deg)
    }

    50% {
        opacity: 1;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(50deg)
    }

    100% {
        opacity: 1;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(0deg)
    }
}

@keyframes boingInUp {
    0% {
        opacity: 0;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(-90deg)
    }

    50% {
        opacity: 1;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(50deg)
    }

    100% {
        opacity: 1;
        transform-origin: 50% 0%;
        transform: perspective(800px) rotateX(0deg)
    }
}

.wpc_form_holder.is_product_page {
    margin: 0px;
}

.wpc_form_holder.is_product_page .acf-form-submit {
    margin-top: 5px;
    margin-bottom: 5px;
}

.wpc_form_holder.is_product_page select {
    font-size: 15px;
    height: 40px;
    padding: 0px;
    padding-right: 20px;
}

.wpc_form_holder.is_product_page .editor-content input {
    font-size: 16px;
    height: 40px !important;
    text-align: center;
}
.result_of_calc.is_addtocard_calculator table {
    width: 100%;
    text-align: center;
}

.result_of_calc.is_addtocard_calculator td , .result_of_calc.is_addtocard_calculator th {
    border: 1px solid #afafaf !important;
}

.result_of_calc.is_addtocard_calculator {
    margin-bottom: 30px;
}

.wpc_choose_button_holder.card .quantity {
    width: 100%;
    max-width: 160px;
    margin: auto;
    margin-bottom: 5px;
}

.wpc_choose_button_holder.card .quantity input {
    width: 60px !important;
    height: 31px !important;
}

.wpc_choose_button_holder.card {
    padding: 10px;
}

.wpc_loader {
     border: 5px solid #f3f3f3;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.result_of_calc a {
    background: #2b8f39;
    color: white;
    padding: 8px;
    border-radius: 5px;
}

.result_of_calc a:hover {
    background: #c30000;
    color: white;
}

.wpc-inquiry-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.profile-color-options select,
.wpc-dimensions-row input {
    width: 100%;
}
@media screen and (max-width: 576px){
.wpc_form_holder select {
    font-size: 15px;
    font-weight: 800;
    border-radius: 25px;
    padding-left: 50px !important;
    height: 50px !important;
}	

.wpc_form_holder.is_product_page select {
    font-size: 14px;
    height: 40px !important;
    padding: 0px;
    padding-right: 20px;
}
	
}

.wpc-order-app.wpc-in-content,
.wpc_form_holder.wpc-in-content {
	width: 100%;
	max-width: none;
	clear: both;
}

.wpc-in-content .form-validate-jquery {
	max-width: none;
	width: 100%;
	margin: 0;
}

.wpc_form_holder.wpc-in-content.is_product_page {
	margin: 24px 0;
	padding: 16px;
}

.wpc-admin-hint {
	padding: 12px 16px;
	background: #fff8e5;
	border: 1px solid #f0c33c;
	border-radius: 8px;
	color: #6a5500;
}

.wpc-product-settings-shortcode code {
	display: inline-block;
	margin: 4px 8px 4px 0;
	padding: 4px 10px;
	background: #f0f0f1;
	border-radius: 4px;
	font-size: 13px;
}

/* ── سیستم سفارش چند درب (index) ── */
.wpc-order-app.wpc_form_holder .form-validate-jquery {
	max-width: none !important;
	width: 100%;
}

.wpc-order-app {
	direction: rtl;
	text-align: right;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: 'Vazirmatn', sans-serif;
	background-color: #f8fafc;
	--wpc-sticky-base-top: 16px;
	--wpc-toolbar-sticky-height: 52px;
	--wpc-sticky-gap: 8px;
	--wpc-theme-primary: var(--color1, var(--e-global-color-primary, var(--wp--preset--color--primary, #4f46e5)));
	--wpc-theme-primary-dark: var(--color2, var(--e-global-color-accent, #4338ca));
	--wpc-theme-on-primary: #fff;
}

@media (min-width: 768px) {
	.admin-bar .wpc-order-app {
		--wpc-sticky-base-top: 48px;
	}
}

/* تب توضیحات ووکامرس — sticky خراب نشود */
.woocommerce-Tabs-panel:has(.wpc-order-app),
.woocommerce-Tabs-panel--description,
#tab-description,
.entry-content:has(.wpc-order-app),
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-tabs .wc-tab,
.woocommerce #content .woocommerce-tabs,
.elementor-widget-woocommerce-product-data-tabs,
.elementor-widget-tabs .elementor-tabs-content-wrapper,
.elementor-element .e-con,
.woocommerce-page .site-content,
.woocommerce-page #main,
.woocommerce-page .content-area {
	overflow: visible !important;
}

.wpc-order-app,
.wpc-order-app .wpc_inquiries_form,
.wpc-order-app .wpc-door-form-container,
.wpc-order-app .wpc-layout,
.wpc-order-app .wpc-layout-main,
.wpc-order-app .wpc-layout-preview {
	overflow: visible !important;
}

.wpc-door-form-container {
	container-type: inline-size;
	container-name: wpc-form;
}

.wpc-intro {
	text-align: center;
	color: #646970;
	margin-bottom: 1rem;
}

.wpc-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	direction: rtl;
	position: -webkit-sticky;
	position: sticky;
	top: 16px;
	z-index: 13;
	padding: 10px 0;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
	.admin-bar .wpc-toolbar-row {
		top: 48px;
	}
}

.wpc-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	flex-shrink: 0;
	margin-bottom: 0;
}

.wpc-order-app .wpc-symmetrical-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	margin: 0;
}

.wpc-order-app .wpc-symmetrical-toggle input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	cursor: pointer;
	border-radius: 0.25rem;
	border: 1px solid #d1d5db;
	accent-color: #4f46e5;
}

.wpc-order-app .wpc-symmetrical-toggle input[type="checkbox"]:disabled {
	cursor: not-allowed;
}

.wpc-order-app .wpc-symmetrical-toggle input[type="checkbox"]:disabled + span {
	opacity: 0.5;
	cursor: not-allowed;
}

.wpc-door-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.wpc-order-app .wpc-door-item {
	cursor: pointer;
	padding: 8px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	flex-shrink: 0;
	white-space: nowrap;
	transition: all 0.2s ease-in-out;
}

.wpc-order-app .wpc-door-item.active {
	border-color: #2563eb;
	background: #eff6ff;
	font-weight: 700;
}

/* toolbar موبایل: بلوک responsive پایین فایل */

.wpc-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: stretch;
}

/* دو ستون وقتی خودِ باکس ماشین‌حساب عریض باشد (نه فقط عرض کل صفحه) */
@container wpc-form (min-width: 620px) {
	.wpc-layout {
		direction: ltr;
		grid-template-columns: minmax(220px, 34%) minmax(0, 66%);
		gap: 18px;
	}

	.wpc-layout-main,
	.wpc-layout-preview {
		direction: rtl;
		text-align: right;
		min-width: 0;
	}
}

@media (min-width: 768px) {
	.wpc-layout {
		direction: ltr;
		grid-template-columns: minmax(240px, 36%) minmax(0, 64%);
		gap: 20px;
	}

	.wpc-layout-main,
	.wpc-layout-preview {
		direction: rtl;
		text-align: right;
		min-width: 0;
	}
}

.wpc-layout-preview {
	align-self: stretch;
	min-height: 100%;
	height: auto;
}

.wpc-order-app .wpc-preview-card.wpc-sticky-preview {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: calc(var(--wpc-sticky-base-top) + var(--wpc-toolbar-sticky-height) + var(--wpc-sticky-gap)) !important;
	z-index: 11 !important;
	align-self: start;
	width: 100%;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	background: #fff;
	will-change: transform;
}

.wpc-sticky-door-bar {
	display: none;
}

.wpc-compact-sticky-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	margin-bottom: 16px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
}

.wpc-sticky-mini-preview {
	flex: 0 0 auto;
	width: 72px;
	min-height: 88px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f0f0f1;
	border-radius: 8px;
	padding: 4px;
}

.wpc-sticky-mini-preview .wpc-preview-frame {
	max-width: 64px;
	max-height: 72px;
}

.wpc-sticky-mini-preview .wpc-preview-dims {
	margin-top: 4px;
	font-size: 10px;
	line-height: 1.2;
	text-align: center;
}

.wpc-compact-sticky-fields {
	flex: 1 1 auto;
	min-width: 0;
}

.wpc-dims-row-compact {
	margin-bottom: 6px;
}

.wpc-dims-row-compact label {
	font-size: 12px;
}

.wpc-order-app .wpc-sticky-live-total {
	font-size: 14px;
	font-weight: 700;
	color: #2563eb;
	text-align: left;
	direction: ltr;
}

.wpc-sticky-live-total:empty {
	display: none;
}

@media (min-width: 768px) {
	.wpc-sticky-mini-preview {
		display: none;
	}
}

.wpc-preview-card.wpc-sticky-preview.wpc-preview-is-fixed {
	position: fixed !important;
	z-index: 11 !important;
}

/* موبایل: پیش‌نمایش کامل بالای فرم — جزئیات در بلوک responsive پایین فایل */

.wpc_hide_add_to_card-inline {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
}

.wpc-preview-area {
	min-height: 260px;
}

@container wpc-form (min-width: 620px) {
	.wpc-preview-area {
		min-height: 300px;
	}
}

@media (min-width: 768px) {
	.wpc-preview-area {
		min-height: 340px;
	}
}

.wpc-order-app .wpc-card {
	background: #fff;
	border: none;
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.wpc-order-app .wpc-card-title {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #1f2937;
	border-bottom: 1px solid #e5e7eb;
}

.wpc-field-label {
	display: block;
	font-weight: 600;
	margin: 12px 0 6px;
	font-size: 13px;
}

.wpc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wpc-row label {
	flex: 1;
	min-width: 100px;
	font-size: 13px;
	font-weight: 600;
}

.wpc-order-app .wpc-input,
.wpc-order-app .wpc-select {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background-color: #fff;
	box-sizing: border-box;
	font: inherit;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
}

.wpc-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2350575e' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 10px center;
	padding-left: 30px;
}

.wpc-field-block {
	flex: 1 1 140px;
	min-width: 0;
}

.wpc-hinge-mode-group {
	margin-bottom: 14px;
}

.wpc-hinge-fields {
	margin-bottom: 12px;
}

.wpc-hinge-positions-summary {
	font-size: 13px;
	color: #50575e;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
	line-height: 1.7;
}

.wpc-hinge-positions-summary:empty {
	display: none;
}

.wpc-hinge-positions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.wpc-hinge-row-custom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: end;
}

.wpc-hinge-row-custom .wpc-hinge-row-label {
	grid-column: 1 / -1;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 2px;
}

.wpc-preview-hinge-marker {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #6366f1;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #6366f1;
	z-index: 3;
}

.wpc-preview-hinge-label {
	position: absolute;
	font-size: 9px;
	line-height: 1.2;
	color: #334155;
	background: rgba(241, 245, 249, 0.95);
	padding: 1px 4px;
	border-radius: 4px;
	white-space: nowrap;
	z-index: 3;
}

.wpc-dims-row input {
	width: 100%;
	margin-top: 4px;
}

.wpc-visual-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpc-grid-2 .wpc-option { width: calc(50% - 4px); }
.wpc-grid-3 .wpc-option { width: calc(33.33% - 6px); }
.wpc-grid-4 .wpc-option { width: calc(25% - 6px); }

.wpc-order-app .wpc-option {
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.5rem;
	cursor: pointer;
	text-align: center;
	background: #fff;
	transition: all 0.2s ease-in-out;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	position: relative;
	min-width: 0;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-option {
		padding: 0.75rem;
	}
}

.wpc-order-app .wpc-option:hover:not(.disabled) {
	border-color: #93c5fd;
}

.wpc-order-app .wpc-option.selected {
	border-color: #2563eb;
	background-color: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
	transform: translateY(-2px);
}

.wpc-order-app .wpc-option.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #f3f4f6;
	pointer-events: none;
}

.wpc-order-app .wpc-option img,
.wpc-order-app .wpc-option .wpc-glass-preview {
	width: 100%;
	height: 60px;
	object-fit: contain;
	display: block;
	margin-bottom: 0.5rem;
	border-radius: 0.5rem;
	background-color: #f3f4f6;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-option img,
	.wpc-order-app .wpc-option .wpc-glass-preview {
		height: 80px;
	}
}

.wpc-order-app .wpc-option span {
	font-size: 0.75rem;
	font-weight: 500;
	color: #374151;
	line-height: 1.2;
	word-break: break-word;
	display: block;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-option span {
		font-size: 0.875rem;
	}
}

.wpc-order-app .wpc-glass-preview {
	height: 60px;
	border-radius: 0.5rem;
	margin-bottom: 0.5rem;
	border: 1px solid #e5e7eb;
	background-color: #f3f4f6;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-glass-preview {
		height: 80px;
	}
}

.wpc-order-app .wpc-color-swatch {
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	margin: 0 auto 0.5rem;
	border: 3px solid #d1d5db;
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-color-swatch {
		width: 2.5rem;
		height: 2.5rem;
	}
}

.wpc-order-app .wpc-color-option {
	min-width: 72px;
	padding: 0.25rem;
	flex-basis: auto;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-color-option {
		padding: 0.5rem;
	}
}

.wpc-order-app .wpc-color-option.selected .wpc-color-swatch {
	border-color: #2563eb;
	transform: scale(1.1);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.wpc-order-app .wpc-color-option span {
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

.wpc-no-handle {
	font-size: 28px;
	color: #b32d2e;
	line-height: 72px;
}

.wpc-hidden {
	display: none !important;
}

.wpc-order-app .wpc-preview-area {
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
	border-radius: 0.75rem;
	padding: 16px;
}

.wpc-preview-frame {
	position: relative;
	border-radius: 6px;
	padding: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.wpc-preview-glass {
	width: 100%;
	height: 100%;
	min-height: 120px;
	border-radius: 4px;
}

.wpc-preview-handle {
	position: absolute;
	width: 8px;
	height: 28px;
	background: linear-gradient(180deg, #94a3b8 0%, #475569 100%);
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	z-index: 2;
	transform-origin: center center;
}

.wpc-preview-handle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #cbd5e1;
}

.wpc-handle-sides {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpc-handle-side-opt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 110px;
	padding: 8px 6px;
}

.wpc-handle-side-icon {
	position: relative;
	width: 52px;
	height: 68px;
	margin: 0 auto 6px;
	background: #eef0f2;
	border: 2px solid #c3c4c7;
	border-radius: 8px;
	flex-shrink: 0;
}

.wpc-handle-side-icon-bar {
	position: absolute;
	width: 8px;
	height: 24px;
	background: #94a3b8;
	border-radius: 3px;
	transform-origin: center center;
}

.wpc-order-app .wpc-handle-side-opt.selected .wpc-handle-side-icon {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.wpc-order-app .wpc-handle-side-opt.selected .wpc-handle-side-icon-bar {
	background: #2563eb;
}

.wpc-handle-side-opt span {
	font-size: 12px;
	text-align: center;
	line-height: 1.3;
}

.wpc-preview-dims {
	margin-top: 10px;
	font-size: 13px;
	color: #50575e;
}

.wpc-card > .wpc-selection-summary {
	margin-top: 0;
	margin-bottom: 12px;
}

.wpc-selection-summary {
	font-size: 12px;
	color: #50575e;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e4e7;
	line-height: 1.6;
}

.wpc-selection-summary:empty {
	display: none;
	margin: 0;
	padding: 0;
	border: none;
}

.wpc-live-price .wpc-price-line {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px solid #eee;
}

.wpc-order-app .wpc-live-price .wpc-price-total {
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
	font-size: 18px;
	font-weight: 700;
	color: #2563eb;
}

.wpc-order-app .wpc-inquiry-msg a {
	color: #2563eb;
	font-weight: 700;
}

.wpc-order-app .wpc-toggle-switch {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #f3f4f6;
	padding: 0.25rem;
	border-radius: 0.5rem;
}

.wpc-order-app .wpc-toggle-switch input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.wpc-order-app .wpc-toggle-switch label {
	flex: 1;
	text-align: center;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	background-color: #e5e7eb;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

@media (min-width: 640px) {
	.wpc-order-app .wpc-toggle-switch label {
		font-size: 0.875rem;
	}
}

.wpc-order-app .wpc-toggle-switch input:checked + label {
	background-color: #2563eb;
	color: #fff;
}

.wpc-order-app .wpc-toggle-switch input:disabled + label {
	opacity: 0.5;
	cursor: not-allowed;
}

.wpc-order-app .wpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 700;
	padding: 0.5rem 1rem !important;
	border-radius: 0.5rem !important;
	border: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	font-size: 0.875rem !important;
	line-height: 1.25 !important;
	height: auto !important;
	box-shadow: none !important;
}

.wpc-order-app .wpc-btn-primary {
	background-color: var(--wpc-theme-primary) !important;
	color: var(--wpc-theme-on-primary) !important;
}

.wpc-order-app .wpc-btn-primary:hover,
.wpc-order-app .wpc-btn-primary:focus {
	background-color: var(--wpc-theme-primary-dark) !important;
	color: var(--wpc-theme-on-primary) !important;
}

.wpc-order-app .wpc-btn:not(.wpc-btn-primary) {
	background-color: #fff !important;
	color: #374151 !important;
	border: 1px solid #d1d5db !important;
}

.wpc-order-app .wpc-btn:not(.wpc-btn-primary):hover,
.wpc-order-app .wpc-btn:not(.wpc-btn-primary):focus {
	background-color: #f9fafb !important;
	color: #374151 !important;
}


.wpc-door-name-input {
	margin-bottom: 12px;
	font-weight: 600;
}

.wpc-order-app .wpc-profile-summary-box {
	margin: 12px 0 16px;
	padding: 12px 14px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 0.75rem;
}

.wpc-profile-summary-box strong {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	color: #1d2327;
}

.wpc-profile-summary-box .wpc-help {
	margin: 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.7;
}

.wpc-summary-profile-desc {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #dcdcde;
	font-size: 12px;
	color: #646970;
	line-height: 1.6;
}

.wpc-print-output {
	display: none;
}

/* پیش‌نمایش موبایل — تب کناری + مودال */
.wpc-mobile-preview-trigger-wrap {
	display: none;
}

.wpc-mobile-preview-open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 88px;
	padding: 0;
	margin: 0;
	border: none;
	cursor: pointer;
	background: var(--wpc-theme-primary);
	color: var(--wpc-theme-on-primary);
	box-shadow: -2px 0 16px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.wpc-mobile-preview-open:hover,
.wpc-mobile-preview-open:focus {
	background: var(--wpc-theme-primary-dark);
	outline: none;
}

.wpc-mobile-preview-open-icon {
	display: block;
	width: 10px;
	height: 10px;
	border-left: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
	margin-inline-start: 4px;
}

.wpc-mobile-preview-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.wpc-mobile-preview-modal.is-open,
.wpc-mobile-preview-modal.is-closing {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
}

body.wpc-preview-modal-open {
	overflow: hidden;
}

.wpc-mobile-preview-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	opacity: 0;
}

.wpc-mobile-preview-modal.is-open .wpc-mobile-preview-backdrop {
	animation: wpc-backdrop-in 0.3s ease forwards;
}

.wpc-mobile-preview-modal.is-closing .wpc-mobile-preview-backdrop {
	animation: wpc-backdrop-out 0.28s ease forwards;
}

.wpc-mobile-preview-sheet {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 0;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	padding-top: calc(16px + env(safe-area-inset-top));
	box-shadow: none;
	transform: translateX(100%);
}

.wpc-mobile-preview-header {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.wpc-mobile-preview-area {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.wpc-mobile-preview-modal.is-open .wpc-mobile-preview-sheet {
	animation: wpc-sheet-in-right 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.wpc-mobile-preview-modal.is-closing .wpc-mobile-preview-sheet {
	animation: wpc-sheet-out-right 0.28s cubic-bezier(0.4, 0, 0.68, 0.06) forwards;
}

@keyframes wpc-sheet-in-right {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

@keyframes wpc-sheet-out-right {
	from { transform: translateX(0); }
	to { transform: translateX(100%); }
}

@keyframes wpc-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes wpc-backdrop-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

.wpc-mobile-preview-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
}

.wpc-mobile-preview-close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.wpc-mobile-preview-area .wpc-preview-frame {
	max-width: 100%;
}

.wpc-calc-results {
	padding: 16px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	margin-top: 12px;
}

.wpc-result-main {
	font-size: 18px;
	margin: 0 0 8px;
}

.wpc-result-main strong {
	display: block;
	font-size: 24px;
	color: #b32d2e;
	margin-top: 4px;
}

.wpc-result-alt {
	margin: 0 0 16px;
	color: #646970;
	font-size: 13px;
}

.wpc-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.wpc-result-actions .button.alt {
	font-size: 16px !important;
	padding: 12px 24px !important;
	height: auto !important;
}

.wpc-cart-hint {
	margin: 0;
	font-size: 13px;
	color: #646970;
}

.wpc-door-order-meta { display: block; margin: 0; line-height: 1.7; }

.wpc-door-order-panel {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 12px;
	direction: rtl;
	text-align: right;
	margin: 0.25em 0;
	width: 100%;
}

.wpc-door-order-visual {
	flex: 0 0 150px;
	max-width: 180px;
	min-width: 120px;
}

.wpc-door-order-details {
	flex: 1 1 auto;
	min-width: 0;
}

.wpc-door-order-preview {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #e2e8f0;
}

.woocommerce .wpc-door-order-panel,
.wc-item-meta .wpc-door-order-panel,
.woocommerce-checkout-review-order-table .wpc-door-order-panel,
#woocommerce-order-items .wpc-door-order-panel {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 12px;
}
.woocommerce-cart .wc-item-meta .wpc-door-order-meta,
.woocommerce-checkout-review-order-table .wpc-door-order-meta { white-space: normal; }

.wpc-door-preview-caption {
	font-size: 12px;
	color: #50575e;
	margin-top: 4px;
	text-align: center;
}

.wpc-checkout-preview-confirm {
	margin: 1.25rem 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
}

.wpc-checkout-preview-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1f2937;
}

.wpc-checkout-preview-note {
	margin: 0 0 1rem;
	font-size: 13px;
	color: #646970;
}

.wpc-checkout-preview-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 1rem;
}

.wpc-checkout-preview-item {
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.wpc-checkout-preview-item .wpc-door-order-panel {
	width: 100%;
}

.wpc-checkout-preview-label {
	font-weight: 700;
	margin-bottom: 8px;
}

.wpc-checkout-delivery-note {
	margin: 0 0 1rem;
	font-size: 13px;
	color: #1e40af;
	font-weight: 600;
}

.wpc-preview-confirm-field label {
	font-weight: 600;
}

/* ── موبایل و تبلت کوچک ── */
@media (max-width: 767px) {
	.wpc_form_holder.wpc-order-app,
	.wpc_form_holder.wpc-in-content.is_product_page {
		margin: 12px 0 24px;
		padding: 12px;
		border-radius: 8px;
	}

	.wpc-intro {
		font-size: 14px;
		margin-bottom: 0.75rem;
	}

	.wpc-toolbar-row {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
		overflow-x: visible;
		position: relative;
		top: auto;
		padding: 0 0 12px;
		box-shadow: none;
		gap: 10px;
	}

	.wpc-toolbar {
		flex-direction: column;
		width: 100%;
		gap: 8px;
	}

	.wpc-order-app .wpc-symmetrical-toggle {
		width: 100%;
		justify-content: flex-start;
		padding: 10px 12px;
		background: #f9fafb;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		white-space: normal;
		line-height: 1.4;
	}

	.wpc-order-app .wpc-toolbar .wpc-btn {
		width: 100%;
		min-height: 44px;
		padding: 0.65rem 1rem !important;
		font-size: 0.9375rem !important;
	}

	.wpc-door-list {
		width: 100%;
		flex: none;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
	}

	.wpc-order-app .wpc-door-item {
		padding: 10px 14px;
		font-size: 14px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		scroll-snap-align: start;
	}

	.wpc-layout {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.wpc-layout-preview {
		display: none !important;
	}

	.wpc-mobile-preview-trigger-wrap {
		display: block;
		position: fixed;
		right: 0;
		left: auto;
		top: 50%;
		transform: translateY(-50%);
		z-index: 99990;
		margin: 0;
		padding: 0;
		background: transparent;
		border: none;
		box-shadow: none;
		pointer-events: none;
	}

	.wpc-mobile-preview-open {
		pointer-events: auto;
		border-radius: 12px 0 0 12px;
		min-height: 88px;
		min-width: 44px;
	}

	.wpc-order-app.wpc_form_holder,
	.wpc-order-app .wpc_inquiries_form {
		padding-bottom: 0;
	}

	.wpc-sticky-mini-preview {
		display: none !important;
		width: 0 !important;
		min-height: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	.wpc-compact-sticky-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px;
	}

	.wpc-compact-sticky-fields {
		width: 100%;
	}

	.wpc-dims-row-compact {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		margin-bottom: 8px;
	}

	.wpc-dims-row-compact label {
		min-width: 0;
		font-size: 11px;
	}

	.wpc-order-app .wpc-sticky-live-total {
		text-align: center;
		font-size: 15px;
	}

	.wpc-order-app .wpc-card {
		padding: 1rem;
		margin-bottom: 1rem;
		border-radius: 0.75rem;
	}

	.wpc-order-app .wpc-card-title {
		font-size: 1rem;
	}

	.wpc-grid-4 .wpc-option {
		width: calc(50% - 4px);
	}

	.wpc-grid-3 .wpc-option {
		width: calc(50% - 4px);
	}

	.wpc-handle-sides.wpc-grid-4 .wpc-option {
		width: calc(50% - 4px);
	}

	.wpc-handle-side-opt {
		min-height: 96px;
		padding: 8px 4px;
	}

	.wpc-handle-side-icon {
		width: 48px;
		height: 60px;
	}

	.wpc-order-app .wpc-option {
		min-height: 44px;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}

	.wpc-order-app .wpc-option img,
	.wpc-order-app .wpc-option .wpc-glass-preview {
		height: 56px;
	}

	.wpc-order-app .wpc-toggle-switch label {
		min-height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.5rem 0.35rem;
		font-size: 0.8125rem;
	}

	.wpc-hinge-row-custom {
		grid-template-columns: 1fr;
	}

	.wpc-row {
		flex-direction: column;
	}

	.wpc-row label,
	.wpc-field-block {
		flex: 1 1 auto;
		width: 100%;
	}

	.wpc-order-app .wpc-input,
	.wpc-order-app .wpc-select {
		min-height: 44px;
		font-size: 16px;
		padding: 10px 12px;
	}

	.wpc-order-app .wpc-live-price .wpc-price-total {
		font-size: 16px;
		flex-wrap: wrap;
		gap: 4px;
	}

	.wpc-order-app .acf-form-submit {
		margin-top: 16px;
	}

	.wpc-order-app .acf-form-submit .wpc_form_submit {
		width: 100%;
		min-height: 48px;
		font-size: 17px !important;
		padding: 14px 20px !important;
	}

	.wpc-calc-results {
		padding: 12px;
	}

	.wpc-result-main strong {
		font-size: 20px;
	}

	.wpc-result-actions {
		flex-direction: column;
	}

	.wpc-result-actions .button,
	.wpc-result-actions .button.alt {
		width: 100%;
		min-height: 44px;
		text-align: center;
	}

	.wpc-door-order-panel,
	.woocommerce .wpc-door-order-panel,
	.wc-item-meta .wpc-door-order-panel,
	.woocommerce-checkout-review-order-table .wpc-door-order-panel,
	#woocommerce-order-items .wpc-door-order-panel {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		gap: 10px;
	}

	.wpc-door-order-visual {
		flex: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.wpc-door-order-preview {
		max-width: 220px;
		margin: 0 auto;
	}

	.wpc-checkout-preview-confirm {
		padding: 12px;
		margin: 1rem 0;
	}

	.wpc-checkout-preview-title {
		font-size: 1rem;
	}

	.wpc-checkout-preview-item {
		padding: 10px;
	}

	.wpc-preview-confirm-field label {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		line-height: 1.5;
	}

	.wpc-preview-confirm-field input[type="checkbox"] {
		width: 20px;
		height: 20px;
		margin-top: 2px;
		flex-shrink: 0;
	}
}

@media (max-width: 479px) {
	.wpc_form_holder.wpc-order-app {
		padding: 10px;
	}

	.wpc-dims-row-compact {
		grid-template-columns: 1fr 1fr;
	}

	.wpc-dims-row-compact label:last-child {
		grid-column: 1 / -1;
	}

	.wpc-grid-2 .wpc-option {
		width: 100%;
	}

	.wpc-grid-4 .wpc-option,
	.wpc-grid-3 .wpc-option,
	.wpc-handle-sides.wpc-grid-4 .wpc-option {
		width: 100%;
	}

	.wpc-order-app .wpc-color-option {
		width: calc(33.33% - 6px);
		min-width: 0;
	}

	.wpc-order-app .wpc-preview-area {
		min-height: 200px;
		padding: 12px;
	}
}