/* ==========================================================================
   Long-form product sections (Lumi 2 and other product templates) and the
   Comparison, Skin Tone Checker and FAQ widgets.
   ========================================================================== */

[data-rsk-fit] [hidden],
[data-rsk-tabs] [hidden] { display: none !important; }

.rsk-section-title .elementor-heading-title {
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
	font-weight: 800;
	line-height: 1.08;
}

/* Results timeline */
.rsk-timeline__step {
	position: relative;
	padding-top: 28px;
	border-top: var(--rsk-rule);
}

.rsk-timeline__step::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--rsk-accent);
	border: var(--rsk-rule);
	border-radius: 50%;
}

.rsk-timeline__step .elementor-heading-title {
	font-size: 1.5rem;
	font-weight: 800;
}

/* "Did you know?" callout */
.rsk-callout {
	background: var(--rsk-blush);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

.rsk-callout .elementor-widget-text-editor {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
}

/* Benefits around the device */
.rsk-benefit {
	padding: 14px 0;
	border-bottom: 1px solid var(--rsk-blush);
}

.rsk-benefit .elementor-heading-title {
	position: relative;
	padding-left: 34px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.rsk-benefit .elementor-heading-title::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 24px;
	height: 24px;
	background: var(--rsk-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rsk-benefits__device img {
	width: 100%;
	max-width: 340px;
	height: auto;
}

/* 3 steps */
.rsk-step .elementor-widget-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

.rsk-step .rsk-label .elementor-heading-title { margin: 6px 0 0; color: var(--rsk-ink); }
.rsk-step h3.elementor-heading-title { font-size: 1.375rem; font-weight: 800; }

/* Why use */
.rsk-why__item {
	padding-top: 18px;
	border-top: var(--rsk-rule);
}

.rsk-why__item .elementor-heading-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }

/* --- Comparison widget ------------------------------------------------- */

.rsk-compare__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
	padding: 4px;
	background: var(--rsk-surface);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius-pill);
}

.rsk-compare__tab {
	padding: 9px 18px 8px;
	font-family: var(--rsk-font);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rsk-ink);
	background: transparent;
	border: 0;
	border-radius: var(--rsk-radius-pill);
	cursor: pointer;
}

.rsk-compare__tab:hover,
.rsk-compare__tab:focus { color: var(--rsk-ink); background: var(--rsk-tint); }

.rsk-compare__tab[aria-selected="true"],
.rsk-compare__tab[aria-selected="true"]:hover,
.rsk-compare__tab[aria-selected="true"]:focus { color: var(--rsk-on-ink); background: var(--rsk-ink); }

.rsk-compare__table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--rsk-bg);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.rsk-compare__table th,
.rsk-compare__table td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rsk-field-line);
}

.rsk-compare__table tr:last-child th,
.rsk-compare__table tr:last-child td { border-bottom: 0; }

.rsk-compare__table thead th {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-bottom: var(--rsk-rule);
}

.rsk-compare__table tbody th { width: 24%; font-weight: 800; }
.rsk-compare__table .rsk-compare__ours { background: var(--rsk-surface); font-weight: 600; }

.rsk-compare__yes,
.rsk-compare__no {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 0 8px -2px 0;
	-webkit-mask-position: center;
	        mask-position: center;
	-webkit-mask-size: contain;
	        mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
}

.rsk-compare__yes {
	background: var(--rsk-accent);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E");
}

.rsk-compare__no {
	background: var(--rsk-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.5 12.1-1.4 1.4L12 13.4l-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1 2.1 2.1z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm3.5 12.1-1.4 1.4L12 13.4l-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1 2.1 2.1z'/%3E%3C/svg%3E");
}

@media (max-width: 749px) {
	.rsk-compare__table thead { display: none; }
	.rsk-compare__table tr { display: grid; border-bottom: 1px solid var(--rsk-field-line); }
	.rsk-compare__table tr:last-child { border-bottom: 0; }
	.rsk-compare__table th,
	.rsk-compare__table td { display: block; width: auto !important; border-bottom: 0; }
	.rsk-compare__table tbody th { padding-bottom: 4px; }
	.rsk-compare__table td { padding-top: 6px; padding-bottom: 6px; }
	.rsk-compare__table td:last-child { padding-bottom: 14px; }
}

/* --- Skin tone checker -------------------------------------------------- */

.rsk-fit {
	padding: 32px 20px;
	text-align: center;
	background: var(--rsk-bg);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

@media (min-width: 750px) {
	.rsk-fit { padding: 48px 40px; }
}

.rsk-fit .rsk-wheader { justify-content: center; text-align: center; }

.rsk-fit__progress {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.rsk-fit__progress li {
	padding: 6px 14px 5px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rsk-muted);
	border: 1px solid var(--rsk-field-line);
	border-radius: var(--rsk-radius-pill);
}

.rsk-fit__progress li.is-active { color: var(--rsk-on-ink); background: var(--rsk-ink); border-color: var(--rsk-ink); }
.rsk-fit__progress li.is-done { color: var(--rsk-ink); background: var(--rsk-blush); border-color: var(--rsk-blush); }

.rsk-fit__q {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 800;
}

.rsk-fit__swatches {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rsk-fit__swatch {
	display: grid;
	justify-items: center;
	gap: 8px;
	width: 92px;
	padding: 6px;
	font-family: var(--rsk-font);
	color: var(--rsk-ink);
	background: transparent;
	border: 0;
	border-radius: var(--rsk-radius);
	cursor: pointer;
}

.rsk-fit__swatch:hover,
.rsk-fit__swatch:focus { color: var(--rsk-ink); background: var(--rsk-surface); }

.rsk-fit__swatch-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 2px solid var(--rsk-field-line);
	border-radius: 50%;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.rsk-fit__swatch:hover .rsk-fit__swatch-img { transform: scale(1.05); }
.rsk-fit__swatch[aria-pressed="true"] .rsk-fit__swatch-img { border: var(--rsk-rule); }

.rsk-fit__swatch-label {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
}

.rsk-fit__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 22px;
	padding: 6px 4px;
	font-family: var(--rsk-font);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--rsk-ink);
	background: none;
	border: 0;
	cursor: pointer;
}

.rsk-fit__back:hover,
.rsk-fit__back:focus { color: var(--rsk-ink); background: none; text-decoration: underline; }
.rsk-fit__back .rsk-icon { width: 18px; height: 18px; }

.rsk-fit__result { max-width: 620px; margin: 0 auto; outline: none; }

.rsk-fit__answer {
	margin: 0 0 24px;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
}

.rsk-fit__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* --- FAQ widget -------------------------------------------------------- */

.rsk-faq { max-width: 860px; margin: 0 auto; }
.rsk-faq .rsk-wheader { justify-content: center; text-align: center; }
.rsk-faq__list { border-top: var(--rsk-rule); }

.rsk-acc__title.rsk-faq__q {
	padding: 20px 0;
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

.rsk-faq__a { font-size: 1rem; }
.rsk-faq__a p { margin: 0 0 10px; }
.rsk-faq__a ul { margin: 0 0 10px; padding-left: 18px; }

/* Split sections: photo beside copy */
.rsk-split__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

@media (min-width: 750px) {
	.rsk-split__img--sticky {
		position: sticky;
		top: calc(var(--rsk-header-h) + var(--rsk-admin-bar) + 24px);
	}
}

.rsk-faq-split .rsk-faq { max-width: none; }
.rsk-faq-split .rsk-faq .rsk-wheader { justify-content: flex-start; text-align: left; }

.rsk-section-subtitle .elementor-heading-title {
	margin-top: 12px;
	font-size: 1.5rem;
	font-weight: 800;
}

/* Press quote under the logos */
.rsk-press-quote .elementor-widget-image img { width: auto; height: 36px; }

.rsk-press-quote .elementor-widget-text-editor:not(.rsk-quote__by) {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.45;
}

/* Expert quote */
.rsk-expert__quote {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.55;
}
