.dwb-cart-design-link {
	align-items: center;
	background: #fff4ec;
	border: 1px solid rgba(255, 95, 97, .28);
	border-radius: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: .45rem 1rem;
	justify-content: space-between;
	margin: 0 auto 1.2rem;
	max-width: 1040px;
	padding: 1rem 1.2rem;
}

.dwb-cart-design-link a {
	color: #e5522e;
	font-size: 1.05rem;
	font-weight: 900;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}

.dwb-cart-design-link span {
	color: #6d647a;
	font-size: .9rem;
}

.dwb-studio {
	background: #f7f4ff;
	border: 1px solid rgba(32, 22, 56, .08);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(32, 22, 56, .1);
	margin: 2rem auto 0;
	max-width: 1120px;
	overflow: hidden;
}

.dwb-studio,
.dwb-studio *,
.dwb-studio *::before,
.dwb-studio *::after {
	box-sizing: border-box;
}

.dwb-studio__grid > *,
.dwb-studio__panel,
.dwb-studio__optional-content,
.dwb-upload,
.dwb-field {
	max-width: 100%;
	min-width: 0;
}

.dwb-studio__tabs {
	background: #fff;
	border-bottom: 1px solid rgba(32, 22, 56, .08);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dwb-studio__tabs button {
	background: transparent;
	border: 0;
	color: #6d647a;
	font-weight: 900;
	padding: 1.1rem;
	position: relative;
}

.dwb-studio__tabs button.is-active {
	color: #5e2bbf;
}

.dwb-studio__tabs button.is-active::after {
	background: #ff5f61;
	bottom: 0;
	content: "";
	height: 4px;
	left: 20%;
	position: absolute;
	right: 20%;
}

.dwb-studio__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.dwb-studio__configuration {
	border-bottom: 1px solid rgba(32, 22, 56, .1);
	margin-bottom: 1.5rem;
	padding-bottom: .5rem;
}

.dwb-segmented {
	background: rgba(32, 22, 56, .07);
	border-radius: 14px;
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 1rem;
	padding: 4px;
}

.dwb-segmented button {
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: #6d647a;
	font-size: .88rem;
	font-weight: 900;
	min-height: 42px;
	padding: .55rem .7rem;
}

.dwb-segmented button.is-active {
	background: #fff;
	box-shadow: 0 5px 14px rgba(32, 22, 56, .1);
	color: #5e2bbf;
}

.dwb-segmented--small {
	margin: 0;
	min-width: 180px;
}

.dwb-segmented--small button {
	font-size: .78rem;
	min-height: 34px;
}

.dwb-studio__panel h3 {
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	margin: 0 0 1.4rem;
}

.dwb-upload,
.dwb-field {
	background: #fff;
	border: 1px solid rgba(32, 22, 56, .14);
	border-radius: 16px;
	display: grid;
	gap: .55rem;
	margin: 0 0 1rem;
	padding: 1rem;
}

.dwb-upload span,
.dwb-field span {
	font-weight: 800;
}

.dwb-upload input,
.dwb-field select,
.dwb-field input {
	max-width: 100%;
	min-width: 0;
}

.dwb-upload input[type="file"] {
	overflow: hidden;
	width: 100%;
}

.dwb-field input[type="text"],
.dwb-field select {
	background: #fff;
	border: 1px solid rgba(32, 22, 56, .18);
	border-radius: 10px;
	color: #201638;
	min-height: 44px;
	padding: .65rem .75rem;
	width: 100%;
}

.dwb-field small {
	color: #6d647a;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.45;
}

.dwb-studio__privacy {
	color: #6d647a;
	font-size: .88rem;
	line-height: 1.55;
}

.dwb-studio__ai-consent {
	align-items: flex-start;
	background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(32, 22, 56, .1);
	border-radius: 14px;
	display: flex;
	font-size: .82rem;
	gap: .65rem;
	line-height: 1.45;
	margin: 0 0 1rem;
	padding: .85rem;
}

.dwb-studio__ai-consent input {
	accent-color: #5e2bbf;
	margin-top: .22rem;
}

.dwb-studio__generate,
.dwb-studio__order {
	background: #5e2bbf;
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-weight: 900;
	min-height: 50px;
	padding: .75rem 1.3rem;
	width: 100%;
}

.dwb-studio button:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.dwb-studio__preview-wrap {
	min-width: 0;
}

.dwb-studio__preview-stage {
	display: flex;
	justify-content: center;
	perspective: 900px;
}

.dwb-studio__preview {
	--dwb-preview-ratio: 1.419;
	--dwb-preview-max-width: 620px;
	aspect-ratio: var(--dwb-preview-ratio, 4 / 3);
	background:
		linear-gradient(135deg, rgba(255, 200, 61, .28), rgba(94, 43, 191, .16)),
		#fff;
	border: 10px solid #fff;
	border-radius: 20px;
	box-shadow: 0 18px 45px rgba(32, 22, 56, .14);
	overflow: hidden;
	max-width: var(--dwb-preview-max-width);
	position: relative;
	transform: rotateX(var(--dwb-preview-rotate-x, 0deg)) rotateY(var(--dwb-preview-rotate-y, 0deg)) scale(var(--dwb-preview-scale, 1));
	transition: width .18s ease, height .18s ease, transform .08s linear;
	width: 100%;
}

.dwb-studio__preview::after {
	background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, rgba(32,22,56,.09) 2px 4px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.dwb-studio__preview img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: var(--dwb-object-x, 50%) var(--dwb-object-y, 50%);
	position: absolute;
	transform: scale(var(--dwb-image-zoom, 1));
	transition: opacity .05s linear;
	width: 100%;
}

.dwb-studio__preview img[data-dwb-preview-image="one"] { opacity: 1; }
.dwb-studio__preview img[data-dwb-preview-image="two"] { opacity: 0; }
.dwb-studio__preview img[data-dwb-preview-image="three"] { opacity: 0; }

.dwb-studio__text-layer {
	color: #fff;
	font-family: "Nunito", Arial, sans-serif;
	font-size: clamp(1rem, 3.2vw, 2rem);
	font-weight: 900;
	left: 10%;
	line-height: 1.12;
	overflow-wrap: anywhere;
	pointer-events: none;
	position: absolute;
	right: 10%;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .65), 0 1px 2px rgba(0, 0, 0, .8);
	z-index: 3;
}

.dwb-studio__text-layer[data-position="top"] { top: 8%; }
.dwb-studio__text-layer[data-position="center"] { top: 50%; transform: translateY(-50%); }
.dwb-studio__text-layer[data-position="bottom"] { bottom: 8%; }
.dwb-studio__text-layer[data-tone="dark"] {
	color: #201638;
	text-shadow: 0 2px 12px rgba(255, 255, 255, .8), 0 1px 2px rgba(255, 255, 255, .95);
}
.dwb-studio__text-layer[data-size="small"] { font-size: clamp(.82rem, 2.3vw, 1.35rem); }
.dwb-studio__text-layer[data-size="large"] { font-size: clamp(1.2rem, 4.2vw, 2.7rem); }

.dwb-studio__format-badge {
	background: rgba(32, 22, 56, .78);
	border-radius: 999px;
	bottom: .65rem;
	color: #fff;
	font-size: .72rem;
	font-weight: 900;
	left: .65rem;
	padding: .38rem .65rem;
	position: absolute;
	z-index: 4;
}

.dwb-studio__placeholder {
	display: grid;
	inset: 0;
	place-content: center;
	position: absolute;
	text-align: center;
}

.dwb-studio__placeholder strong {
	color: #201638;
	font-size: 1.5rem;
}

.dwb-studio__placeholder span {
	color: #6d647a;
	margin-top: .35rem;
}

.dwb-studio__slider {
	display: grid;
	gap: .5rem;
	margin: 1rem 0;
}

.dwb-studio__slider--compact {
	grid-template-columns: 78px 1fr;
	align-items: center;
	margin: .65rem 0;
}

.dwb-studio__slider span {
	font-size: .85rem;
	font-weight: 800;
}

.dwb-studio__slider input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	height: 34px;
	touch-action: pan-y;
	width: 100%;
}

.dwb-studio__slider input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(90deg, #5e2bbf, #ff5f61);
	border-radius: 999px;
	height: 8px;
}

.dwb-studio__slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 4px solid #ff5f61;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(32, 22, 56, .28);
	height: 24px;
	margin-top: -8px;
	width: 24px;
}

.dwb-studio__slider input[type="range"]::-moz-range-track {
	background: linear-gradient(90deg, #5e2bbf, #ff5f61);
	border-radius: 999px;
	height: 8px;
}

.dwb-studio__slider input[type="range"]::-moz-range-thumb {
	background: #fff;
	border: 4px solid #ff5f61;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(32, 22, 56, .28);
	height: 18px;
	width: 18px;
}

.dwb-studio__status {
	color: #6d647a;
	font-size: .85rem;
	margin: .7rem 0 0;
	text-align: center;
}

.dwb-studio__status[data-tone="success"] { color: #167461; }
.dwb-studio__status[data-tone="error"] { color: #b42336; }

.dwb-studio__generate.is-loading,
.dwb-studio__order.is-loading {
	cursor: progress;
	opacity: .72;
}

.dwb-studio__motion-help {
	align-items: center;
	background: linear-gradient(135deg, #fff6df, #fff);
	border: 1px solid rgba(255, 200, 61, .65);
	border-radius: 14px;
	display: flex;
	font-size: .82rem;
	font-weight: 800;
	gap: .75rem;
	line-height: 1.4;
	margin: .8rem 0 1rem;
	padding: .75rem;
}

.dwb-studio__motion-help button {
	background: #201638;
	border: 0;
	border-radius: 999px;
	color: #fff;
	flex: 0 0 auto;
	font-size: .76rem;
	font-weight: 900;
	padding: .55rem .75rem;
}

.dwb-studio__motion-help.is-active {
	background: linear-gradient(135deg, rgba(51, 200, 180, .16), #fff);
	border-color: rgba(51, 200, 180, .55);
}

.dwb-crop {
	background: #fff;
	border: 1px solid rgba(32, 22, 56, .1);
	border-radius: 16px;
	margin: 1rem 0;
	padding: 1rem;
}

.dwb-crop__header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: .85rem;
}

.dwb-studio__optional {
	background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(32, 22, 56, .1);
	border-radius: 16px;
	margin-top: 1.25rem;
}

.dwb-studio__optional summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 900;
	gap: .6rem;
	justify-content: space-between;
	list-style: none;
	padding: .9rem 1rem;
}

.dwb-studio__optional summary::-webkit-details-marker { display: none; }

.dwb-studio__optional summary::after {
	color: #5e2bbf;
	content: "+";
	font-size: 1.2rem;
	margin-left: auto;
}

.dwb-studio__optional[open] summary::after { content: "−"; }

.dwb-studio__optional summary small,
.dwb-order-options__heading small {
	background: #f5f0ff;
	border-radius: 999px;
	color: #6d647a;
	font-size: .68rem;
	font-weight: 900;
	letter-spacing: .06em;
	padding: .25rem .5rem;
	text-transform: uppercase;
}

.dwb-studio__optional-content {
	border-top: 1px solid rgba(32, 22, 56, .08);
	padding: 1rem;
}

.dwb-studio__optional--third {
	background: rgba(255, 255, 255, .5);
	margin: .35rem 0 1rem;
}

.dwb-studio__optional-intro {
	color: #6d647a;
	font-size: .86rem;
	line-height: 1.55;
	margin: 0 0 .85rem;
}

.dwb-studio__remove-image {
	background: transparent;
	border: 0;
	color: #6d647a;
	font-size: .82rem;
	font-weight: 800;
	padding: .2rem 0;
	text-decoration: underline;
}

.dwb-crop__header .dwb-segmented:has([data-dwb-crop-image="three"]:not([hidden])) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-width: 250px;
}

.dwb-studio__optional-grid {
	display: grid;
	gap: .7rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dwb-studio__optional-grid .dwb-field {
	padding: .75rem;
}

.dwb-order-options {
	background: #fff;
	border: 1px solid rgba(32, 22, 56, .1);
	border-radius: 16px;
	margin: 1rem 0;
	padding: 1rem;
}

.dwb-order-options__heading {
	align-items: center;
	display: flex;
	gap: .6rem;
	justify-content: space-between;
	margin-bottom: .75rem;
}

.dwb-order-options .dwb-field {
	background: #fdfcff;
	margin-bottom: .65rem;
	padding: .8rem;
}

.dwb-order-options > p {
	color: #6d647a;
	font-size: .78rem;
	line-height: 1.5;
	margin: 0;
}

.dwb-order-options.is-unavailable {
	background: rgba(255, 255, 255, .65);
}

.dwb-order-options.is-unavailable select {
	background: #f4f1f7;
}

.dwb-studio__resume {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: #5b2bc8;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	margin-top: .75rem;
	padding: .75rem 1rem;
	width: 100%;
}

.dwb-studio__resume:disabled {
	cursor: wait;
	opacity: .65;
}

@media (max-width: 820px) {
	.dwb-studio__grid {
		grid-template-columns: 1fr;
	}

	.dwb-crop__header {
		align-items: stretch;
		flex-direction: column;
	}

	.dwb-studio__optional-grid {
		grid-template-columns: 1fr;
	}

	.dwb-studio__preview {
		transition: width .12s ease, height .12s ease, transform .025s linear;
	}

	.dwb-studio__preview img {
		transition: none;
	}

	.dwb-studio__motion-help {
		align-items: stretch;
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.dwb-studio {
		border-radius: 20px;
	}

	.dwb-studio__grid {
		gap: 1.25rem;
		padding: 1rem;
	}

	.dwb-studio__tabs button {
		font-size: .84rem;
		line-height: 1.2;
		padding: .9rem .45rem;
	}

	.dwb-segmented button {
		font-size: .78rem;
		line-height: 1.2;
		min-width: 0;
		overflow-wrap: anywhere;
		padding: .5rem .35rem;
		white-space: normal;
	}

	.dwb-studio__panel h3 {
		font-size: 1.2rem;
		line-height: 1.15;
		overflow-wrap: anywhere;
	}

	.dwb-upload,
	.dwb-field,
	.dwb-crop,
	.dwb-order-options {
		padding: .8rem;
	}

	.dwb-upload input[type="file"] {
		font-size: .78rem;
	}
}
