/* only screen and (max-width: 786px) */

@scroll-timeline quick-link-canvas-timeline {
	source: auto;
	orientation: vertical;
	scroll-offsets: 100vh, 120vh;
}

#main #product {
	padding-top: 50px;
	will-change: transform;
}

#breadcrumb {
	width: calc(100vw - 40px);
}

#product .canvas-container > .btn-favorites {
	display: block;
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 10px;
	z-index: 2;
}

#product .canvas-container > .btn-favorites > span {
	font-size: 20px;
}

@media (orientation: landscape) {
	#main #product {
		padding-top: 0;
	}
}

.zoom-slider-wrapper {
	display: none !important;
}

#product .canvas-container {
	padding-top: 0;
	padding-bottom: 0;
}

#overlay-carousel {
	overflow-x: scroll;
	overflow-y: hidden;
}

#overlay-carousel ul > li,
#overlay-carousel > ul li:not(:first-child) {
	display: block;
	max-width: 100vw;
	min-width: 100vw;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

#main #product #overlay-carousel .overlay-wrapper {
	max-width: unset;
	min-width: unset;
	max-height: unset;
	min-height: unset;
}

#product .flex-row {
	flex-wrap: wrap;
}

#product .product-option-container {
	flex: auto;
}

#overlay-carousel .overlay-wrapper.slide-out-left:not(.ui-display-loader),
#overlay-carousel .overlay-wrapper.slide-out-right:not(.ui-display-loader),
#overlay-carousel .overlay-wrapper.slide-out-left.slide-in:not(.ui-display-loader),
#overlay-carousel .overlay-wrapper.slide-out-right.slide-in:not(.ui-display-loader) {
	animation-duration: .35s;
}

/* overlay thumbnail carousel */
#overlay-thumbnail-carousel {
	position: relative;
	margin-top: 0;
	margin-bottom: 25px;
	display: block;
	white-space: nowrap;
	font-size: 0;
	overflow-x: scroll;
	overflow-y: hidden;
	scroll-behavior: smooth;
	overscroll-behavior-y: auto;
	overscroll-behavior-x: none;
	scrollbar-width: none;
}

/* overlay thumbnail carousel content */
#overlay-thumbnail-carousel > ul {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0;
	min-height: 60px;
}

#overlay-thumbnail-carousel > ul > li {
	position: relative;
}

#overlay-thumbnail-carousel > ul > li .ui-overlay {
	cursor: pointer;
	aspect-ratio: 4 / 3;
	min-width: min(160px, calc(100vw / 5.5)); /* 5.5 products visible in viewport */
}

#product h1 {
	font-size: 22px;
	line-height: 1.4;
}

#product .canvas-container > .headline {
	padding: 25px;
	display: flex;
	flex-wrap: nowrap;
	align-items: end;
	justify-content: space-between;
	-webkit-user-select: none;
	user-select: none;
}

#product .canvas-container > .headline > h1 {
	margin: 0;
	margin-right: 10px;
	word-break: break-word;
	text-wrap: balance;
}

#product .canvas-container > .headline > .price {
	font-size: 20px;
	line-height: 1.4;
	color: var(--price-color);
	white-space: nowrap;
}

#product .canvas-container > .headline > .price > small {
	font-size: 12px;
}

#product .canvas-container > .headline > .price > small:first-child {
	color: black;
}

#product .canvas-container > .headline > .price > small:last-child {
	color: var(--price-color);
}

/* element must be visible quick link bar selecting the first menu item */
#product-config {
	position: relative;
	top: 10px;
	pointer-events: none;
}

#main #quick-link {
	border-top: none;
	border-bottom: 1px solid #e5e5e5;
	background-color: var(--background-color);
	transition: top 0.15s ease;
	z-index: 2;
	height: auto;
}

#quick-link > .product-config-bar {
	display: flex;
}

/* fade menu animation */
@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* slide in menu animation */
@keyframes slide-up {
	from {
		transform: translateY(20vh);
	}
	to {
		transform: translateY(0);
	}
}

/* slide in canvas animation */
@keyframes quick-link-appear {
	from {
		transform: translateX(-75px);
	}
	to {
		transform: translateX(0);
	}
}

/* change config button margins animation */
@keyframes config-button-margin {
	from {
		margin-left: 45px;
		margin-right: 45px;
	}
	to {
		margin-left: 90px;
		margin-right: 15px;
	}
}

#quick-link > .product-config-bar .img-container {
	position: absolute;
	left: 0;
	transform: translateX(-75px);
	margin-top: 14px;
	margin-left: 15px;
	max-width: 70px;
	max-height: 50px;
	transition: transform 0.5s ease;
}

#quick-link > .product-config-bar > .btn {
	margin-top: 15px;
	margin-left: 45px;
	margin-right: 45px;
	transition: margin 0.5s ease;
	max-width: 100%;
}

@media screen and (max-width: 390px) {
	#quick-link > .product-config-bar > .btn {
		font-size: 12px;
	}
}

/* scroll-timeline supported */
@supports not (animation-timeline: scroll()) {
	
	#quick-link.transition.stuck > .product-config-bar .img-container.rendered {
		transform: translateX(0);
	}
	
	#quick-link.transition.stuck > .product-config-bar > .btn {
		margin-left: 90px;
		margin-right: 15px;
	}

}

/* scroll-timeline supported */
@supports (animation-timeline: scroll()) {
	#quick-link > .product-config-bar > .btn {
		animation: 0.5s ease forwards config-button-margin;
		animation-timeline: scroll(root block);
		animation-range-start: 60vh;
		animation-range-end: 85vh;
	}
	
	#quick-link > .product-config-bar .img-container {
		animation: 0.5s ease forwards quick-link-appear;
		animation-timeline: scroll(root block);
		animation-range-start: 60vh;
		animation-range-end: 85vh;
	}
}

#quick-link > .wrapper {
	max-width: unset;
	margin: 0;
}

#quick-link.stuck > .wrapper {
	margin-left: 0;
}

#quick-link > .wrapper::-webkit-scrollbar {
	display: none;
}

#quick-link > .wrapper ul.navigation {
	justify-content: normal;
	margin-left: 0; 
	margin-right: 0;
	padding: 0;
}

#quick-link > .wrapper ul.navigation > li > a {
	font-size: 12px;
	position: relative;
}

#quick-link > .wrapper ul.navigation > li > a:not(.active):hover::after {
	display: none;
}

#quick-link > .wrapper ul.navigation > li > a.active::after {
	bottom: 0;
	height: 2px;
}

/* main */
#main section.product-section {
	padding: 75px 0 95px 0;
	scroll-margin-top: 100px;
}

#main section.product-section > .product-header {
	margin-bottom: 30px;	
}

#main section.product-section .product-description {
	margin-bottom: 25px;
}

#product-description .product-description h2, 
#product-description .product-description .h2 {
	font-size: 18px !important;
	margin-bottom: 22px;
}

#main #product-reviews .container .reviews-content > article {
	padding: 30px;
}

#main #product-reviews .container .reviews-content > article > .review-header {
	flex-direction: column-reverse;
}

#main #product-reviews .container .reviews-content > article > .review-header > h3, 
#main #product-reviews .container .reviews-content > article > .review-header > .h3 {
	white-space: initial;
}

#product-reviews .container .reviews-content > article > .review-header > .review-stars {
	margin-top: 10px;
}

#main #product-reviews .btn-container {
	margin-top: 50px;
	margin-bottom: 30px;
}

#main #product-photo .product-header.hidden {
	display: block !important;
}

#main section.product-section.design .flex-row {
	flex-direction: column;
	gap: 0;
}

#main section.product-section.design h3, 
#main section.product-section.design .h3 {
	margin-bottom: 10px;
}

#main section.product-section .section {
	padding-bottom: 50px;
	margin-bottom: 50px;
}

.product-section .table-responsive {
	max-width: calc(100vw - (var(--horizontal-margin) * 2));
	min-width: calc(100vw - (var(--horizontal-margin) * 2));
}

/* no need for the extra space after delivery table */
#main #product-delivery .table > tbody::after {
	display: none;
}

/* flip the scrollbar so it's displayed above the scroll container (exclude iOS) */
@supports not (-webkit-hyphens:none) {
	#main #product-pricelist .table-responsive,
	#main #product-pricelist .table-responsive > .table {
		transform: scaleY(-1);
	}
}

#main section.product-section {
	overflow-x: hidden;
}

#main #product-pricelist .table-responsive {
	max-width: 100vw;
	min-width: 100vw;
}

/* correctly position the expand / collapse icon on mobile */
#main #product-pricelist .table tbody.collapsible-header > tr:first-child::after {
	display: none;
}

/* correctly position the expand / collapse icon on mobile */
#main #product-pricelist .table tbody.collapsible-header > tr > th {
	overflow: visible;
}

/* correctly position the expand / collapse icon on mobile */
#main #product-pricelist .table tbody.collapsible-header > tr > th:first-child::after {
	font-family: "Material Icons";
	content: "add";
	-webkit-font-feature-settings: "liga";
	font-size: 24px;
	font-weight: 500;
	position: absolute;
	left: calc(100vw - 45px);
	top: 3px;
	color: var(--dark-anchor-color);
	opacity: 0.3;
	transition: all .1s linear;
}

/* correctly position the expand / collapse icon on mobile */
#main #product-pricelist .table tbody.collapsible-header.active > tr > th:first-child::after {
	transform: rotate(45deg);
	opacity: 1;
}

/* in this case it's probably best if we use a custom scrollbar that is visible all the time */
#main #product-pricelist .table-responsive::-webkit-scrollbar {
	height: 1px;
	background-color: rgba(0,0,0,0.1);
}

#main #product-pricelist .table-responsive::-webkit-scrollbar-thumb {
	background-color: black;
}

#main #product-pricelist .table td {
	white-space: nowrap;
}

#product .canvas-container {
	position: static;
}

/* product option */
#product .canvas-container,
#product .product-option-container {
	display: block;
	max-width: 100vw;
	min-width: 100vw;
}

#product-option {
	display: none;
	padding: var(--horizontal-margin);
	height: auto;
	box-shadow: none;
	clip-path: unset;
}

#product-option > .content {
	padding-top: 0;
}

#product-option .content-header, 
#product-option h3, 
#product-option .h3 {
	margin-left: 0;
}

/* footer usp */
#product-option .footer-usp-wrapper {
	margin-right: 25px;
	margin-left: 25px;
}

#product-option-footer .footer-usp > ul.nav > li.menu-item > a {
	padding: 25px 25px 25px 5px;
}

#product-option-content .content-title > .material-icons, 
#product-option-content .content-title > .material-icons-outlined, 
#product-option-info > .content-title > .material-icons, 
#product-option-info > .content-title > .material-icons-outlined {
	margin-right: 0;
	padding-right: 10px;
	font-size: 20px;
}

#product-option-info > .content .logo-edit-button {
	position: unset;
	width: 100%;
}

/* product option footer */
#product-option-footer {
	margin-left: -10px;
	margin-right: -10px;
}

#product-option-footer > .static .flex-column.button-container {
	margin-top: 25px;
}

#product-option-footer > .sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 70px;
	height: 115px;
	padding-bottom: 30px;
	z-index: 2;
}

#product-option-footer > .sticky .flex-column {
	padding-right: 5px;
	padding-left: 5px;
}

#product-option-footer > .sticky .flex-column:first-child {
	padding-left: 15px;
}

#product-option-footer > .sticky .flex-column:last-child {
	padding-right: 15px;
}

#product-option-footer > .sticky .flex-column:last-child > .footer-container  {
	justify-content: end;
}

#product-option-footer > .sticky .price-container > .price {
	font-size: 19px;
}

#product-option-footer > .sticky > .flex-row {
	flex-wrap: nowrap;
}

#product-option-footer .footer-container.quantity {
	justify-content: left;
	min-width: 90px;
}

#product-option-footer > .static .flex-column .btn-input.btn-quantity {
	-webkit-tap-highlight-color: unset;
}

#product-option-footer > .sticky .btn-cart, 
#product-option-footer > .sticky .btn-done {
	padding: 18px 16px !important;
}

#product-option-footer > .static {
	margin-bottom: 30px;
}

/* product options content */
#product-option-content,
#product-option-info {
	position: absolute;
	top: -60px !important;
	bottom: 0;
	box-shadow: none;
	max-width: 100vw;
	min-width: 100vw;
	min-height: unset;
	width: auto;
	border-left: none;
	clip-path: unset;
	box-shadow: none;
}

#product-option-info {
	visibility: visible;
	transform: translateX(100%);
	transition: transform 0.2s cubic-bezier(0,0,0.1,1) !important;
	z-index: 5;
}

#product-option-content.active ~ #product-option-info.active,
#product-option-content.level-2.active ~ #product-option-info.active {
	transform: translateX(0);
	border-right: none;
}

#product-option .menu-item:has(> .label-container.info) {
	display: list-item;
}

/* style the product info label a little differently so it's not confused with an selectable option */
#product-option .menu-item > .label-container.info {
	display: flex;
	background-color: var(--background-color);
	margin-left: 1px;
	margin-right: 1px;
	pointer-events: none;
}

#product-option .menu-item > .label-container.canvas > .branding-canvas + .arrow {
	display: none;
}

#product-option-content .content-title, 
#product-option-content .content, 
#product-option-info > .content-title, 
#product-option-info > .content,
#product-overlay-control > .content-title {
	padding-left: 25px;
	padding-right: 25px;
}

#product-overlay-control > .content-title,
#product-option-content .content-title, 
#product-option-info > .content-title,
#product-option-content .option-value-wrapper > .extra-option-content > .content-title {
	position: relative;
	font-size: 19px;
	font-weight: 800;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	padding: 15px 10px;
	height: 60px;
	-webkit-user-select: none;
	user-select: none;
}

#product-option-content .option-value-wrapper > .extra-option-content .wrapper-comment {
	margin-top: 30px;
}

#product-option-info.footer-overflow > .content-footer::before, 
#product-option-content.footer-overflow > .content-footer::before, 
#product-option-content .extra-option-content.footer-overflow > .content-footer::before {
	display: none;
}

#product-option-info > .content-footer, 
#product-option-content.fixed-footer > .content-footer, 
#product-option-content .option-value-wrapper.fixed-footer .content-footer {
	display: none;
}

#product-overlay-control > .content-footer > .btn,
#product-option-info > .content-footer > .btn, 
#product-option-content.fixed-footer > .content-footer > .btn, 
#product-option-content .option-value-wrapper.fixed-footer .content-footer > .btn {
	margin-top: 0;
	margin-left: 60px;
	margin-right: 60px;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 22px;
	position: relative;
	padding: 14px 0 12px 0;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype .button-container {
	display: block;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype > .button-container,
#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype > .img-container {
	flex: 1;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype::after,
#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px solid var(--border-color);
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype::after {
	bottom: 0;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype::before {
	top: 0;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype > .img-container::before {
	content: initial;
}

#product-option-content .content > .box-list-view.design-method-online .option-value-wrapper.has-extra-option.multi-row > .wrapper-label > .label-row.change-logotype {
	position: relative;
	bottom: -12px;
}

/* special styling when there is white logo against gray background */
#product-option-content .content > .box-list-view.design-method-online .option-value-wrapper.has-extra-option.multi-row > .wrapper-label > .label-row.logotype.bright {
	background-color: #b9bcbf;
	margin: 20px -30px -58px -30px;
	padding-left: 30px;
	padding-right: 30px;
	padding-bottom: 28px;
}

#product-option-content .content > .box-list-view.design-method-online .option-value-wrapper.has-extra-option.multi-row > .wrapper-label > .label-row.logotype.bright ~ .change-logotype {
	bottom: -18px;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype .button-container .btn {
	text-align: left;
	margin: 0 auto;
	padding: 14px 26px;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > input:checked ~ .wrapper-label > .label-row.logotype .button-container .btn:after {
	font-family: "Material Icons";
	content: "chevron_right";
	-webkit-font-feature-settings: "liga";
	font-size: 24px;
	font-weight: 400;
	position: absolute;
	right: 5px;
	top: 9px;
	color: var(--inverse-text-color);
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype > .img-container {
	margin: initial;
	padding: initial;
}

#product-option-content .content > .design-method-online .option-value-wrapper.multi-row > .wrapper-label > .label-row.logotype .img-container > img {
	height: 80px;
	margin: initial;
	object-fit: contain;
}

#product-overlay-control > .ui-transformable-content-max-tooltip {
	position: absolute;
	background-color: black;
	color: white;
	display: flex;
	align-items: center;
	top: -55px;
	height: 55px;
	padding-left: 20px;
	padding-right: 20px;
	width: 100%;
	opacity: 0;
	transition: opacity linear 0.2s;
}

#product-overlay-control > .ui-transformable-content-max-tooltip.active {
	opacity: 1;
}

#product-overlay-control > .content,
#product-option-content .content:not(.no-scroll), 
#product-option-info > .content:not(.no-scroll) {
	padding-bottom: 25vh;
	padding-bottom: 25dvh;
}

#product-overlay-control .btn-previous,
#product-option-content .btn-previous {
	position: absolute;
	padding: 10px
}

#product-overlay-control .btn-previous > span, 
#product-option-content .btn-previous > span,
#product-option-info > .btn-close > span {
	font-size: 24px;
}

#product-overlay-control .btn-previous,
#product-option-content .btn-previous,
#product-option-info.level-1 > .btn-close.arrow,
#product-option-info.level-2 > .btn-close.arrow {
	top: 8px;
	left: 8px;
	right: auto;
}

#product-option-info.level-1 > .btn-close.arrow,
#product-option-info.level-2 > .btn-close.arrow {
	display: block;
	transform: scaleX(-1);
}

#product-option-content > .btn-close {
	top: 8px;
	right: auto;
	left: 8px;
}

/* replace close with arrow back */
#product-option-content > .btn-close::after {
	content: "";
	font-family: "Material Icons";
	content: "arrow_back";
	-webkit-font-feature-settings: "liga";
	font-size: 24px;
	font-weight: normal;
}

/* hide the close icon for levels deeper than level 1 */
#product-option-content > .btn-close > span {
	display: none;
}

/* hide all other close buttons */
#product-option-info.level-1 > .btn-close.close,
#product-option-content > .content .btn-close {
	display: none;
}

#product-option-content .content > .box-list-view .option-value-description, 
#product-option-content .content > .option-value-description {
	margin-bottom: 25px;
}

#product-option-content.active.level-2 ~ #product-option-info.active {
	box-shadow: unset;
	margin-right: 0;
}

#product-option-content .content > .box-list-view > .input-control-container.measurement-container + .option-value-header {
	padding: 0 0 20px 0;
}

/* product review box */
#product-reviews .container .reviews-content > article {
	box-shadow: 0 0 15px rgba(0,0,0,0.12);
}

/* hide navigation slider dots in default view */
#overlay-carousel ul > li > .slider-nav {
	display: none;
}

/* logo editor open */
html.logo-editor-open #breadcrumb,
html.logo-editor-open #product .canvas-container > .btn-favorites {
	display: none;
}

html.logo-editor-open #main #product #overlay-carousel ul > li {
	position: relative;
}

html.logo-editor-open #overlay-carousel {
  scroll-marker-group: none;
}

html.logo-editor-open #overlay-carousel::scroll-marker-group {
  display: none;
}

html.logo-editor-open #overlay-carousel > ul > li::scroll-marker {
  display: none;
}

/* navigation slider dots and arrows */
html.logo-editor-open #overlay-carousel ul > li > .slider-nav {
	display: flex;
	left: 0;
	right: 0;
	bottom: 10px;
	gap: 10px;
	padding-left: 8px;
	padding-right: 8px;
	background-color: transparent;
	backdrop-filter: none;
	border-radius: 0;
}

/* arrow sizing on mobile */
html.logo-editor-open #overlay-carousel ul > li > .slider-nav > .slider-arrow {
	width: 24px;
	height: 24px;
}

#overlay-carousel ul > li > .slider-nav > .slider-arrow::before {
	font-size: 20px;
}

#overlay-carousel ul > li > .slider-nav > .slider-arrow:not(:disabled):active::before {
	color: rgba(0,0,0,0.8);
}

/* dots wrapper */
html.logo-editor-open #overlay-carousel ul > li > .slider-nav > .slider-dots {
	display: flex;
	gap: 12px;
}

/* dot sizing on mobile */
html.logo-editor-open #overlay-carousel ul > li > .slider-nav > .slider-dots > .dot {
	height: 8px;
	width: 8px;
}

html.logo-editor-open #main #product #overlay-carousel ul > li > .slider-nav > .slider-dots > .dot::before {
	height: 18px;
	width: 18px;
}

/* mobile version of overlay control panel */
html.logo-editor-open  #product-overlay-control {
	position: absolute;
	top: -60px;
	display: block;
	width: 100%;
	visibility: hidden;
	background-color: var(--background-color);
	transform: translateX(100%);
	transition: visibility 0s linear 0.2s, transform 0.2s cubic-bezier(0,0,0.1,1);
	z-index: 6;
	-webkit-user-select: none;
	user-select: none;
}

/* hide all controls + bright backdrop when logo editor is open */
html.logo-editor-open #main .ui-overlay-controls-wrapper {
	display: none;
}

/* hide bright backdrop when logo editor is open */
html.logo-editor-open:not(.modal-open) body.bright-backdrop-visible .body-backdrop {
	visibility: hidden;
}

html.logo-editor-open #product-overlay-control.transition.active {
	visibility: visible;
	transform: translateX(0);
	transition: visibility 0s linear 0s, transform 0.2s cubic-bezier(0,0,0.1,1);
}

/* disabled style for overlay control panel */
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .ui-slider,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .btn:not(.btn-done),
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .toggle-switch,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content [data-open-logotype-list] {
	pointer-events: none !important;
}

/* disabled style for overlay control panel */
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .ui-slider,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .ui-slider-handle,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .form-switch .slider {
	background-color: #d5d5d5 !important;
	transition: background-color .25s ease;
}

/* disabled style for overlay control panel */
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .material-icons,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .material-icons-outlined,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content .flex-column,
html.logo-editor-open #product-overlay-control:not(.enabled) > .content [data-open-logotype-list] {
	color: #d5d5d5 !important;
	transition: color .25s ease;
}

html.logo-editor-open #product-overlay-control > .content {
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: none;
	scroll-behavior: smooth;
}

html.logo-editor-open #product-overlay-control > .content .form-switch input:checked + .slider {
	background-color: black;
}

html.logo-editor-open #product-overlay-control > .content .form-switch input[disabled] + .slider {
	background-color: #c2c4c6;
	opacity: 0.5;
	pointer-events: none;
}

html.logo-editor-open #product-overlay-control > .content .form-switch > .slider {
	background-color: #c2c4c6;
}

html.logo-editor-open #product-overlay-control > .content .flex-row {
	flex-direction: row;
	gap: 15px;
}

html.logo-editor-open #product-overlay-control > .content .flex-row.first {
	padding-top: 15px;
}

html.logo-editor-open #product-overlay-control > .content .flex-column {
	min-height: 50px;
	padding-bottom: 15px;
	white-space: nowrap;
	flex-direction: row;
	align-items: center;
	gap: 15px;
}

/* info icon */
html.logo-editor-open #product-overlay-control .btn-effects {
	padding: 0;
	margin: 0;
	background-color: transparent;
	color: var(--anchor-color);
}

html.logo-editor-open #product-overlay-control .btn-effects > span {
	font-size: 18px;
	display: flex;
}

html.logo-editor-open #product-overlay-control > .content .flex-column.align-top {
	align-items: start;
	padding-top: 10px;
}

html.logo-editor-open #product-overlay-control > .content > .flex-row > .flex-column + .flex-column {
	justify-content: flex-end;
}

html.logo-editor-open #product-overlay-control > .content > .flex-row > .flex-column > .flex-row > .flex-column {
	padding-bottom: 0;
	justify-content: flex-end;
}

html.logo-editor-open #product-overlay-control > .content .flex-row.range-slider > .flex-column {
	padding-top: 15px;
}

html.logo-editor-open #product-overlay-control > .content .flex-row.range-slider > .flex-column + .flex-column {
	flex-basis: max-content;
}

html.logo-editor-open #product-overlay-control > .content .flex-row.range-slider .ui-slider {
	width: 50vw;
	-webkit-user-callout: none;
}

html.logo-editor-open #product-overlay-control .btn-ctrl {    
	background-color: var(--menu-background-color);
	color: var(--button-inverse-text-color);
	padding: 0;
	width: 45px;
	height: 45px;
	margin: 0;
	outline: 0;
	border-radius: 3px;
	user-select: none;
	border: 1px solid transparent;
}

/* repeating buttons */
#product-overlay-control .btn-ctrl,
#product-option-content .content > .box-list-view > .input-columns .btn-input {
	-webkit-tap-highlight-color: unset;
	-webkit-user-select: none;
	user-select: none;
	touch-action: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

html.logo-editor-open #product-overlay-control .btn-ctrl:active {
	border-color: rgba(0,0,0,0.1);
}

html.logo-editor-open #product-overlay-control > .content > .flex-row > .flex-column > .flex-row > .flex-column:first-child .btn-ctrl {
	margin-right: 60px;
}

html.logo-editor-open #product-overlay-control .btn-ctrl > span {
	font-size: 18px;
}

/* change logotype list link + close button */
html.logo-editor-open #product-overlay-control > .content > hr {
	height: 1px;
	background-color: var(--border-color);
	border: none;
	margin-top: 35px;
	margin-bottom: 25px;
}

html.logo-editor-open #product-overlay-control > .content > .change-logotype {
	position: relative;
}

html.logo-editor-open #product-overlay-control > .content > .change-logotype > span.underline::after {
	background-color: var(--anchor-color);
}

html.logo-editor-open #product-overlay-control > .content > .change-logotype > span.underline {
	line-height: 2.5;
	color: var(--anchor-color);
}

html.logo-editor-open #product-overlay-control > .content > .change-logotype > span.underline > .arrow {
	position: absolute;
	bottom: -8px;
}

html.logo-editor-open #product-overlay-control > .content > .change-logotype > span.underline:hover::after {
	width: 120%;
	opacity: 1;
}

html.logo-editor-open #product-overlay-control > .content > .footer {
	margin-top: 10px;
}

html.logo-editor-open #product-overlay-control > .content > .footer .button-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

html.logo-editor-open #product-overlay-control > .content > .footer .button-container .btn:only-child {
	max-width: 320px;
	margin-left: 35px;
	margin-right: 35px;
}

html.logo-editor-open .body-backdrop {
	z-index: 11 !important;
}

html:not(.logo-editor-open) #product-option-content.transition.active {
	visibility: hidden;
}

html.logo-editor-open #product-overlay-control > .content,
html.logo-editor-open #product-option-content .content,
html.logo-editor-open #product-option-content .option-value-wrapper > .extra-option-content > .content,
html.logo-editor-open #product-option-info > .content {
	--content-offset-height: 100px;
	height: calc((100dvh - var(--content-offset-height)) - (100vw * 3 / 4));
}

html.logo-editor-open #product-option-content .content .sticky-footer,
html.logo-editor-open #product-option-info .content .sticky-footer {
	display: block;
	bottom: calc(-25dvh);
	height: 100px;
	width: 100vw;
	margin-top: 25px;
	margin-left: calc(var(--horizontal-margin) * -1);
	margin-right: calc(var(--horizontal-margin) * -1);
	background-color: var(--background-color);
}

html.logo-editor-open #product-option-content .content.footer-is-stuck > .sticky-footer,
html.logo-editor-open #product-option-content .content.footer-is-stuck > .quantity-view .sticky-footer,
html.logo-editor-open #product-option-info .content.footer-is-stuck > .sticky-footer {
	display: block;
	position: -webkit-sticky;
	position: sticky;
	z-index: 1;
}

html.logo-editor-open #product-option-content .content .sticky-footer > .button-container,
html.logo-editor-open #product-option-info .content .sticky-footer > .button-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding-left: var(--horizontal-margin);
	padding-right: var(--horizontal-margin);
}

html.logo-editor-open #product-option-content .content .sticky-footer > .button-container .btn:only-child,
html.logo-editor-open #product-option-info .content .sticky-footer > .button-container .btn:only-child {
	max-width: 320px;
	margin-top: 0;
	margin-left: 35px;
	margin-right: 35px;
}

html.logo-editor-open #product-option-content .content > .quantity-view > .standard-quantity-header {
	padding-bottom: 15px;
}

html.logo-editor-open #product-option-content .content > .quantity-view .option-value-description,
html.logo-editor-open #product-option-content .content > .quantity-view  > .input-columns {
	margin-bottom: 15px;
}

html.logo-editor-open #product-option-content .content.no-scroll > .box-list-view > .quantity-step-content {
	height: calc((100dvh - var(--content-offset-height)) - (100vw * 3 / 4) - 170px);
	padding-bottom: 25vh;
	padding-bottom: 25dvh;
}

/* disable perform a downward swipe to reload page and page zoom when logo editor open */
html.logo-editor-open,
html.logo-editor-open body {
	overscroll-behavior: none;
	touch-action: pan-x pan-y;
}

html.logo-editor-open #main #product {
	padding-top: 0;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
}

html.logo-editor-open #main #product .slider-dots-polyfill {
	display: none !important;
}	

html.logo-editor-open #main #product #overlay-carousel > ul li:not(:first-child),
html.logo-editor-open #overlay-thumbnail-carousel {
	display: none;
}

html.logo-editor-open #btn-close-fullscreen {
	top: 8px;
	left: auto;
	right: 8px;
	opacity: 1;
	transition: opacity 0.2s linear;
}

html.logo-editor-open #btn-close-fullscreen::before {
	width: 40px;
	height: 40px;
}

/* hide the logo editor button if any of the menus are open */
html.logo-editor-open body.bright-backdrop-visible #btn-close-fullscreen,
html.logo-editor-open body.overlay-controls-visible #btn-close-fullscreen {
	opacity: 0;
}

html.logo-editor-open #product-option > .btn-close > span,
html.logo-editor-open #btn-close-fullscreen > span {
	font-size: 24px;
}

html.logo-editor-open #main #product #overlay-carousel {
	overflow-x: hidden;
	padding-bottom: 0 !important;
}

html.logo-editor-open #main #product #overlay-carousel .overlay-wrapper {
	position: relative !important;
	min-height: unset;
	max-height: unset;
	margin: 0;
	width: auto;
}

/* set min height in order to prevent collapsing when open logo editor */
html.logo-editor-open #main #product #overlay-carousel .overlay-wrapper.ui-display-loader {
	min-height: calc(40px + (100vw * 3 / 4));
}

/* logo editor spinning loader animation */
html.logo-editor-open #main #product #overlay-carousel .overlay-wrapper.ui-display-loader::after {
	width: 120px;
	height: 120px;
	margin-left: -60px;
	margin-top: -60px;
	border: 8px solid rgba(0,0,0,0.1);
	border-top: 8px solid rgba(0,0,0,0.3);
}

html.logo-editor-open #main #product #overlay-carousel .overlay-wrapper > .ui-overlay {
	cursor: auto;
	aspect-ratio: unset;
	min-height: calc(40px + (100vw * 3 / 4)); /* (100vw * 3 / 4) equals the height of the canvas if aspect ratio is 4:3 */
	max-height: calc(40px + (100vw * 3 / 4)); /* (100vw * 3 / 4) equals the height of the canvas if aspect ratio is 4:3 */
}

/* logo editor open - product-option */
html.logo-editor-open:not(.config-preview-open) #product-option {
	display: block;
	padding-right: var(--horizontal-margin);
	min-height: 100dvh;
	padding-bottom: 75vh;
	padding-bottom: 75dvh;
	background-color: white;
}

/* smooth scroll for all menus */
html.logo-editor-open #product-overlay-control,
html.logo-editor-open #product-option,
html.logo-editor-open #product-option-content .content:not(.no-scroll),
html.logo-editor-open #product-option-info > .content,
html.logo-editor-open #product-option-content .content.no-scroll > .box-list-view > .quantity-step-content {
	scroll-behavior: smooth;
}

html.logo-editor-open #product-option.header-overflow::before {
	content: "";
	position: absolute;
	height: 44px;
	top: -44px;
	left: 40px;
	right: 40px;
	box-shadow: 0px 10px 20px -20px rgba(0, 0, 0, 1);
	z-index: 1;
	pointer-events: none;
}

html.logo-editor-open #product-overlay-control > .content-title,
html.logo-editor-open #product-option-content .content-title,
html.logo-editor-open #product-option-info > .content-title {
	white-space: nowrap;
	padding-left: 50px;
	padding-right: 50px;
	text-align: center;
	margin: 0;
}

html.logo-editor-open #product-overlay-control > .content-title,
html.logo-editor-open #product-option-content .content-title {
	display: flex;
}

html.logo-editor-open #product-option-info > .content-title {
	display: block;
	line-height: 30px;
}

html.logo-editor-open #product-overlay-control > .content-title > button[data-toggle="modal"] {
	position: relative;
	top: 2px;
	right: -15px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

html.logo-editor-open #product-overlay-control:not(.enabled) > .content-title > button[data-toggle="modal"] {
	opacity: 1;
	pointer-events: all;
}	

html.logo-editor-open  #product-overlay-control .content,
html.logo-editor-open #product-option-content .content, 
html.logo-editor-open #product-option-info > .content {
	padding-left: var(--horizontal-margin);
	padding-right: var(--horizontal-margin);
}

html.logo-editor-open:not(.config-preview-open) #product .canvas-container > .headline {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	height: 60px;
}

html.logo-editor-open:not(.config-preview-open) #product .canvas-container > .headline > h1,
html.logo-editor-open:not(.config-preview-open) #product .canvas-container > .headline > .h1 {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	padding: 25px 50px;
}

html.logo-editor-open:not(.config-preview-open) #product .canvas-container > .headline::before {
	content: "";
	position: absolute;
	height: 44px;
	left: 0;
	right: 0;
	top: 0;
	box-shadow: 0px -10px 20px -20px rgba(0, 0, 0, 1);
	pointer-events: none;
}

/* line indicator that menu can be resized */
html.logo-editor-open #product .canvas-container > .headline::after,
html.logo-editor-open  #product-overlay-control .content-title::after,
html.logo-editor-open #product-option-content .content-title::after,
html.logo-editor-open #product-option-info > .content-title::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: 35px;
	height: 3px;
	border-radius: 2px;
	background-color: rgba(0,0,0,0.2);
	pointer-events: none;
}

html.logo-editor-open:not(.config-preview-open) #product .canvas-container > .headline > .price {
	display: none;
}

html.logo-editor-open:not(.config-preview-open) #product-option > .content > .content-header  {
	display: none;
}

html.logo-editor-open:not(.config-preview-open) #product-option  #product-option-footer > .sticky {
	display: block;
	bottom: 0;
	right: 0;
	padding-bottom: 0;
	height: 90px;
}

html.logo-editor-open > body.overlay-controls-visible #product-option  #product-option-footer > .sticky {
	display: none;
}

html.logo-editor-open #product-option-footer .btn.btn-done {
	display: none;
}

html.logo-editor-open #product-option-footer .btn.btn-cart {
	display: block;
	max-width: 400px;
}

#main .ui-overlay-controls-wrapper > .ui-overlay-control.ui-transformable:not(.ui-overlay-control-content) {
	pointer-events: none;
}