@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 100;
	src: url("fonts/webfonts/Vazirmatn-Thin.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 200;
	src: url("fonts/webfonts/Vazirmatn-ExtraLight.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 300;
	src: url("fonts/webfonts/Vazirmatn-Light.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 400;
	src: url("fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 500;
	src: url("fonts/webfonts/Vazirmatn-Medium.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 600;
	src: url("fonts/webfonts/Vazirmatn-SemiBold.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 700;
	src: url("fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 800;
	src: url("fonts/webfonts/Vazirmatn-ExtraBold.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "BeposhVazirmatn";
	font-style: normal;
	font-weight: 900;
	src: url("fonts/webfonts/Vazirmatn-Black.woff2") format("woff2");
}

.beposh-ai-wrap {
	font-family: "BeposhVazirmatn", Tahoma, Arial, sans-serif;
	margin-top: 14px;
}

.beposh-ai-modal,
.beposh-ai-modal button,
.beposh-ai-modal input,
.beposh-ai-modal select,
.beposh-ai-modal textarea,
.beposh-ai-button {
	font-family: "BeposhVazirmatn", Tahoma, Arial, sans-serif !important;
}

.beposh-ai-wrap .dashicons,
.beposh-ai-modal .dashicons {
	font-family: dashicons !important;
}

.beposh-ai-button {
	align-items: center !important;
	background: linear-gradient(135deg, #111827, var(--beposh-ai-button-color, #db2777)) !important;
	border: 0 !important;
	border-radius: var(--beposh-ai-button-radius, 8px) !important;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 26%, transparent) !important;
	color: #fff !important;
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	font-weight: 700 !important;
	gap: 8px !important;
	justify-content: center !important;
	min-height: 46px !important;
	padding: 0 18px !important;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
	white-space: nowrap !important;
}

.beposh-ai-button > span {
	display: inline-flex;
	flex: 0 0 auto;
	white-space: nowrap;
}

.beposh-ai-button:hover,
.beposh-ai-button:focus {
	box-shadow: 0 16px 34px color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 34%, transparent) !important;
	color: #fff !important;
	filter: saturate(1.08);
	transform: translateY(-1px);
}

.beposh-ai-style-dark {
	background: var(--beposh-ai-button-color, #111827) !important;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.25) !important;
}

.beposh-ai-style-outline {
	background: #fff !important;
	border: 1px solid var(--beposh-ai-button-color, #db2777) !important;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 14%, transparent) !important;
	color: var(--beposh-ai-button-color, #be185d) !important;
}

.beposh-ai-style-outline:hover,
.beposh-ai-style-outline:focus {
	background: color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 8%, #fff) !important;
	color: var(--beposh-ai-button-color, #9d174d) !important;
}

.beposh-ai-style-soft {
	background: color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 10%, #fff) !important;
	border: 1px solid color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 28%, #fff) !important;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--beposh-ai-button-color, #db2777) 14%, transparent) !important;
	color: var(--beposh-ai-button-color, #9d174d) !important;
}

.beposh-ai-style-soft:hover,
.beposh-ai-style-soft:focus {
	color: var(--beposh-ai-button-color, #831843) !important;
}

.beposh-ai-style-custom {
	background: linear-gradient(135deg, #111827, var(--beposh-ai-button-color, #db2777)) !important;
}

.beposh-ai-button .dashicons,
.beposh-ai-button-icon {
	align-items: center;
	display: inline-flex;
	font-size: 20px;
	height: 20px;
	justify-content: center;
	line-height: 1;
	width: 20px;
}

.beposh-ai-button-image {
	align-items: center;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.beposh-ai-button-image img {
	display: block;
	height: 24px;
	object-fit: contain;
	width: 24px;
}

.beposh-ai-button-default-logo {
	align-items: center;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.beposh-ai-button-default-logo img {
	display: block;
	height: 23px;
	object-fit: contain;
	width: 23px;
}

.beposh-ai-style-gradient .beposh-ai-button-default-logo img,
.beposh-ai-style-dark .beposh-ai-button-default-logo img,
.beposh-ai-style-custom .beposh-ai-button-default-logo img {
	filter: brightness(0) invert(1);
}

.beposh-ai-gallery-target {
	position: relative;
}

.beposh-ai-position-over_image {
	margin: 0 0 12px;
}

.beposh-ai-gallery-target .beposh-ai-position-over_image {
	left: 14px;
	margin: 0;
	position: absolute;
	bottom: 14px;
	z-index: 20;
}

.beposh-ai-position-before_cart {
	margin-bottom: 12px;
}

.beposh-ai-position-after_cart {
	margin-top: 12px;
}

.beposh-ai-position-after_summary {
	margin: 16px 0;
}

.beposh-ai-position-shortcode {
	margin: 12px 0;
}

.beposh-ai-modal {
	align-items: center;
	background: rgba(15, 23, 42, 0.66);
	backdrop-filter: blur(7px);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	overscroll-behavior: contain;
	touch-action: none;
	z-index: 99999;
}

.beposh-ai-modal[aria-hidden="false"] {
	display: flex;
}

html.beposh-ai-modal-open,
body.beposh-ai-modal-open {
	overflow: hidden !important;
}

.beposh-ai-dialog {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 8px;
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
	direction: rtl;
	max-height: 92vh;
	max-width: 560px;
	overscroll-behavior: contain;
	overflow: auto;
	padding: 26px;
	position: relative;
	touch-action: pan-y;
	width: min(100%, 560px);
}

.beposh-ai-head {
	align-items: center;
	display: flex;
	gap: 14px;
	padding-left: 42px;
}

.beposh-ai-head-icon {
	align-items: center;
	background: #fdf2f8;
	border: 1px solid #fbcfe8;
	border-radius: 8px;
	color: #be185d;
	display: flex;
	flex: 0 0 52px;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.beposh-ai-head-icon .dashicons,
.beposh-ai-head-icon .beposh-ai-button-icon {
	font-size: 25px;
	height: 25px;
	width: 25px;
}

.beposh-ai-dialog h2 {
	color: #111827;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 5px;
}

.beposh-ai-head p {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}

.beposh-ai-close {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #334155;
	cursor: pointer;
	display: flex;
	font-size: 26px;
	height: 38px;
	justify-content: center;
	left: 16px;
	line-height: 1;
	position: absolute;
	top: 16px;
	width: 38px;
}

.beposh-ai-quota {
	align-items: center;
	/* background: #ecfdf5; */
	/* border: 1px solid #86efac; */
	/* border-radius: 8px; */
	/* box-shadow: 0 8px 18px rgba(22, 101, 52, 0.1); */
	color: #14532d;
	display: inline-flex;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 800;
	gap: 10px;
	/* margin: 10px 0 0; */
	padding: 8px 11px;
	vertical-align: middle;
}

.beposh-ai-quota-item {
	align-items: baseline;
	display: inline-flex;
	gap: 6px;
	white-space: nowrap;
}

.beposh-ai-quota-label {
	color: #166534;
	font-size: 12px;
	font-weight: 800;
}

.beposh-ai-quota-value {
	color: #052e16;
	font-size: 18px;
	font-weight: 950;
	line-height: 1;
}

.beposh-ai-quota-remaining {
	color: #15803d;
}

.beposh-ai-quota-total {
	color: #111827;
}

.beposh-ai-quota-divider {
	background: #86efac;
	height: 20px;
	width: 1px;
}

.beposh-ai-quota-unlimited {
	color: #14532d;
}

.beposh-ai-quota-unlimited-label {
	font-size: 14px;
	font-weight: 900;
}

.beposh-ai-subscription-box {
	background: color-mix(in srgb, var(--beposh-ai-modal-accent) 5%, var(--beposh-ai-modal-surface));
	border: 1px solid color-mix(in srgb, var(--beposh-ai-modal-accent) 18%, transparent);
	border-radius: calc(var(--beposh-ai-modal-radius) - 11px);
	margin-top: 12px;
	overflow: hidden;
	position: relative;
}

.beposh-ai-subscription-box summary {
	align-items: center;
	color: var(--beposh-ai-modal-text);
	cursor: pointer;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	list-style: none;
	padding: 12px 14px;
}

.beposh-ai-subscription-box summary::-webkit-details-marker {
	display: none;
}

.beposh-ai-subscription-box summary span {
	align-items: center;
	display: inline-flex;
	font-size: 13px;
	font-weight: 900;
	gap: 7px;
}

.beposh-ai-subscription-box summary i {
	color: var(--beposh-ai-modal-accent);
	font-style: normal;
}

.beposh-ai-subscription-box summary small {
	color: var(--beposh-ai-modal-muted);
	font-size: 11px;
}

.beposh-ai-subscription-content {
	border-top: 1px solid color-mix(in srgb, var(--beposh-ai-modal-accent) 14%, transparent);
	padding: 12px;
}

.beposh-ai-subscription-plans {
	display: grid;
	gap: 9px;
}

.beposh-ai-subscription-plans article {
	align-items: center;
	background: var(--beposh-ai-modal-surface);
	border: 1px solid color-mix(in srgb, var(--beposh-ai-modal-text) 10%, transparent);
	border-radius: 10px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 10px;
}

.beposh-ai-subscription-plans article div {
	display: grid;
	gap: 3px;
}

.beposh-ai-subscription-plans article strong {
	color: var(--beposh-ai-modal-text);
	font-size: 13px;
}

.beposh-ai-subscription-plans article span {
	color: var(--beposh-ai-modal-muted);
	font-size: 11px;
}

.beposh-ai-subscription-plans article > b {
	color: var(--beposh-ai-modal-text);
	font-size: 13px;
	white-space: nowrap;
}

.beposh-ai-subscription-plans .button,
.beposh-ai-subscription-login .button {
	background: linear-gradient(110deg, var(--beposh-ai-modal-primary), var(--beposh-ai-modal-accent)) !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	min-height: 36px;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
}

.beposh-ai-active-subscription {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beposh-ai-active-subscription > span {
	background: var(--beposh-ai-modal-surface);
	border-radius: 9px;
	color: var(--beposh-ai-modal-muted);
	display: grid;
	font-size: 11px;
	gap: 3px;
	padding: 9px;
}

.beposh-ai-active-subscription strong {
	color: var(--beposh-ai-modal-text);
	font-size: 13px;
}

.beposh-ai-active-subscription p,
.beposh-ai-subscription-login p,
.beposh-ai-subscription-empty {
	color: var(--beposh-ai-modal-muted);
	font-size: 11px;
	grid-column: 1 / -1;
	margin: 0;
}

.beposh-ai-subscription-login {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.beposh-ai-steps {
	margin-top: 14px;
}

.beposh-ai-step {
	display: none;
}

.beposh-ai-steps[data-step="upload"] .beposh-ai-step-upload,
.beposh-ai-steps[data-step="processing"] .beposh-ai-step-processing,
.beposh-ai-steps[data-step="result"] .beposh-ai-step-result {
	display: grid;
}

.beposh-ai-step-illustration {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	height: 180px;
	margin: 0 auto 14px;
	object-fit: contain;
	padding: 18px;
	width: min(100%, 260px);
}

.beposh-ai-form {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: grid;
	gap: 12px;
	padding: 16px;
}

.beposh-ai-form label {
	color: #111827;
	font-weight: 700;
}

.beposh-ai-login-required {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: grid;
	gap: 14px;
	justify-items: center;
	padding: 22px 16px;
	text-align: center;
}

.beposh-ai-login-required strong {
	color: #111827;
	font-size: 15px;
	font-weight: 800;
}

.beposh-ai-login-required .button {
	background: #111827 !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-weight: 800 !important;
	min-height: 42px;
	padding: 0 18px !important;
	text-decoration: none !important;
}

.beposh-ai-product-images {
	display: grid;
	gap: 10px;
}

.beposh-ai-product-images[hidden] {
	display: none;
}

.beposh-ai-product-image-list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
}

.beposh-ai-product-image-option {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	color: #334155;
	cursor: pointer;
	display: grid;
	gap: 7px;
	min-height: 132px;
	padding: 8px;
	text-align: center;
}

.beposh-ai-product-image-option img {
	aspect-ratio: 1;
	border-radius: 6px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.beposh-ai-product-image-option span {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}

.beposh-ai-product-image-option.is-selected {
	background: #fdf2f8;
	border-color: var(--beposh-ai-button-color, #db2777);
	color: #9d174d;
}

.beposh-ai-saved-photo-container:empty {
	display: none;
}

.beposh-ai-saved-photo {
	align-items: center;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	display: grid;
	gap: 10px;
	grid-template-columns: 62px minmax(0, 1fr) auto auto;
	padding: 9px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.beposh-ai-saved-photo.is-selected {
	background: #f0fdf4;
	border-color: #22c55e;
	box-shadow: 0 10px 26px rgba(34, 197, 94, .12);
}

.beposh-ai-saved-photo img {
	border-radius: 9px;
	display: block;
	height: 68px;
	object-fit: cover;
	width: 62px;
}

.beposh-ai-saved-photo > span {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.beposh-ai-saved-photo strong {
	color: #111827;
	font-size: 12px;
	font-weight: 900;
}

.beposh-ai-saved-photo small {
	color: #64748b;
	font-size: 10px;
}

.beposh-ai-use-saved-photo-button,
.beposh-ai-delete-saved-photo {
	background: #ecfdf5 !important;
	border: 1px solid #a7f3d0 !important;
	border-radius: 8px !important;
	color: #047857 !important;
	cursor: pointer;
	font-size: 10px !important;
	font-weight: 900 !important;
	min-height: 34px;
	padding: 0 9px !important;
}

.beposh-ai-delete-saved-photo {
	background: #fff1f2 !important;
	border-color: #fecdd3 !important;
	color: #be123c !important;
}

.beposh-ai-save-photo-option {
	align-items: center;
	background: color-mix(in srgb, var(--beposh-ai-modal-accent, #db2777) 7%, transparent);
	border: 1px solid color-mix(in srgb, var(--beposh-ai-modal-accent, #db2777) 18%, transparent);
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	font-size: 11px;
	gap: 8px;
	line-height: 1.7;
	padding: 10px;
}

.beposh-ai-save-photo-option[hidden] {
	display: none !important;
}

.beposh-ai-save-photo-option input {
	accent-color: var(--beposh-ai-modal-accent, #db2777);
	flex: 0 0 auto;
}

.beposh-ai-upload {
	align-items: center;
	background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%);
	border: 2px dashed #f0a6c8;
	border-radius: 14px;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	gap: 14px;
	min-height: 132px;
	padding: 18px;
	position: relative;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
	width: 100%;
}

.beposh-ai-upload:hover,
.beposh-ai-upload:focus-within,
.beposh-ai-upload.is-dragging {
	border-color: var(--beposh-ai-button-color, #db2777);
	box-shadow: 0 10px 30px rgba(219, 39, 119, 0.13);
	transform: translateY(-2px);
}

.beposh-ai-upload input[type="file"] {
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.beposh-ai-upload-icon {
	align-items: center;
	background: var(--beposh-ai-button-color, #db2777);
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(219, 39, 119, 0.24);
	color: #fff;
	display: flex;
	flex: 0 0 58px;
	height: 58px;
	justify-content: center;
}

.beposh-ai-upload-icon svg {
	fill: none;
	height: 27px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 27px;
}

.beposh-ai-upload-copy {
	display: grid;
	gap: 5px;
	line-height: 1.5;
}

.beposh-ai-upload-title {
	color: #111827;
	font-size: 15px;
	font-weight: 900;
}

.beposh-ai-upload-hint {
	color: #475569;
	font-size: 13px;
	font-weight: 600;
}

.beposh-ai-upload-meta {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
}

.beposh-ai-upload-preview {
	background: #f1f5f9;
	border-radius: 12px;
	display: none;
	flex: 0 0 76px;
	height: 92px;
	overflow: hidden;
}

.beposh-ai-upload-preview img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.beposh-ai-upload.has-file {
	background: #fff;
	border-style: solid;
}

.beposh-ai-upload.has-file .beposh-ai-upload-preview {
	display: block;
}

.beposh-ai-upload.has-file .beposh-ai-upload-icon {
	display: none;
}

.beposh-ai-form button[type="submit"] {
	background: #111827 !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-weight: 700 !important;
	min-height: 42px;
}

.beposh-ai-status {
	align-items: center;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .24);
	color: #065f46;
	display: none;
	font-size: 13px;
	font-weight: 800;
	gap: 10px;
	left: 18px;
	line-height: 1.75;
	padding: 11px 12px;
	position: absolute;
	right: 18px;
	top: 16px;
	z-index: 100;
}

.beposh-ai-status.is-visible {
	animation: beposh-ai-status-in .24s ease-out both;
	display: flex;
}

.beposh-ai-status.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.beposh-ai-status-icon {
	align-items: center;
	background: #059669;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 25px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	height: 25px;
	justify-content: center;
	line-height: 1;
}

.beposh-ai-status.is-error .beposh-ai-status-icon {
	background: #dc2626;
}

.beposh-ai-status-message {
	flex: 1 1 auto;
}

.beposh-ai-status-close {
	align-items: center;
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 6px;
	color: currentColor !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 30px;
	font-size: 22px;
	height: 30px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	opacity: .7;
	padding: 0 !important;
}

.beposh-ai-status-close:hover,
.beposh-ai-status-close:focus {
	background: rgba(15, 23, 42, .08) !important;
	opacity: 1;
	outline: none;
}

@keyframes beposh-ai-status-in {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 640px) {
	.beposh-ai-status {
		font-size: 12px;
		left: 8px;
		right: 8px;
		top: 8px;
	}

	.beposh-ai-saved-photo {
		grid-template-columns: 54px minmax(0, 1fr) auto;
	}

	.beposh-ai-saved-photo img {
		height: 58px;
		width: 54px;
	}

	.beposh-ai-delete-saved-photo {
		grid-column: 3;
	}

	.beposh-ai-use-saved-photo-button {
		grid-column: 2;
	}
}

.beposh-ai-step-processing {
	align-items: center;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #9a3412;
	gap: 12px;
	justify-items: center;
	min-height: 260px;
	padding: 28px 18px;
	text-align: center;
}

.beposh-ai-step-processing h3 {
	color: #111827;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.beposh-ai-step-processing p {
	color: #9a3412;
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.beposh-ai-spinner {
	animation: beposh-ai-spin 0.8s linear infinite;
	border: 3px solid #fed7aa;
	border-top-color: #ea580c;
	border-radius: 50%;
	display: inline-block;
	height: 44px;
	width: 44px;
}

.beposh-ai-form button[disabled] {
	cursor: wait;
	opacity: 0.75;
}

.beposh-ai-result {
	display: grid;
	gap: 12px;
}

.beposh-ai-result img {
	border-radius: 8px;
	box-shadow: 0 16px 46px rgba(15, 23, 42, 0.2);
	display: block;
	height: auto;
	width: 100%;
}

.beposh-ai-before-after {
	--beposh-ai-compare-position: 50%;
	aspect-ratio: 2 / 3;
	background: #e2e8f0;
	border-radius: calc(var(--beposh-ai-modal-radius) - 11px);
	box-shadow: 0 16px 46px rgba(15, 23, 42, 0.2);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
	width: 100%;
}

.beposh-ai-before-after > .beposh-ai-before-image,
.beposh-ai-before-after .beposh-ai-after-image,
.beposh-ai-before-after .beposh-ai-after-image img {
	border-radius: 0;
	box-shadow: none;
	height: 100%;
	inset: 0;
	margin: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.beposh-ai-before-after .beposh-ai-after-image {
	clip-path: inset(0 0 0 var(--beposh-ai-compare-position));
	z-index: 1;
}

.beposh-ai-before-after-label {
	background: rgba(15, 23, 42, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 7px 10px;
	pointer-events: none;
	position: absolute;
	top: 12px;
	z-index: 3;
}

.beposh-ai-before-after-label.is-before {
	left: 12px;
}

.beposh-ai-before-after-label.is-after {
	right: 12px;
}

.beposh-ai-before-after-divider {
	background: #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14), 0 0 20px rgba(15, 23, 42, 0.22);
	bottom: 0;
	left: var(--beposh-ai-compare-position);
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 2px;
	z-index: 3;
}

.beposh-ai-before-after-divider i {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
	color: #0f172a;
	display: flex;
	font-size: 16px;
	font-style: normal;
	height: 38px;
	justify-content: center;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 38px;
}

.beposh-ai-before-after-range {
	cursor: ew-resize;
	direction: ltr;
	height: 100%;
	inset: 0;
	margin: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	width: 100%;
	z-index: 4;
}

.beposh-ai-before-after-range:focus-visible {
	opacity: 1;
	outline: 3px solid color-mix(in srgb, var(--beposh-ai-modal-accent) 70%, #fff);
	outline-offset: -4px;
}

.beposh-ai-download,
.beposh-ai-restart {
	align-items: center;
	border-radius: 8px !important;
	display: inline-flex !important;
	font-weight: 800 !important;
	justify-content: center;
	min-height: 42px;
	text-align: center;
	text-decoration: none !important;
}

.beposh-ai-download {
	background: #111827 !important;
	border: 0 !important;
	color: #fff !important;
	margin-top: 12px !important;
}

.beposh-ai-restart {
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	color: #334155 !important;
}

@keyframes beposh-ai-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 520px) {
	.beposh-ai-modal {
		padding: 12px;
	}

	.beposh-ai-dialog {
		padding: 20px;
	}

	.beposh-ai-head {
		align-items: flex-start;
		gap: 10px;
	}

	.beposh-ai-upload {
		align-items: center;
		padding: 14px;
	}

	.beposh-ai-upload-icon {
		flex-basis: 50px;
		height: 50px;
	}
}

/* Premium modal experience */
.beposh-ai-modal {
	--beposh-ai-modal-primary: #111827;
	--beposh-ai-modal-accent: #db2777;
	--beposh-ai-modal-surface: #fff;
	--beposh-ai-modal-radius: 24px;
	--beposh-ai-modal-text: #111827;
	--beposh-ai-modal-muted: #64748b;
	background:
		radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--beposh-ai-modal-accent) 28%, transparent), transparent 30%),
		color-mix(in srgb, var(--beposh-ai-modal-primary) 78%, transparent);
	backdrop-filter: blur(14px) saturate(120%);
	box-sizing: border-box;
	height: 100%;
	overflow: hidden;
	width: 100%;
}

.beposh-ai-modal[aria-hidden="false"] .beposh-ai-dialog {
	animation: beposh-ai-dialog-in 360ms cubic-bezier(.2, .8, .2, 1) both;
}

.beposh-ai-dialog {
	background: linear-gradient(145deg, color-mix(in srgb, var(--beposh-ai-modal-surface) 96%, #fff), var(--beposh-ai-modal-surface));
	border: 1px solid color-mix(in srgb, var(--beposh-ai-modal-accent) 18%, #fff);
	border-radius: var(--beposh-ai-modal-radius);
	box-shadow: 0 34px 100px color-mix(in srgb, var(--beposh-ai-modal-primary) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, .8);
	color: var(--beposh-ai-modal-text);
	box-sizing: border-box;
	isolation: isolate;
	max-height: calc(100dvh - 40px);
	max-width: 620px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 30px;
	width: min(100%, 620px);
}

.beposh-ai-dialog-orb {
	border-radius: 999px;
	filter: blur(2px);
	opacity: .13;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.beposh-ai-dialog-orb-one {
	background: var(--beposh-ai-modal-accent);
	height: 190px;
	right: -80px;
	top: -90px;
	width: 190px;
}

.beposh-ai-dialog-orb-two {
	background: var(--beposh-ai-modal-primary);
	bottom: 0;
	height: 180px;
	left: -90px;
	width: 180px;
}

.beposh-ai-head {
	gap: 16px;
	position: relative;
}

.beposh-ai-head-icon {
	background: linear-gradient(145deg, var(--beposh-ai-modal-primary), color-mix(in srgb, var(--beposh-ai-modal-primary) 55%, var(--beposh-ai-modal-accent)));
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 18px;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--beposh-ai-modal-primary) 28%, transparent);
	color: #fff;
	flex-basis: 62px;
	height: 62px;
	transform: rotate(-3deg);
	width: 62px;
}

.beposh-ai-head-icon .beposh-ai-modal-brand-logo {
	filter: brightness(0) invert(1);
	height: 40px;
	object-fit: contain;
	width: 40px;
}

.beposh-ai-head-icon .beposh-ai-button-image {
	height: 44px;
	width: 44px;
}

.beposh-ai-head-icon .beposh-ai-button-image img {
	border-radius: 10px;
	height: 44px;
	object-fit: contain;
	width: 44px;
}

.beposh-ai-eyebrow {
	color: var(--beposh-ai-modal-accent);
	display: block;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .02em;
	margin-bottom: 3px;
}

.beposh-ai-dialog h2 {
	color: var(--beposh-ai-modal-text);
	font-size: 27px;
	font-weight: 950;
}

.beposh-ai-head p {
	color: var(--beposh-ai-modal-muted);
}

.beposh-ai-close {
	background: color-mix(in srgb, var(--beposh-ai-modal-primary) 5%, transparent);
	border-color: color-mix(in srgb, var(--beposh-ai-modal-primary) 12%, transparent);
	border-radius: 12px;
	color: var(--beposh-ai-modal-text);
	transition: transform .18s ease, background .18s ease;
	z-index: 3;
}

.beposh-ai-close:hover {
	background: color-mix(in srgb, var(--beposh-ai-modal-accent) 12%, transparent);
	transform: rotate(6deg);
}

.beposh-ai-progress {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 24px 0 18px;
}

.beposh-ai-progress span {
	align-items: center;
	color: var(--beposh-ai-modal-muted);
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 6px;
	white-space: nowrap;
}

.beposh-ai-progress i {
	align-items: center;
	background: color-mix(in srgb, var(--beposh-ai-modal-primary) 7%, transparent);
	border-radius: 50%;
	display: inline-flex;
	font-size: 10px;
	font-style: normal;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.beposh-ai-progress .is-active {
	color: var(--beposh-ai-modal-accent);
}

.beposh-ai-progress .is-active i {
	background: var(--beposh-ai-modal-accent);
	box-shadow: 0 7px 18px color-mix(in srgb, var(--beposh-ai-modal-accent) 28%, transparent);
	color: #fff;
}

.beposh-ai-progress .is-complete {
	color: color-mix(in srgb, var(--beposh-ai-modal-accent) 72%, var(--beposh-ai-modal-muted));
}

.beposh-ai-progress .is-complete i {
	background: color-mix(in srgb, var(--beposh-ai-modal-accent) 16%, transparent);
	color: var(--beposh-ai-modal-accent);
}

.beposh-ai-progress b {
	background: color-mix(in srgb, var(--beposh-ai-modal-primary) 11%, transparent);
	border-radius: 2px;
	flex: 1 1 28px;
	height: 2px;
	max-width: 42px;
}

.beposh-ai-steps {
	margin-top: 0;
}

.beposh-ai-form {
	background: color-mix(in srgb, var(--beposh-ai-modal-surface) 86%, #f8fafc);
	border: 1px solid color-mix(in srgb, var(--beposh-ai-modal-primary) 9%, transparent);
	border-radius: calc(var(--beposh-ai-modal-radius) - 7px);
	box-shadow: 0 18px 45px color-mix(in srgb, var(--beposh-ai-modal-primary) 8%, transparent);
	gap: 14px;
	padding: 18px;
}

.beposh-ai-upload {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--beposh-ai-modal-accent) 7%, #fff), color-mix(in srgb, var(--beposh-ai-modal-primary) 4%, #fff));
	border-color: color-mix(in srgb, var(--beposh-ai-modal-accent) 48%, transparent);
	border-radius: calc(var(--beposh-ai-modal-radius) - 10px);
	min-height: 148px;
	padding: 22px;
}

.beposh-ai-upload:hover,
.beposh-ai-upload:focus-within,
.beposh-ai-upload.is-dragging {
	border-color: var(--beposh-ai-modal-accent);
	box-shadow: 0 16px 34px color-mix(in srgb, var(--beposh-ai-modal-accent) 16%, transparent);
}

.beposh-ai-upload-icon {
	background: linear-gradient(145deg, var(--beposh-ai-modal-accent), color-mix(in srgb, var(--beposh-ai-modal-accent) 62%, var(--beposh-ai-modal-primary)));
	box-shadow: 0 12px 28px color-mix(in srgb, var(--beposh-ai-modal-accent) 28%, transparent);
	flex-basis: 64px;
	height: 64px;
}

.beposh-ai-upload-title {
	color: var(--beposh-ai-modal-text);
	font-size: 16px;
}

.beposh-ai-upload-hint {
	color: var(--beposh-ai-modal-muted);
}

.beposh-ai-upload-meta {
	color: color-mix(in srgb, var(--beposh-ai-modal-muted) 74%, transparent);
}

.beposh-ai-upload-tips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.beposh-ai-upload-tips span {
	align-items: center;
	background: color-mix(in srgb, var(--beposh-ai-modal-primary) 5%, transparent);
	border-radius: 999px;
	color: var(--beposh-ai-modal-muted);
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 5px;
	padding: 6px 9px;
}

.beposh-ai-upload-tips i {
	color: var(--beposh-ai-modal-accent);
	font-style: normal;
}

.beposh-ai-form button[type="submit"] {
	align-items: center;
	background: linear-gradient(110deg, var(--beposh-ai-modal-primary), var(--beposh-ai-modal-accent)) !important;
	border-radius: calc(var(--beposh-ai-modal-radius) - 11px) !important;
	box-shadow: 0 14px 30px color-mix(in srgb, var(--beposh-ai-modal-accent) 25%, transparent) !important;
	display: flex;
	font-size: 14px !important;
	gap: 9px;
	justify-content: center;
	min-height: 50px;
	transition: transform .18s ease, box-shadow .18s ease !important;
}

.beposh-ai-form button[type="submit"]:hover {
	box-shadow: 0 18px 36px color-mix(in srgb, var(--beposh-ai-modal-accent) 34%, transparent) !important;
	transform: translateY(-2px);
}

.beposh-ai-form button[type="submit"] i {
	font-size: 18px;
	font-style: normal;
}

.beposh-ai-step-processing {
	background: linear-gradient(145deg, color-mix(in srgb, var(--beposh-ai-modal-accent) 9%, var(--beposh-ai-modal-surface)), var(--beposh-ai-modal-surface));
	border-color: color-mix(in srgb, var(--beposh-ai-modal-accent) 22%, transparent);
	border-radius: calc(var(--beposh-ai-modal-radius) - 7px);
	color: var(--beposh-ai-modal-muted);
}

.beposh-ai-step-processing h3 {
	color: var(--beposh-ai-modal-text);
}

.beposh-ai-spinner {
	border-color: color-mix(in srgb, var(--beposh-ai-modal-accent) 18%, transparent);
	border-top-color: var(--beposh-ai-modal-accent);
}

.beposh-ai-step-result {
	background: color-mix(in srgb, var(--beposh-ai-modal-surface) 92%, #f8fafc);
	border-radius: calc(var(--beposh-ai-modal-radius) - 7px);
	padding: 14px;
}

.beposh-ai-result img {
	border-radius: calc(var(--beposh-ai-modal-radius) - 11px);
}

.beposh-ai-download {
	background: linear-gradient(110deg, var(--beposh-ai-modal-primary), var(--beposh-ai-modal-accent)) !important;
	border-radius: calc(var(--beposh-ai-modal-radius) - 11px) !important;
}

.beposh-ai-modal-style-minimal .beposh-ai-dialog-orb {
	display: none;
}

.beposh-ai-modal-style-minimal .beposh-ai-dialog {
	box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
}

.beposh-ai-modal-style-dark {
	--beposh-ai-modal-text: #f8fafc;
	--beposh-ai-modal-muted: #a8b2c3;
}

.beposh-ai-modal-style-dark .beposh-ai-dialog {
	background: linear-gradient(145deg, var(--beposh-ai-modal-primary), color-mix(in srgb, var(--beposh-ai-modal-primary) 72%, #000));
	border-color: color-mix(in srgb, var(--beposh-ai-modal-accent) 34%, transparent);
	box-shadow: 0 38px 110px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.beposh-ai-modal-style-dark .beposh-ai-form {
	background: rgba(255, 255, 255, .055);
	border-color: rgba(255, 255, 255, .09);
}

.beposh-ai-modal-style-dark .beposh-ai-upload {
	background: rgba(255, 255, 255, .04);
}

.beposh-ai-modal-style-dark .beposh-ai-upload-tips span,
.beposh-ai-modal-style-dark .beposh-ai-close {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(255, 255, 255, .1);
}

@keyframes beposh-ai-dialog-in {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
	.beposh-ai-dialog {
		border-radius: min(var(--beposh-ai-modal-radius), 22px);
		max-height: calc(100dvh - 24px);
		padding: 22px 16px 16px;
	}

	.beposh-ai-progress span {
		font-size: 0;
	}

	.beposh-ai-progress i {
		font-size: 10px;
	}

	.beposh-ai-head-icon {
		flex-basis: 54px;
		height: 54px;
		width: 54px;
	}

	.beposh-ai-subscription-box summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.beposh-ai-subscription-plans article {
		grid-template-columns: 1fr auto;
	}

	.beposh-ai-subscription-plans article .button {
		grid-column: 1 / -1;
	}

	.beposh-ai-subscription-login {
		align-items: stretch;
		flex-direction: column;
	}

	.beposh-ai-before-after-label {
		font-size: 11px;
		padding: 6px 9px;
		top: 9px;
	}

	.beposh-ai-before-after-label.is-before {
		left: 9px;
	}

	.beposh-ai-before-after-label.is-after {
		right: 9px;
	}

	.beposh-ai-before-after-divider i {
		height: 34px;
		width: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.beposh-ai-modal[aria-hidden="false"] .beposh-ai-dialog {
		animation: none;
	}
}
