/* #region Image silder / builder-view */
.product-customisable .images .slides {
	list-style: none;
	margin: 0;
}

.product-customisable .flex-viewport {
	width: 100%;
}

.product-customisable .product-image {
	width: 100%;
	background-color: #fff;
	border-radius: 5px;
	padding: 50px;
	/* max-height: calc(100vh - 200px); */

	opacity: 0;
	animation-name: custom-product-fadein;
	animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
	animation-duration: 800ms;
	animation-delay: 200ms;
	animation-fill-mode: forwards;
}

@keyframes custom-product-fadein {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.builder-view {
	position: relative;
}

.builder-view .area {
	width: 100px;
	height: 100px;
	position: absolute;
	background-color: transparent;
	border: transparent 1px dashed;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	cursor: pointer;
}

.product-customisable .product-image:hover .area {
	border-color: rgba(150, 150, 150, 0.8);
}

.product-customisable .builder-view .area:hover,
.product-customisable .builder-view .area.highlight {
	border-color: var(--primary-color);
	background-color: rgba(255, 255, 255, 0.05);
}

.product-customisable .builder-view .area img {
	object-fit: contain;
	max-width: 100%;
	max-height: 100%;
}

@media (hover: none) and (pointer: coarse) {
	.product-customisable .product-image .area {
		border-color: rgba(150, 150, 150, 0.8);
	}
}
/* #endregion */

/* #region logo size slider */
.product-customisable {
	align-items: flex-start;
}

.logo-size-slider-card {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: calc(100% - 107px);
	min-height: 170px;
	background: #fff;
	border-radius: 5px;
	padding: 30px;
	flex-direction: column;
	gap: 5px;
}

.product-customisable.slider-shown {
	padding-bottom: 180px;
	pointer-events: none;
}

.product-customisable.slider-shown::after {
	content: " ";
	z-index: 9;
	display: block;
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.2);
}

.product-customisable.slider-shown .select {
	z-index: 0;
}

.product-customisable.slider-shown .flex-viewport {
	z-index: 10;
}

.product-customisable.slider-shown .logo-size-slider-card {
	pointer-events: all;
	display: flex;
	z-index: 10;
}

.logo-size-slider-card .text {
	color: #222;
	font-size: 14px;
	font-weight: 400;

	display: flex;
	justify-content: space-between;
}

.logo-size-slider-card .text p {
	padding: 0;
}

.logo-size-slider-card .text span {
	color: #aaa;
	font-size: 12px;
}

.logo-size-slider-card input[type="range"] {
	-webkit-appearance: none;
	height: 5px;
	background: #ebebeb;
	border-radius: 5px;
	background-image: linear-gradient(var(--primary-color), var(--primary-color));
	background-size: 100% 100%;
	background-repeat: no-repeat;
	margin: 10px 0;
}

.logo-size-slider-card input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #fff;
	cursor: ew-resize;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);
}

/* #endregion */

/* #region Right col */
.product-customisable .summary hr {
	border: none;
	height: 1px;
	background-color: rgba(170, 170, 170, 0.1);
	margin: 15px 0;
}

.product-customisable .select-title {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
}
/* #endregion */

/* #region Lines */
.product-lines {
	margin-bottom: 20px;
}

.product-lines .line-title {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
}

.product-lines table {
	border-collapse: collapse;
	width: 100%;
	border-top: rgba(170, 170, 170, 0.2) 1px solid;
	font-size: 11px;
}

.product-lines tbody tr {
	border-bottom: rgba(170, 170, 170, 0.2) 1px solid;
}

.product-lines tfoot tr {
	border-bottom: rgba(170, 170, 170, 0.5) 1px solid;
}

.product-lines table tr td {
	padding: 10px 0;
}

.product-lines table tr td:last-child {
	text-align: end;
}

.product-lines table .name {
	color: #555;
}

.product-lines table .sku {
	color: #aaa;
}

.product-lines table .price {
	color: #222;
	font-size: 12px;
}

.product-lines tfoot {
	color: #555;
	font-weight: 700;
}

.product-lines tfoot span {
	color: #aaa;
	font-size: 10px;
	font-weight: 400;
	margin-left: 5px;
}

.product-lines tfoot .total {
	color: #222;
	font-size: 12px;
}
/* #endregion */

/* #region inserted logos */
.inserted-logos {
	width: 100%;
	display: grid;
	align-items: start;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px 15px;
}

.inserted-logos .item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.product-customisable .inserted-logos .logo {
	cursor: pointer;
}

.inserted-logos .item .img-container {
	width: 100px;
	height: 100px;
	background: #fff;
	border: var(--primary-color) 2px solid;
	border-radius: 5px;
	padding: 5px;
	display: flex;
	position: relative;
}

.inserted-logos .item.logo .img-container {
	background: repeating-conic-gradient(#ddd 0% 25%, #f0f0f0 0% 50%) 50% / 20px 20px;
}

.inserted-logos .item .item-image {
	object-fit: contain;
}

.inserted-logos .item.logo .item-image {
	filter: drop-shadow(0px 0px 3px rgba(34, 34, 34, 0.25));
}

.inserted-logos .logo .item-remove {
	display: none;
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	background-color: #fff;
	padding: 3px;
	border: #aaa 2px solid;
	border-radius: 100%;
	cursor: pointer;
}

.product-customisable .inserted-logos .logo:hover .item-remove {
	display: block;
}

.inserted-logos .item .text {
	color: #555;
	font-size: 10px;
	font-weight: 400;
	text-align: center;
	padding: 0;
}

.inserted-logos .item .cost {
	font-weight: 600;
}

/* #endregion */

/* #region actions */
.single-customisable-product button {
	min-width: 120px;
	height: 50px;
	padding: 0 30px;
	background-color: #f7f7f7;
	border: none;
	border-radius: 3px;
	color: #222;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.product-customisable .product-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.product-customisable .product-actions .btn-accept {
	background-color: var(--primary-color);
	color: #fff;
}

.product-customisable .product-actions .btn-cancel {
	background-color: #eaeaea;
}

.product-customisable .product-actions .btn-request {
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding-right: 20px;
}

.product-customisable .product-actions .btn-request img {
	width: 30px;
	height: 30px;
	padding: 5px;
	background-color: var(--primary-color);
	border-radius: 5px;
}
/* #endregion*/

/* #region modal */
body.modal-open {
	height: 100vh;
	overflow: hidden;
	padding-right: 15px;
}

.modal {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.modal.hide {
	display: none;
}

.modal-card {
	flex: 1;
	max-height: 80%;
	background-color: #fff;
	margin: 20px;
	border-radius: 5px;
	max-width: 850px;
	width: calc(100% - 20px);
	position: relative;
	overflow: hidden;
}

.modal-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 40px 35px 25px;
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 5px;
	cursor: pointer;
}

.modal h2 {
	color: #222;
	font-size: 18px;
	font-weight: 700;
}

.modal h3 {
	color: #222;
	font-size: 14px;
	font-weight: 700;
}

.modal .modal-header button {
	background: none;
	border: none;
	border-radius: 3px;
	padding: 0 15px;
	height: 35px;
	line-height: 35px;
	color: #8e8e8e;
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
}

.modal .modal-header button:hover {
	color: #222;
}

.modal .modal-header button.active {
	background-color: #f7f7f7;
	color: #222;
}

.modal .modal-header button.add-new {
	background-color: #333;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.modal .modal-header button.add-new::after {
	content: "+";
	width: 20px;
	height: 20px;
	vertical-align: middle;
	display: inline-flex;
	justify-content: center;
	background-color: #fff;
	color: #333;
	border-radius: 3px;
	font-size: 20px;
	line-height: 20px;
	font-weight: 500;
}

.modal-header {
	display: flex;
	gap: 10px;
}

.modal-header button:last-child {
	margin-left: auto;
}

.modal input {
	width: 100%;
	height: 45px;
	line-height: 30px;
	padding-left: 15px;
	padding-right: 15px;
	outline: none;
	border: rgba(170, 170, 170, 0.5) 1px solid;
	border-radius: 3px;
}

.modal input:focus {
	border-color: rgba(170, 170, 170, 1);
}

.modal-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 10px 0px 10px 0px;
}

.modal-search input {
	padding-left: 35px;
}

.modal-search-icon {
	position: absolute;
	left: 10px;
	pointer-events: none;
}

.modal-search-clear {
	display: none;
	background-color: #eee;
	border-radius: 100%;
	padding: 5px;
	position: absolute;
	right: 10px;
	cursor: pointer;
}

.modal-filter div {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.modal-filter div span {
	margin-right: auto;
	font-size: 14px;
}

.modal-filter button {
	height: 40px;
	border-radius: 100px;
}

.modal-filter button.active {
	background-color: var(--primary-color);
	color: #fff;
}

.modal-body {
	min-height: 100px;
	height: 100%;
	position: relative;
	border: rgba(170, 170, 170, 0.1) 1px solid;
	border-left: none;
	border-right: none;
	margin: 0 -35px;
	overflow-y: scroll;
}

.modal-loading {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	position: absolute;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 1;

	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
}

.modal-no-results {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 50px;
	color: #555;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

.modal-logo-grid {
	max-height: 100%;
	padding: 10px 35px;

	display: grid;
	justify-items: center;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px 10px;
}

.modal-logo-cell {
	width: 140px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	position: relative;
	cursor: pointer;
}

.modal-logo-cell .img-container {
	width: 100%;
	height: 140px;
	background: repeating-conic-gradient(#ddd 0% 25%, #f0f0f0 0% 50%) 50% / 20px 20px;
	border: 1px rgba(170, 170, 170, 0.5) solid;
	border-radius: 3px;
	padding: 5px;
	display: flex;
}

.modal-logo-cell.highlight {
	color: var(--primary-color);
	order: -1;
}

.modal-logo-cell.highlight .img-container {
	border-color: var(--primary-color);
}

.modal-logo-cell:hover:not(.disabled) {
	color: #222;
}

.modal-logo-cell:hover:not(.disabled) .img-container {
	border-color: #999;
	box-shadow: rgba(85, 85, 85, 0.15) 0 0 7px;
}

.modal-logo-cell.disabled {
	color: #ccc;
	cursor: not-allowed;
}

.modal-logo-cell.disabled .img-container {
	opacity: 0.3;
}

.modal-logo-cell.disabled::after {
	content: "This logo does not fit into this position";
	display: none;
	position: absolute;
	height: 140px;
	background-color: #f7f7f7;
	padding: 20px;
	border-radius: 3px;
	color: #222;
	align-items: center;
	text-align: center;
}
.modal-logo-cell.disabled:hover::after {
	display: flex;
}

.modal-logo-cell img {
	filter: drop-shadow(0px 0px 3px rgba(34, 34, 34, 0.25));
	object-fit: contain;
}

.modal-logo-cell .logo-size-price {
	display: flex;
	justify-content: space-between;
}

.modal-footer {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: flex-end;
	gap: 10px;
	margin-top: 10px;
}

.modal-footer span {
	font-weight: 700;
}
/* #endregion */

/* #region modal upload overlay */
.modal .upload-overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 99;
	background-color: #fff;
}

.modal .upload-overlay.hide {
	display: none;
}

.modal .drop {
	width: 100%;
	height: 300px;
	border: #aaa 2px dashed;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
	padding: 20px;
	margin-bottom: 20px;

	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.modal .drop.dragged-over {
	border-color: #555;
	background-color: #f7f7f7;
}

input#logo-upload-file {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	top: 0;
	opacity: 0;
	cursor: pointer;
}

.modal .drop .info {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	color: #aaa;
	font-size: 14px;
	font-weight: 500;
}

.modal .drop .info p:first-of-type {
	font-size: 18px;
}

.modal .drop .info .filename:not(:empty) {
	min-width: min(300px, 100%);
	background-color: rgba(61, 191, 154, 0.25);
	border-radius: 5px;
	padding: 20px 30px;
	margin-top: 25px;
	color: #222;
	font-size: 16px;
	text-align: center;
}

.modal .drop .info .browse {
	color: var(--primary-color);
}

.modal .upload-overlay .logo-upload-form {
	display: flex;
}

.modal .divider {
	width: 100%;
	height: 1px;
	background-color: #d3d3d3;

	margin: 20px 0;

	display: flex;
	justify-content: center;
	align-items: center;
}

.modal .divider span {
	background: #fff;
	padding: 0 25px;

	color: #aaa;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}

#logo-upload-name {
	width: 100%;
	height: 50px;
	border-right: 0;
}

.modal .name-wrap {
	width: 100%;
	display: flex;
}

.modal .name-wrap input[type="submit"],
.modal .name-wrap button {
	width: 115px;
	border: 0;
	background: var(--primary-color);
	color: #fff;
	height: 50px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	font-weight: bold;
	flex-shrink: 0;
}
.modal .name-wrap input[type="submit"]:disabled {
	background: #555;
}

.modal .name-wrap input[type="text"] {
	width: 100%;
	height: 50px;
	border-right: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
/* #endregion */

/* #region request modal */
.request-modal .modal-inner {
	height: 100%;
	padding: 50px 90px;
	align-items: center;
	overflow: auto;
}

.request-modal h1 {
	color: #222;
	font-size: 32px;
	font-weight: 400;
}
.request-modal h3 {
	color: #555;
	font-size: 12px;
	font-weight: 400;
}

.request-modal .custom-product-preview-container {
	flex: 100;
	margin: 20px 0;
}
.request-modal .custom-product-preview {
	height: 100%;
	border: rgba(112, 112, 112, 0.1) 1px solid;
	border-radius: 5px;
	padding: 20px;

	display: flex;
	align-items: center;
	justify-content: center;
}

.request-modal .builder-view {
	/* height: 100%; */
	display: flex;
	align-items: center;
	justify-content: center;
}

.request-modal .builder-view img {
	width: 100%;
	height: auto;
	max-height: min(25vh, 250px);
}

.request-modal .builder-view .area {
	cursor: unset;
}

.request-modal label {
	width: 100%;
	color: #222;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
}

.request-modal button.custom-product-next {
	background-color: #222;
}

.request-modal .custom-product-error {
	width: 100%;
	height: 20px;
	line-height: 20px;
	color: #db5b5b;
}

.request-modal .custom-product-overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 99;
	background-color: #fff;
	overflow-y: auto;
}
.request-modal .custom-product-overlay.hide {
	display: none;
}

.request-modal .custom-product-overlay p {
	flex-basis: 100%;
	text-align: center;
	margin-top: 10px;
}

.request-modal .custom-product-overlay a {
	color: var(--primary-color);
	text-decoration: none;
}

.request-modal .custom-product-summary,
.request-modal .custom-product-logos {
	width: 100%;
}

.request-modal .btn-confirm {
	background-color: var(--primary-color);
	color: #fff;
	position: relative;
}
.request-modal .btn-confirm:disabled {
	color: transparent;
}

.request-modal .btn-confirm:disabled::after {
	content: "";
	position: absolute;
	top: calc(50% - 15px);
	left: calc(50% - 15px);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	border: 3px solid transparent;
	border-top-color: #fff;
	animation: preoaderSpin 1s infinite linear;
}
/* #endregion */

/* #region how it works */
.single-customisable-product {
	background: #fff;
}

.single-customisable-product main.content {
	background: #f7f7f7;
	display: flex;
	flex-direction: column;
}

.how-it-works {
	margin-top: auto;
	width: 100%;
	background-color: #fff;
}

.how-it-works p {
	padding: 0;
}

.how-it-works .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding-bottom: 50px;
}

.how-it-works h1 {
	font-size: 32px;
	font-weight: 400;
}

.how-it-works h2 {
	font-size: 18px;
	font-weight: 400;
}

.how-it-works .steps {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 0;
	margin: 35px 0;
}

.how-it-works .step {
	flex-basis: 200px;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 0 30px;
}

.how-it-works .step:not(:last-child) {
	border-right: rgba(112, 112, 112, 0.1) 1px solid;
}

.how-it-works .step .circle {
	width: 55px;
	height: 55px;
	border-radius: 100%;
	background-color: #f7f7f7;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--primary-color);
	font-size: 18px;
	font-weight: 700;
}

.how-it-works .step p:first-of-type {
	font-size: 16px;
	font-weight: 700;
}

.how-it-works .step a {
	color: var(--primary-color);
	text-decoration: none;
}

.how-it-works button {
	margin: 10px 0;
}

@media (max-width: 768px) {
	.how-it-works .step {
		min-width: 300px;
		flex: 1 0 100%;
		border: none !important;
	}
}
/* #endregion */

@media (max-width: 992px) {
	.logo-size-slider-card {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.product-lines table tr td {
		padding: 2px 0;
		text-align: left;
	}
	.product-lines table tr td:last-child {
		padding-right: 0px;
		min-width: 100px;
	}
	.product-details {
		margin-top: 20px;
	}
	.details-table {
		margin-top: 10px;
	}

	.single-product .product .product-lines tbody tr {
		display: flex;
		flex-direction: column;
	}
	.single-product .product .product-lines tbody tr td:first-child {
		padding-top: 10px;
	}
	.single-product .product .product-lines tbody tr td:last-child {
		padding-bottom: 10px;
		text-align: left;
	}
	.single-product .product .product-lines table tr td {
		display: flex;
		align-items: center;
	}
	.single-product .product .product-lines table tfoot tr td {
		display: block;
	}
	.single-product .product .product-lines tfoot tr {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 15px 0px;
	}
	.modal-card {
		max-height: 100%;
		margin: 10px;
		margin-bottom: 50px;
	}
	.modal-body {
		margin: 0 -20px;
	}
	.modal-inner {
		padding: 25px 20px;
	}
	.modal-filter div {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	.modal-filter div span {
		flex-basis: 100%;
		width: 100%;
	}
	button.modal-btn-filter {
		flex: 1 0 40%;
		height: 35px;
	}
	.modal .modal-header button {
		height: 45px;
		padding: 0 10px;
		line-height: auto;
		white-space: pre-line;
		min-width: auto;
		flex: 1;
		font-size: 12px;
		line-height: 1.4;
	}
	.modal-header {
		gap: 5px;
		justify-content: stretch;
	}
	.modal .modal-header button.add-new::after {
		width: 15px;
		height: 15px;
		font-size: 15px;
		line-height: 15px;
	}
	.how-it-works {
		padding-top: 40px;
	}
	.how-it-works .container {
		gap: 5px;
	}
	.product-customisable {
		padding-bottom: 40px;
	}
	.product-customisable .product-actions {
		justify-content: center;
		gap: 10px;
		flex-direction: column-reverse;
	}
	.product-customisable .product-actions .btn-cancel {
		width: 100%;
		background-color: #f2f2f2;
	}
	.request-modal .modal-inner {
		padding: 20px;
	}
	.request-modal h1 {
		font-size: 25px;
	}
	.modal .name-wrap input[type="text"] {
		border: solid 1px #ccc;
		border-radius: 4px;
	}
	.modal .name-wrap {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.request-modal button.custom-product-next {
		width: 100%;
		border-radius: 4px;
	}
	.modal.request-modal .modal-footer {
		width: 100%;
	}
	.modal.request-modal .modal-footer button.btn.btn-cancel {
		width: 100%;
		border-radius: 4px;
	}
	.inserted-logos .item .text {
		margin-top: 0;
	}
	.product-lines tfoot span {
		margin-left: 0;
		display: block;
	}
}
