.cl-tekst,
.cl-tekst * {
	box-sizing: border-box;
}

.cl-tekst {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 16px;
	color: var(--cl-ink, #171412);
	font-family: var(--cl-font, Manrope, system-ui, sans-serif);
	overflow: visible;
}

.cl-tekst-lead {
	margin: 0;
}

.cl-tekst-plate {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 140px;
	padding: 16px;
	overflow: hidden;
	border: 1px solid #d9cdc0;
	border-radius: 10px;
	background: #fffdf9;
}

.cl-tekst-plate.is-dark-text {
	background: #fffdf9;
	border-color: #d9cdc0;
}

.cl-tekst-plate.is-light-text {
	background: #2c1d17;
	border-color: #2c1d17;
}

.cl-tekst-sample {
	display: inline-block;
	max-width: none;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
}

.cl-tekst-field {
	min-width: 0;
	max-width: 100%;
	margin: 0 0 12px;
}

.cl-tekst-field label,
.cl-tekst-label {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--cl-ink, #171412);
}

.cl-tekst input[type="text"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	color: var(--cl-ink, #171412);
	background: var(--cl-white, #fff);
	border: 1px solid var(--cl-line, #e6e0d8);
	border-radius: 10px;
}

.cl-tekst input[type="text"]:focus {
	border-color: var(--cl-accent, #8a5233);
	outline: 1px solid var(--cl-accent, #8a5233);
	outline-offset: 1px;
}

.cl-tekst-name-scale {
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid #d9cdc0;
	background: #fffdf9;
	color: #2c1d17;
	cursor: pointer;
	touch-action: manipulation;
}

.cl-tekst-name-scale.is-selected {
	background: #2c1d17;
	border-color: #2c1d17;
	color: #fffdf9;
}

.cl-tekst-size {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	min-width: 3.75rem;
	padding: 0.4rem 0.75rem 0.35rem;
	gap: 0.15rem;
	border: 1.5px solid var(--cl-line, #d9cdc0);
	border-radius: 8px;
	background: #fff;
	color: var(--cl-ink, #171412);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cl-tekst-size-label {
	display: block;
}

.cl-tekst-size-price {
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--cl-muted, #5a5049);
	white-space: nowrap;
}

.cl-tekst-size-price del {
	margin-right: 0.25em;
	font-weight: 500;
	color: inherit;
	opacity: 0.7;
}

.cl-tekst-size-price ins {
	text-decoration: none;
	background: none;
	color: inherit;
}

.cl-tekst-size.is-selected {
	border-color: var(--cl-btn, #2c1d17);
	background: #faf6f2;
	color: var(--cl-ink, #14110f);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cl-btn, #2c1d17);
}

.cl-tekst-size.is-selected .cl-tekst-size-price {
	color: var(--cl-ink, #14110f);
}

.cl-tekst-letter-font-field {
	display: block !important;
	visibility: visible !important;
	margin-top: 8px;
}

.cl-tekst-letter-font {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	font-size: 16px;
	line-height: 1.3;
	color: #2c1d17;
	background: #fffdf9;
	border: 1px solid #d9cdc0;
	border-radius: 10px;
	cursor: pointer;
}

.cl-tekst-fontpick {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cl-tekst-font-btn {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 8px 36px 8px 16px;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	color: var(--cl-ink, #171412);
	background: var(--cl-white, #fff);
	border: 1px solid var(--cl-line, #e6e0d8);
	border-radius: 10px;
	cursor: pointer;
}

.cl-tekst-font-btn:focus {
	border-color: var(--cl-accent, #8a5233);
	outline: 1px solid var(--cl-accent, #8a5233);
	outline-offset: 1px;
}

.cl-tekst-font-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 1px solid var(--cl-btn, #2c1d17);
	border-bottom: 1px solid var(--cl-btn, #2c1d17);
	transform: translateY(-70%) rotate(45deg);
}

.cl-tekst-fontpick[data-open="1"] .cl-tekst-font-btn::after {
	transform: translateY(-20%) rotate(225deg);
}

.cl-tekst-font-current {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow: visible;
	padding-left: 0.55em;
	font-size: 16px;
	line-height: 1.3;
	white-space: nowrap;
}

.cl-tekst-font-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	list-style: none;
	background: var(--cl-white, #fff);
	border: 1px solid var(--cl-line, #e6e0d8);
	border-radius: 10px;
}

.cl-tekst-font-menu[hidden] {
	display: none;
}

.cl-tekst-font-option {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px 8px calc(12px + 0.55em);
	overflow: visible;
	font-size: 16px;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
}

.cl-tekst-font-option.is-active,
.cl-tekst-font-option[aria-selected="true"] {
	background: #d9cdc0;
	color: #2c1d17;
}

.cl-tekst .cl-tekst-font-btn,
.cl-tekst .cl-tekst-font-btn .cl-tekst-font-current,
.cl-tekst .cl-tekst-font-option,
.cl-tekst select,
.cl-tekst select option,
.cl-tekst .cl-tekst-print-choice,
.cl-tekst .cl-tekst-print-choice option {
	color: #2c1d17 !important;
	-webkit-text-fill-color: #2c1d17 !important;
	opacity: 1 !important;
}

.cl-tekst .cl-tekst-font-btn,
.cl-tekst .cl-tekst-font-menu,
.cl-tekst select,
.cl-tekst .cl-tekst-print-choice {
	background: #fffdf9 !important;
	background-color: #fffdf9 !important;
	border: 1px solid #d9cdc0 !important;
	box-shadow: none !important;
}

.cl-tekst .cl-tekst-font-btn {
	justify-content: flex-start !important;
	text-align: left !important;
	padding: 8px 36px 8px 16px !important;
}

.cl-tekst .cl-tekst-font-current,
.cl-tekst .cl-tekst-font-option {
	overflow: visible;
	padding-left: 0.55em;
}

.cl-tekst .cl-tekst-font-option {
	padding: 8px 12px 8px calc(12px + 0.55em);
}

.cl-tekst .cl-tekst-font-option.is-active,
.cl-tekst .cl-tekst-font-option[aria-selected="true"] {
	background: #d9cdc0 !important;
	background-color: #d9cdc0 !important;
}

.cl-tekst-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4em;
	margin: 4px 0 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cl-ink, #171412);
}

.cl-tekst-price-was[hidden] {
	display: none;
}

.cl-tekst-price-was {
	font-weight: 500;
	color: var(--cl-muted, #6b6157);
	text-decoration: line-through;
}

.cl-tekst-price ins.cl-tekst-price-now {
	text-decoration: none;
	background: none;
	color: inherit;
}

.cl-tekst-count {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--cl-muted, #6b6157);
}

.cl-tekst-count[hidden] {
	display: none;
}

.cl-tekst-note {
	margin: 0 0 12px;
	color: var(--cl-ink, #171412);
}

.cl-tekst-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cl-tekst-submit,
form.cart:has(.cl-tekst) .single_add_to_cart_button,
form.cart:has(.cl-tekst) button[name="add-to-cart"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin-top: 12px;
	padding: 10px 16px;
	font-family: var(--cl-font, Manrope, system-ui, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--cl-btn, #2c1d17);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.cl-tekst-submit:disabled,
form.cart:has(.cl-tekst) .single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: default;
}

.cl-tekst-edit-actions {
	margin: 8px 0 0;
	text-align: center;
}

.cl-tekst-edit-cancel {
	font-size: 14px;
	color: #6b5c52;
	text-decoration: underline;
}

form.cart:has(.cl-tekst) .woocommerce-variation-price,
form.cart:has(.cl-tekst) .woocommerce-variation-price .price {
	display: none !important;
}

/* Rey's round swatches are the color control. The variation <select> stays in the DOM. */
form.cart:has(.cl-tekst) select.cl-tekst-attr-select,
form.cart:has(.cl-tekst) table.variations select,
form.cart:has(.cl-tekst) select[name^="attribute_"] {
	display: none !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	appearance: none !important;
	pointer-events: none !important;
}

form.cart:has(.cl-tekst) .single_variation_wrap,
form.cart:has(.cl-tekst) .woocommerce-variation-add-to-cart,
form.cart:has(.cl-tekst) .woocommerce-variation-add-to-cart-disabled {
	display: block !important;
}

/* Plate and name first, then Farve, then the rest of the tool. */
form.cart:has(.cl-tekst) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

form.cart:has(.cl-tekst) .cl-tekst-lead {
	order: 1;
}

.single-product form.cart.variations_form:has(.cl-tekst) table.variations,
form.cart:has(.cl-tekst) > table.variations,
form.cart:has(.cl-tekst) > .variations,
form.cart:has(.cl-tekst) > :has(.rey-swatchList) {
	order: 2;
	min-width: 0;
	max-width: 100%;
}

form.cart:has(.cl-tekst) .cl-tekst:not(.cl-tekst-lead),
form.cart:has(.cl-tekst) > .single_variation_wrap,
form.cart:has(.cl-tekst) .woocommerce-variation-add-to-cart {
	order: 3;
	min-width: 0;
	max-width: 100%;
}

form.cart:has(.cl-tekst) .quantity,
form.cart:has(.cl-tekst) .rey-cartBtnQty,
form.cart:has(.cl-tekst) .single_add_to_cart_button,
form.cart:has(.cl-tekst) .cl-tekst-submit,
form.cart:has(.cl-tekst) button[name="add-to-cart"],
form.cart:has(.cl-tekst) .woocommerce-variation-availability {
	order: 4;
}

form.cart:has(.cl-tekst) input.qty {
	max-width: 100%;
	min-height: 44px;
	font-size: 16px;
}

.cl-tekst-svg {
	display: none;
	flex: none;
	max-width: none;
	overflow: visible;
}

.cl-tekst.is-outline .cl-tekst-sample {
	display: none;
}

.cl-tekst.is-outline .cl-tekst-svg {
	display: block;
	filter: drop-shadow(1px 3px 2px rgba(44, 29, 23, 0.32));
}

.cl-tekst-plate.is-light-text.is-outline .cl-tekst-svg {
	filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.45));
}

.cl-tekst[data-letter-height="1"] .cl-tekst-plate {
	overflow-x: auto;
	overflow-y: hidden;
}

.cl-tekst-letter-shadow {
	filter: blur(0.6px);
}

.cl-tekst-bagplade-label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.cl-tekst-slot-plate {
	display: none;
}

.cl-tekst.is-plate .cl-tekst-slot-plate {
	display: block;
}

.cl-tekst-plate.is-pinned {
	z-index: 40;
	box-sizing: border-box;
	background: #fffdf9;
	border: 1px solid #d9cdc0;
}

.cl-tekst-plate.is-pinned.is-light-text {
	background: #2c1d17;
	border-color: #2c1d17;
}

.cl-tekst-pin-spacer {
	display: block;
	width: 100%;
	pointer-events: none;
}

.cl-tekst-bagplade-label input {
	width: 22px;
	height: 22px;
	margin: 0;
}

.cl-tekst-materials,
.cl-tekst-slot {
	min-width: 0;
	max-width: 100%;
	margin: 0 0 8px;
}

.cl-tekst-texture-label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #2c1d17;
}

.cl-tekst-slot .cl-tekst-texture-row + .cl-tekst-texture-label {
	margin: 6px 0 4px;
	font-size: 12px;
	font-weight: 600;
}

.cl-tekst-texture-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 100%;
	margin: 0 0 4px;
}

.cl-tekst-texture {
	display: block;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 2px;
	border: 1px solid #d9cdc0;
	border-radius: 6px;
	background: #fffdf9;
	cursor: pointer;
	touch-action: manipulation;
}

.cl-tekst-texture span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 4px;
	background-position: center;
	background-size: cover;
}

.cl-tekst-texture.is-selected,
.cl-tekst-texture[aria-pressed="true"] {
	border-color: #2c1d17;
}

.cl-tekst.is-bogstav .cl-tekst-plate {
	height: 340px;
	padding: 24px 18px;
	overflow-x: auto;
	overflow-y: hidden;
	background: #fffdf9;
	border-color: #d9cdc0;
}

.cl-tekst.is-vimpel .cl-tekst-plate,
.cl-tekst-plate.is-vimpel {
	height: 180px;
	padding: 16px;
	background: #fffdf9;
	border-color: #d9cdc0;
}

.cl-tekst.is-vimpel .cl-tekst-svg,
.cl-tekst-plate.is-vimpel .cl-tekst-svg {
	background: transparent;
}

.cl-tekst-size-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}


.cl-tekst-farve-off {
	display: none !important;
}

body.cl-tekst-tool .woocommerce-product-gallery {
	opacity: 1 !important;
}

body.cl-tekst-tool p.stock,
body.cl-tekst-tool .stock,
body.cl-tekst-tool .stock.in-stock,
body.cl-tekst-tool .rey-availability,
body.cl-tekst-tool .woocommerce-variation-availability {
	display: none !important;
}

body.cl-tekst-tool .woocommerce-product-gallery.cl-tekst-has-switch,
body.cl-tekst-tool .cl-tekst-has-switch .woocommerce-product-gallery {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	padding-bottom: 0 !important;
	aspect-ratio: auto !important;
	overflow: visible;
}

body.cl-tekst-tool .cl-tekst-has-switch .woocommerce-product-gallery__wrapper,
body.cl-tekst-tool .cl-tekst-has-switch .woocommerce-product-gallery__image,
body.cl-tekst-tool .cl-tekst-has-switch .woocommerce-product-gallery__trigger,
body.cl-tekst-tool .cl-tekst-has-switch .flex-viewport,
body.cl-tekst-tool .cl-tekst-has-switch .flex-control-nav,
body.cl-tekst-tool .cl-tekst-has-switch .flex-control-thumbs,
body.cl-tekst-tool .woocommerce-product-gallery.cl-tekst-has-switch > *:not(.cl-tekst-stage-switch) {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

.cl-tekst-pin-spacer {
	display: none;
}

.cl-tekst-stage-switch {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.cl-tekst-stage-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 0 64px;
	width: 64px;
}

.cl-tekst-stage-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #d9cdc0;
	border-radius: 4px;
	background: #fffdf9;
	color: #2c1d17;
	font-family: inherit;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.cl-tekst-stage-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cl-tekst-stage-thumb.is-on {
	border-color: #2c1d17;
}

.cl-tekst-stage-main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.cl-tekst-gallery-dock .cl-tekst-svg {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

.cl-tekst-stage-photo {
	display: none;
	width: 100%;
}

.cl-tekst-stage-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.cl-tekst-gallery-dock {
	display: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.cl-tekst-stage-switch[data-cl-view="design"] .cl-tekst-gallery-dock,
.woocommerce-product-gallery[data-cl-view="design"] .cl-tekst-gallery-dock {
	display: block;
}

.cl-tekst-stage-switch[data-cl-view="photo"] .cl-tekst-stage-photo,
.woocommerce-product-gallery[data-cl-view="photo"] .cl-tekst-stage-photo {
	display: block;
}

.cl-tekst-gallery-dock .cl-tekst-preview,
.cl-tekst-gallery-dock .cl-tekst-plate {
	width: 100%;
	max-width: 100%;
}

.cl-tekst-gallery-dock.is-bogstav .cl-tekst-plate {
	height: 340px;
	padding: 24px 18px;
	overflow-x: auto;
	overflow-y: hidden;
}

.cl-tekst-gallery-dock.is-vimpel .cl-tekst-plate {
	height: 180px;
}

form.cart:has(.cl-tekst[data-hide-farve="1"]) .rey-swatchList.--type-rey_color,
form.cart:has(.cl-tekst[data-hide-farve="1"]) .rey-swatchList.--type-color,
form.cart:has(.cl-tekst[data-hide-farve="1"]) .cl-local-color {
	display: none !important;
}

.cl-tekst.is-bogstav:not(.is-outline) .cl-tekst-sample {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.cl-tekst.is-bogstav .cl-tekst-sample-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80%;
	font-size: 200px;
	line-height: 0.8;
	color: #3f2a22;
}

.cl-tekst.is-bogstav .cl-tekst-sample-name {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 42px;
	line-height: 1;
	color: #3f2a22;
	white-space: nowrap;
	text-shadow: 0 1px 1.5px rgba(44, 29, 23, 0.28);
}

.cl-tekst.is-bogstav .cl-tekst-name-shadow {
	filter: blur(0.7px);
}

.cl-tekst.is-bogstav.is-outline .cl-tekst-sample {
	display: none;
}

.cl-tekst-hint,
.cl-tekst-disclaimer {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cl-muted, #6b6157);
}

.cl-tekst-preview {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cl-tekst-preview .cl-tekst-disclaimer {
	margin: 8px 0 0;
}

.cl-tekst input.cl-tekst-letter {
	width: 8rem;
	max-width: 100%;
}

.cl-tekst-fixed-font {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 1024px) {
	body.cl-tekst-tool .rey-productSummary,
	body.cl-tekst-tool .rey-productGallery {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 0 !important;
	}

	body.cl-tekst-tool p.stock,
	body.cl-tekst-tool .stock,
	body.cl-tekst-tool .stock.in-stock,
	body.cl-tekst-tool .rey-availability,
	body.cl-tekst-tool .woocommerce-variation-availability {
		display: none !important;
		margin: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}

	body.cl-tekst-tool .summary .price,
	body.cl-tekst-tool .entry-summary .price {
		display: none !important;
	}

	body.cl-tekst-tool .woocommerce-breadcrumb,
	body.cl-tekst-tool .rey-breadcrumbs {
		order: 1;
		margin: 0 0 6px !important;
	}

	body.cl-tekst-tool .product_title,
	body.cl-tekst-tool .entry-title {
		order: 2;
		margin: 0 0 8px !important;
	}

	body.cl-tekst-tool .summary > .woocommerce-product-gallery,
	body.cl-tekst-tool .entry-summary > .woocommerce-product-gallery,
	body.cl-tekst-tool .rey-productTitle-wrapper > .woocommerce-product-gallery,
	body.cl-tekst-tool .summary > .rey-wcGallery {
		order: 3;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 8px !important;
		padding: 0 !important;
		background: #fff;
	}

	body.cl-tekst-tool .woocommerce-product-gallery.is-compact {
		position: fixed !important;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto !important;
		z-index: 30;
		margin: 0 !important;
		padding: 6px 12px !important;
		border-top: 1px solid var(--cl-line, #d9cdc0);
		box-shadow: 0 -4px 16px rgba(23, 20, 18, 0.08);
	}

	body.cl-tekst-tool form.cart {
		order: 4;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	body.cl-tekst-tool .woocommerce-product-gallery.is-compact .cl-tekst-disclaimer,
	body.cl-tekst-tool .woocommerce-product-gallery.is-compact .cl-tekst-stage-thumbs {
		display: none !important;
	}

	body.cl-tekst-tool .woocommerce-product-gallery.is-compact .cl-tekst-gallery-dock .cl-tekst-plate,
	body.cl-tekst-tool .woocommerce-product-gallery.is-compact .cl-tekst-plate {
		min-height: 96px !important;
		max-height: 28vh;
		aspect-ratio: auto;
	}

	body.cl-tekst-tool .rey-productSummary > .woocommerce-product-gallery,
	body.cl-tekst-tool .rey-productSummary > .rey-wcGallery,
	body.cl-tekst-tool .rey-productSummary > .summary,
	body.cl-tekst-tool .rey-productSummary > .entry-summary,
	body.cl-tekst-tool .woocommerce-product-gallery.cl-tekst-has-switch,
	body.cl-tekst-tool .cl-tekst-has-switch .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.cl-tekst-tool .cl-tekst-stage-switch {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}

	body.cl-tekst-tool .cl-tekst-stage-thumbs {
		order: -1;
		flex-direction: row;
		flex: 0 0 auto;
		width: auto;
	}

	body.cl-tekst-tool .cl-tekst-stage-main,
	body.cl-tekst-tool .cl-tekst-gallery-dock,
	body.cl-tekst-tool .cl-tekst-gallery-dock .cl-tekst-preview,
	body.cl-tekst-tool .cl-tekst-gallery-dock .cl-tekst-plate,
	body.cl-tekst-tool .cl-tekst-stage-photo,
	body.cl-tekst-tool .cl-tekst-stage-photo img {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0;
		margin-right: 0;
	}

	body.cl-tekst-tool .cl-tekst-gallery-dock.is-bogstav .cl-tekst-plate,
	body.cl-tekst-tool .cl-tekst-gallery-dock.is-bogstav .cl-tekst-preview .cl-tekst-plate,
	body.cl-tekst-tool .cl-tekst.is-bogstav .cl-tekst-plate {
		height: auto !important;
		min-height: 220px;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 767px) {
	.cl-tekst-stage-switch {
		flex-direction: column;
		gap: 10px;
	}

	.cl-tekst-stage-thumbs {
		order: -1;
		flex-direction: row;
		flex: 0 0 auto;
		width: auto;
	}

	.cl-tekst-stage-thumb {
		width: 52px;
		height: 52px;
	}

	.cl-tekst-field {
		margin: 0 0 8px;
	}

	.cl-tekst-texture {
		width: 32px;
		height: 32px;
	}

	.cl-tekst-font-current,
	.cl-tekst-font-option,
	.cl-tekst-letter-font {
		font-size: 16px;
		line-height: 1.4;
	}

	.cl-tekst-font-menu {
		z-index: 50;
		max-height: 240px;
	}

	.cl-tekst.is-bogstav .cl-tekst-plate,
	.cl-tekst-gallery-dock.is-bogstav .cl-tekst-plate,
	.cl-tekst-gallery-dock.is-bogstav .cl-tekst-preview .cl-tekst-plate {
		height: auto !important;
		min-height: 220px;
		padding: 12px 10px;
		aspect-ratio: 4 / 3;
	}

	.cl-tekst-gallery-dock .cl-tekst-preview,
	.cl-tekst-gallery-dock .cl-tekst-plate {
		width: 100%;
		max-height: none;
	}

	.cl-tekst-preview.is-pinned,
	.cl-tekst-plate.is-pinned {
		background: #fffdf9;
		border: 0;
	}

	.cl-tekst-plate.is-pinned.is-light-text {
		background: #2c1d17;
	}

	.cl-tekst-preview.is-pinned .cl-tekst-plate {
		flex: 1 1 auto;
		height: auto !important;
		min-height: 72px;
		max-height: 100%;
	}
}

@media (min-width: 768px) {
	.cl-tekst-preview.is-pinned,
	.cl-tekst-plate.is-pinned {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		z-index: auto !important;
		max-width: 100% !important;
		display: block !important;
		height: auto !important;
	}

	.cl-tekst .cl-tekst-plate.is-pinned {
		height: 140px !important;
	}

	.cl-tekst.is-bogstav .cl-tekst-plate.is-pinned,
	.cl-tekst-gallery-dock.is-bogstav .cl-tekst-plate {
		height: 340px !important;
	}

	.cl-tekst.is-vimpel .cl-tekst-plate.is-pinned {
		height: 180px !important;
	}
}

/* Bogstav controls: match the shop's rounded fields and brown buttons.
 * Specificity keeps Rey's generic button reset from removing these styles. */
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-name-scale,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 76px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #e6e0d8;
  border-radius: 12px;
  background: #fff;
  color: #171412;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-size {
  flex-direction: column;
  min-width: 112px;
  min-height: 62px;
  gap: 4px;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-name-scale.is-selected,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-size.is-selected {
  border-color: #2c1d17;
  background: #faf6f2;
  color: #2c1d17;
  box-shadow: inset 0 0 0 1px #2c1d17;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-texture {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 3px;
  border: 1px solid #e6e0d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-texture span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-texture.is-selected {
  border-color: #2c1d17;
  box-shadow: inset 0 0 0 1px #2c1d17;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-name-scale:hover,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-size:hover,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-texture:hover {
  border-color: #2c1d17;
}
body.single-product form.cart .cl-tekst.is-bogstav button:focus-visible {
  outline: 2px solid #2c1d17;
  outline-offset: 3px;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-font-btn {
  border: 1px solid #e6e0d8;
  border-radius: 10px;
  padding: 10px 13px;
  background: #fff;
}
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-name-scale-row,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-texture-row,
body.single-product form.cart .cl-tekst.is-bogstav .cl-tekst-size-row {
  gap: 8px;
}
