/* Fill the parent container even when it is a centred flex column (Elementor containers on mobile).
   :where() keeps this at zero specificity so any width/alignment set in Elementor still wins. */
:where(.elementor-widget-icp_interior_picker) { align-self: stretch; min-width: 0; }

.icp-wrap {
	--icp-speed: 700ms;
	--icp-active-scale: 1.3;
	--icp-hover-scale: 1.12;
	--icp-ring-w: 0px;
	--icp-ring-o: 3px;
	--icp-ring-c: #ffffff;

	position: relative;
	width: 100%;
	height: 720px;
	overflow: hidden;
	isolation: isolate;
	background-color: #1b1b1b;
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}
.icp-wrap *, .icp-wrap *::before, .icp-wrap *::after { box-sizing: border-box; }

/* ---------- Slides ---------- */
.icp-slides { position: absolute; inset: 0; touch-action: pan-y; }

.icp-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity var(--icp-speed) ease, transform var(--icp-speed) cubic-bezier(.65, .05, .25, 1), visibility 0s linear var(--icp-speed);
}
.icp-slide picture { display: block; width: 100%; height: 100%; }
/* Sizing is !important so themes / image plugins forcing `img{height:auto!important}` cannot break cover/contain. */
.icp-wrap .icp-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
}

/* The slide that is on show sits on top; the one just replaced stays opaque underneath until the new one has faded in. */
.icp-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition-delay: 0s;
}
.icp-slide.is-leaving {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: none;
}

/* Zoom */
.icp-wrap[data-effect="zoom"] .icp-slide { transform: scale(1.08); }
.icp-wrap[data-effect="zoom"] .icp-slide.is-active,
.icp-wrap[data-effect="zoom"] .icp-slide.is-leaving { transform: scale(1); }

/* Slide */
.icp-wrap[data-effect="slide"] .icp-slide { opacity: 1; visibility: visible; transition: transform var(--icp-speed) cubic-bezier(.65, .05, .25, 1); }
.icp-wrap[data-effect="slide"] .icp-slide.is-before { transform: translate3d(-100%, 0, 0); }
.icp-wrap[data-effect="slide"] .icp-slide.is-after  { transform: translate3d(100%, 0, 0); }
.icp-wrap[data-effect="slide"] .icp-slide.is-active { transform: none; }
.icp-wrap[data-effect="slide"] .icp-slide.is-leaving { transition: transform var(--icp-speed) cubic-bezier(.65, .05, .25, 1); z-index: 1; }

/* None */
.icp-wrap[data-effect="none"] .icp-slide { transition: none; }

/* ---------- Overlays ---------- */
.icp-tint, .icp-grad { position: absolute; pointer-events: none; z-index: 3; }
.icp-tint { inset: 0; background-color: #000; opacity: 0; }
.icp-grad {
	left: 0; right: 0; bottom: 0;
	height: 55%;
	background-color: #000;
	opacity: .35;
	-webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
	mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

.icp-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 26px;
	padding: 90px 40px 44px;
	pointer-events: none;
}

/* ---------- Text ---------- */
.icp-content {
	width: 100%;
	max-width: 1600px;
	text-align: center;
	transition: opacity .25s ease, transform .25s ease;
}
.icp-content.is-swapping { opacity: 0; transform: translateY(6px); }

.icp-title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
}
.icp-desc {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	white-space: pre-line;
	color: #fff;
}

/* ---------- Swatches ---------- */
.icp-swatchbar {
	order: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}
.icp-swatches {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	border-radius: 999px;
	pointer-events: auto;
}
.icp-sw {
	position: relative;
	flex: 0 0 auto;
	display: block;
	width: 26px;
	height: 26px;
}
.icp-wrap .icp-swatch {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
	cursor: pointer;
	outline: 0 solid transparent;
	outline-offset: var(--icp-ring-o);
	transform: scale(1);
	transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), outline-color .25s ease;
}
.icp-wrap .icp-swatch:hover { transform: scale(var(--icp-hover-scale)); }
.icp-wrap .icp-swatch.is-active {
	transform: scale(var(--icp-active-scale));
	outline: var(--icp-ring-w) solid var(--icp-ring-c);
}
.icp-wrap .icp-swatch:focus-visible {
	outline: 2px solid #ff9933;
	outline-offset: 3px;
}

.icp-label {
	margin: 12px 0 0;
	min-height: 1.4em;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: .03em;
	text-align: center;
	color: #fff;
	pointer-events: none;
}

/* Tooltip */
.icp-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	padding: 6px 10px;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, .78);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	color: #fff;
	opacity: 0;
	transform: translate(-50%, 4px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 2;
}
.icp-sw:hover .icp-tip,
.icp-sw:focus-within .icp-tip {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Arrows ---------- */
.icp-wrap .icp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .25);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
.icp-wrap .icp-arrow:hover,
.icp-wrap .icp-arrow:focus { background-color: rgba(0, 0, 0, .5); color: #fff; }
.icp-wrap .icp-arrow:focus-visible { outline: 2px solid #ff9933; outline-offset: 2px; }
.icp-prev { left: 24px; }
.icp-next { right: 24px; }
.icp-arrow svg { width: 22px; height: 22px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.icp-wrap { height: 560px; }
	.icp-overlay { padding: 70px 28px 36px; }
}
@media (max-width: 767px) {
	.icp-wrap { height: 560px; }
	.icp-grad { height: 80%; opacity: .7; }
	.icp-overlay { padding: 56px 18px 28px; gap: 20px; }
	.icp-title { font-size: 20px; margin-bottom: 10px; }
	.icp-desc { font-size: 14px; }
	.icp-prev { left: 8px; }
	.icp-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.icp-slide, .icp-content, .icp-swatch, .icp-tip { transition-duration: .01ms !important; }
}
