/* =====================================================================
   Smart Cross Sell's product page (product-page-smart-cross-sell.js
   draws the bundle blocks and the cart).

   1. The plugin's bundle block — a copy of Smart Cross Sell 0.23's
      assets/css/bundle-block.css (without the page-width and placement
      rules, the level tag and the list strip, which the page doesn't use),
      so the page shows exactly what shoppers see. Copy it again when the
      plugin's block changes.
   2. The page's own visuals (.edp-scs-*).
   ===================================================================== */

/* ----- 1. Bundle block (from the plugin) ----- */
.scs-bundle-block {
	display: block;
	padding: 45px 30px;
	background-color: var( --scs-section-bg, #f9f9f9 );
	border-radius: var( --scs-radius, 0 );
}

.scs-bundle-block__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.scs-bundle-block__title {
	margin: 0;
	font-size: 1.45em;
	font-weight: 700;
}

.scs-bundle-block__count {
	font-size: 0.70em;
	color: #8794a4;
	position: relative;
	top: 3px;
}

.scs-bundle-block__intro {
	margin: 4px 0 20px;
	font-size: 0.9em;
	color: #5a6675;
}

.scs-bundle-block__body {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	align-items: flex-start;
}

.scs-bundle-block__items {
	flex: 2;
	min-width: 280px;
}

.scs-bundle-block__summary {
	flex: 1;
	min-width: 240px;
	padding: 35px 25px;
	position: relative;
	background: #fafcfe;
	border: 1px solid #e6ebf2;
	top: -40px;
}

.scs-bundle-block--layout-a .scs-bundle-block__list {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.scs-bundle-block--layout-a .scs-bundle-block__item {
	flex-direction: column;
	align-items: flex-start;
	max-width: 170px;
	border: 0;
	background-color: var( --scs-card-bg, #fff );
	flex: 1;
	min-width: 160px;
	padding: 0;
	margin-bottom: 15px;
	gap: 0;
	min-height: 230px;
	border-radius: var( --scs-radius, 0 );
	overflow: hidden;
}

.scs-bundle-block__item .scs-bundle-block__item-text-wrapper {
	padding: 15px;
}

.scs-bundle-block--layout-a .scs-bundle-block__thumb {
	width: 100%;
	height: 130px;
}

.scs-bundle-block--layout-a .scs-bundle-block__item-text {
	width: 100%;
}

.scs-bundle-block--layout-a .scs-bundle-block__price {
	margin-top: 2px;
}

.scs-bundle-block__plus {
	align-self: center;
	color: #555;
	font-size: 1.4em;
	margin: 0 10px;
	position: relative;
	top: -45px;
}

.scs-bundle-block--layout-b .scs-bundle-block__list {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6ebf2;
	border-radius: var( --scs-radius, 0 );
	overflow: hidden;
}

.scs-bundle-block--layout-b .scs-bundle-block__item {
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid #e6ebf2;
	background-color: var( --scs-card-bg, #fff );
	align-items: flex-start;
	gap: 5px;
	position: relative;
	padding-right: 50px;
}

.scs-bundle-block--layout-b .scs-bundle-block__item .scs-bundle-block__item-text-wrapper {
	padding: 5px 15px;
}

.scs-bundle-block--layout-b .scs-bundle-block__item .scs-bundle-block__name {
	font-size: 0.95em;
}

.scs-bundle-block--layout-b .scs-bundle-block__thumb {
	width: 60px;
	height: 60px;
}

.scs-bundle-block--layout-b .scs-bundle-block__price {
	position: absolute;
	right: 15px;
	bottom: calc( 50% - 12px );
}

.scs-bundle-block--layout-b .scs-bundle-block__item:last-child {
	border-bottom: 0;
}

.scs-bundle-block__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
}

.scs-bundle-block__thumb {
	display: inline-flex;
	width: 48px;
	height: 48px;
	overflow: hidden;
	flex: 0 0 auto;
	color: inherit;
	text-decoration: none;
}

.scs-bundle-block__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scs-bundle-block__item-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.scs-bundle-block__name {
	font-size: 0.85em;
	font-weight: 500;
	line-height: 1.1;
	margin-bottom: 10px;
	color: inherit;
	text-decoration: none;
	display: inline-block;
}

.scs-bundle-block__price {
	font-weight: 600;
	font-family: 'JetBrains Mono', monospace;
}

.scs-bundle-block__price--gift del {
	margin-right: 6px;
}

.scs-bundle-block__free {
	color: var( --scs-banner-text, #3e6631 );
	text-transform: uppercase;
}

.scs-bundle-block__price del {
	font-size: 0.8em;
	color: #8794a4;
}

.scs-bundle-block__variations {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 5px;
}

.scs-bundle-block__variation-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.scs-bundle-block__variation-label {
	font-size: 0.6em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #8794a4;
}

.scs-bundle-block__chip-row {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.scs-bundle-block__chip {
	font-family: inherit;
	font-size: 0.6em;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: var( --scs-radius, 0 );
	cursor: pointer;
	background: #fff;
	color: #5a6675;
	border: 1px solid #c3cdda;
	transition: all 0.12s ease;
}

.scs-bundle-block__chip.is-selected,
.scs-bundle-block__chip:hover {
	background: #1c2430;
	color: #fff;
	border-color: #1c2430;
}

.scs-bundle-block__summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 0.8em;
	color: #5a6675;
	margin-bottom: 8px;
}

.scs-bundle-block__summary-row--total {
	margin-bottom: 16px;
	padding-top: 10px;
	border-top: 1px solid #e6ebf2;
	font-size: 1.05em;
	font-weight: 700;
	color: #1c2430;
}

.scs-bundle-block__subtotal,
.scs-bundle-block__total {
	font-family: 'JetBrains Mono', monospace;
}

.scs-bundle-block__subtotal.has-discount {
	text-decoration: line-through;
	color: #8794a4;
}

.scs-bundle-block__benefit-banner {
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: var( --scs-radius, 0 );
	font-size: 0.9em;
	font-weight: 600;
	background: var( --scs-banner-bg, #e8f2ea );
	color: var( --scs-banner-text, #3e6631 );
}

.scs-bundle-block__add-btn {
	width: 100%;
	padding: 12px 0;
	border: 0;
	background: var( --scs-accent-color, #2f62a8 );
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	border-radius: var( --scs-radius, 0 );
}

.scs-bundle-block__add-btn:hover {
	background: var( --scs-accent-color, #2f62a8 );
	color: #fff;
}

.scs-bundle-block--btn-outline .scs-bundle-block__add-btn {
	background: transparent;
	border: 1px solid var( --scs-accent-color, #2f62a8 );
	color: var( --scs-accent-color, #2f62a8 );
}

.scs-bundle-block--btn-outline .scs-bundle-block__add-btn:hover {
	background: transparent;
	color: var( --scs-accent-color, #2f62a8 );
}

.scs-bundle-block__checkout-btn {
	width: 100%;
	margin-top: 8px;
	padding: 12px 0;
	border: 1px solid var( --scs-accent-color, #2f62a8 );
	background: transparent;
	color: var( --scs-accent-color, #2f62a8 );
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	border-radius: var( --scs-radius, 0 );
}

.scs-bundle-block__checkout-btn:hover {
	background: transparent;
	color: var( --scs-accent-color, #2f62a8 );
}

.scs-bundle-block--checkout-btn-solid .scs-bundle-block__checkout-btn {
	background: var( --scs-accent-color, #2f62a8 );
	border: 0;
	color: #fff;
}

.scs-bundle-block--checkout-btn-solid .scs-bundle-block__checkout-btn:hover {
	background: var( --scs-accent-color, #2f62a8 );
	color: #fff;
}

.scs-bundle-block__summary-note {
	margin: 10px 0 0;
	font-size: 0.78em;
	color: #8794a4;
	text-align: center;
	line-height: 1.5;
}

.scs-bundle-block__message {
	margin: 10px 0 0;
	font-size: 0.85em;
	text-align: center;
}

.scs-bundle-block__message--success {
	color: #3e6631;
}

@media ( max-width: 768px ) {
	.scs-bundle-block {
		padding: 20px 15px;
	}

	.scs-bundle-block--layout-a .scs-bundle-block__item {
		min-width: 0;
		max-width: none;
	}

	.scs-bundle-block--layout-a.scs-bundle-block--pair .scs-bundle-block__list {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
		gap: 0;
	}

	.scs-bundle-block--layout-a.scs-bundle-block--pair .scs-bundle-block__plus {
		margin: 0 8px;
	}

	.scs-bundle-block--layout-a.scs-bundle-block--multi .scs-bundle-block__list {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 0 10px;
	}

	.scs-bundle-block--layout-a.scs-bundle-block--multi .scs-bundle-block__plus {
		display: none;
	}

	.scs-bundle-block__summary {
		top: 0;
	}

	.scs-bundle-block__body {
		gap: 10px;
	}
}

/* ----- 2. The page's visuals ----- */

/* Photo stand-ins (the hero). */
.edp-scs-img {
	display: block;
	background: repeating-linear-gradient( 135deg, #dde6f1 0 6px, #edf2f8 6px 12px );
}

.edp-scs-img--socks {
	background: repeating-linear-gradient( 135deg, #e9e2f3 0 6px, #f4f0f9 6px 12px );
}

.edp-scs-img--insoles {
	background: repeating-linear-gradient( 135deg, #e2efe8 0 6px, #f0f7f3 6px 12px );
}

.edp-scs-img--bag {
	background: repeating-linear-gradient( 135deg, #f3e7d8 0 6px, #faf4ec 6px 12px );
}

/* Product photos (assets/img/scs/, square). */
.edp-scs-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: #fff;
}

/* A browser window with a product page. */
.edp-scs-browser {
	overflow: hidden;
	background: #fff;
	border: 1px solid var( --edp-line-2 );
	border-radius: 16px;
	box-shadow: 0 30px 70px rgba( 28, 40, 60, 0.14 );
}

.edp-scs-browser__bar {
	height: 34px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	background: #f2f5fa;
	border-bottom: 1px solid var( --edp-line );
}

.edp-scs-browser__bar > span:not( .edp-scs-browser__url ) {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var( --edp-line-2 );
}

.edp-scs-browser__url {
	margin-left: 10px;
	font-size: 11.5px;
	color: var( --edp-ink-3 );
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edp-scs-browser__page {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 18px;
}

/* The store around the block: in colour, under a white veil. */
.edp-scs-muted {
	opacity: 0.6;
}

.edp-scs-browser {
	container-type: inline-size;
}

.edp-scs-store {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 12px 18px;
	border-bottom: 1px solid #eef1f5;
	font-size: 13px;
	color: var( --edp-ink-2 );
}

.edp-scs-store__logo {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: var( --edp-ink );
}

.edp-scs-store__logo span {
	color: var( --edp-azure );
}

.edp-scs-store__nav {
	display: flex;
	gap: 18px;
}

.edp-scs-store__icons {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.edp-scs-store__search,
.edp-scs-store__cart {
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var( --edp-line );
	border-radius: 999px;
}

.edp-scs-store__search {
	width: 30px;
}

.edp-scs-store__cart {
	padding: 0 12px;
	white-space: nowrap;
}

.edp-scs-pdp {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.edp-scs-pdp__crumbs {
	font-size: 11px;
	color: var( --edp-ink-3 );
}

.edp-scs-pdp__row {
	display: flex;
	gap: 16px;
}

.edp-scs-pdp__gallery {
	flex: 0 0 min( 42%, 190px );
	min-width: 0;
	display: flex;
	gap: 8px;
}

.edp-scs-pdp__image {
	flex: 1;
	min-width: 0;
	height: auto;
	aspect-ratio: 1.3;
	object-fit: cover;
	border-radius: 10px;
	background: #f2f2f2;
}

.edp-scs-pdp__info {
	flex: 1;
	min-width: 0;
	max-width: 240px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
}

.edp-scs-pdp__name {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.edp-scs-pdp__price {
	font-size: 13px;
	font-weight: 700;
}

.edp-scs-pdp__sizes {
	display: flex;
	gap: 4px;
}

.edp-scs-pdp__sizes span {
	min-width: 26px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var( --edp-line-2 );
	border-radius: 5px;
	font-size: 10.5px;
}

.edp-scs-pdp__sizes .is-on {
	background: var( --edp-ink );
	border-color: var( --edp-ink );
	color: #fff;
}

.edp-scs-pdp__buy {
	display: flex;
	gap: 8px;
	margin-top: 3px;
}

.edp-scs-pdp__add {
	flex: 1;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --edp-ink );
	color: #fff;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 700;
}

/* Live preview: the whole product summary. */
.edp-scs-pdp--full .edp-scs-pdp__row {
	gap: 32px;
}

.edp-scs-pdp--full .edp-scs-pdp__gallery {
	flex: 0 1 460px;
	gap: 10px;
}

.edp-scs-pdp__thumbs {
	flex: 0 0 52px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.edp-scs-pdp__thumbs > * {
	width: 52px;
	height: 52px;
	display: block;
	object-fit: cover;
	background: #eef2f7;
	border-radius: 8px;
}

.edp-scs-pdp__thumbs .is-on {
	box-shadow: inset 0 0 0 2px var( --edp-ink );
	border: 2px solid var( --edp-ink );
}

.edp-scs-pdp--full .edp-scs-pdp__info {
	max-width: 360px;
	gap: 10px;
}

.edp-scs-pdp__brand {
	font-size: 12.5px;
	color: var( --edp-ink-3 );
}

.edp-scs-pdp--full .edp-scs-pdp__name {
	font-size: clamp( 20px, 2.2vw, 26px );
	letter-spacing: -0.5px;
}

.edp-scs-pdp__rating {
	font-size: 12.5px;
	color: var( --edp-ink-2 );
}

.edp-scs-pdp__rating span {
	color: var( --edp-gold );
	letter-spacing: 1px;
}

.edp-scs-pdp--full .edp-scs-pdp__price {
	font-size: 19px;
}

.edp-scs-pdp__desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: var( --edp-ink-2 );
}

.edp-scs-pdp--full .edp-scs-pdp__sizes span {
	min-width: 36px;
	height: 32px;
	font-size: 13px;
	border-radius: 7px;
}

.edp-scs-pdp__qty {
	flex: 0 0 auto;
	height: 40px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: 1px solid var( --edp-line-2 );
	border-radius: 8px;
	font-size: 13px;
}

.edp-scs-pdp--full .edp-scs-pdp__add {
	height: 40px;
	border-radius: 8px;
	font-size: 14px;
}

/* The product tabs under the block — where the plugin puts it by default. */
.edp-scs-ptabs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var( --edp-ink-2 );
}

/* The fading hero version clips its height: keep the parts whole. */
.edp-scs-ptabs > * {
	flex-shrink: 0;
}

.edp-scs-ptabs p {
	margin: 0;
	max-width: 640px;
}

.edp-scs-ptabs__head {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid var( --edp-line );
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
}

.edp-scs-ptabs__head span {
	padding: 8px 0;
	margin-bottom: -1px;
	color: var( --edp-ink-3 );
}

.edp-scs-ptabs__head .is-on {
	color: var( --edp-ink );
	border-bottom: 2px solid var( --edp-ink );
}

/* Hero: just the top of the tabs, fading out. */
.edp-scs-ptabs--fade {
	max-height: 64px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient( 180deg, #000 30%, transparent );
	mask-image: linear-gradient( 180deg, #000 30%, transparent );
}

@container ( max-width: 560px ) {
	.edp-scs-store__nav {
		display: none;
	}
}

@container ( max-width: 640px ) {
	.edp-scs-pdp--full .edp-scs-pdp__row {
		flex-direction: column;
		gap: 16px;
	}

	.edp-scs-pdp--full .edp-scs-pdp__gallery {
		flex-basis: auto;
	}

	.edp-scs-pdp--full .edp-scs-pdp__info {
		max-width: none;
	}
}

/* The dashed frame that marks the plugin's block. */
.edp-scs-frame {
	position: relative;
	padding: 8px;
	border: 2px dashed var( --edp-azure );
	border-radius: 16px;
}

.edp-scs-frame__tag {
	position: absolute;
	left: 14px;
	top: -12px;
	z-index: 1;
	height: 22px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	background: var( --edp-azure );
	color: #fff;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.edp-scs-frame .scs-bundle-block {
	padding: 30px 20px 20px;
}

/* Hero: a narrow column, so the block is drawn smaller, with the products
   and the summary side by side (under each other on phones). */
.edp-scs-hero {
	container-type: inline-size;
	background: #fff;
	box-shadow: 0 30px 70px rgba( 28, 40, 60, 0.14 );
}

.edp-scs-hero .scs-bundle-block {
	padding: 24px 18px 16px;
	font-size: 14px;
}

.edp-scs-hero .scs-bundle-block__intro {
	margin-bottom: 14px;
}

.edp-scs-hero .scs-bundle-block--layout-a .scs-bundle-block__item {
	min-height: 0;
	margin-bottom: 0;
}

.edp-scs-hero .scs-bundle-block--layout-a .scs-bundle-block__thumb {
	height: 70px;
}

.edp-scs-hero .scs-bundle-block__item .scs-bundle-block__item-text-wrapper {
	padding: 10px 12px;
}

.edp-scs-hero .scs-bundle-block__plus {
	top: -30px;
}

.edp-scs-hero .scs-bundle-block__body {
	flex-wrap: nowrap;
	align-items: center;
	gap: 14px;
}

.edp-scs-hero .scs-bundle-block__items {
	flex: 1 1 auto;
	min-width: 0;
}

.edp-scs-hero .scs-bundle-block--layout-a .scs-bundle-block__list {
	flex-wrap: nowrap;
}

.edp-scs-hero .scs-bundle-block--layout-a .scs-bundle-block__item {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
}

.edp-scs-hero .scs-bundle-block__plus {
	margin: 0 4px;
}

.edp-scs-hero .scs-bundle-block__summary {
	flex: 0 0 172px;
	min-width: 0;
	top: 0;
	padding: 14px;
}

.edp-scs-hero .scs-bundle-block__benefit-banner {
	font-size: 0.85em;
}

.edp-scs-hero .scs-bundle-block__add-btn {
	padding-left: 8px;
	padding-right: 8px;
	font-size: 0.8em;
}

@container ( max-width: 500px ) {
	.edp-scs-hero .scs-bundle-block__body {
		flex-wrap: wrap;
	}

	.edp-scs-hero .scs-bundle-block__summary {
		flex: 1 1 100%;
	}
}

.edp-scs-hero .scs-bundle-block__summary-row--total {
	margin-bottom: 10px;
}

.edp-scs-hero .scs-bundle-block__benefit-banner {
	margin-bottom: 10px;
	padding: 8px 12px;
}

.edp-scs-hero .scs-bundle-block__add-btn,
.edp-scs-hero .scs-bundle-block__checkout-btn {
	padding: 9px 0;
}

.edp-scs-hero .scs-bundle-block__summary-note {
	display: none;
}

/* Example: the bundle and the estimate. */
.edp-scs-example {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 420px ), 1fr ) );
	gap: 24px;
	align-items: stretch;
}

.edp-scs-example__bundle {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp( 20px, 3vw, 32px );
	background: #f5efe6;
	border: 1px solid #eadfcf;
	border-radius: 22px;
}

.edp-scs-example__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.edp-scs-example__head strong {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.3px;
}

.edp-scs-warm {
	color: #8a6b45;
}

.edp-scs-example__items {
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.edp-scs-example__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	background: #fff;
	border: 1px solid var( --edp-line );
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.25;
}

.edp-scs-example__item .edp-scs-photo {
	aspect-ratio: 1;
	border-radius: 8px;
}

.edp-scs-example__note {
	font-size: 12px;
	color: var( --edp-ink-3 );
}

.edp-scs-example__price {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.edp-scs-example__price del {
	font-size: 11.5px;
	color: var( --edp-ink-4 );
}

.edp-scs-example__price span {
	font-size: 13.5px;
	font-weight: 800;
	color: #b23a2e;
}

.edp-scs-example__plus {
	flex: 0 0 auto;
	align-self: center;
	margin-top: -30px;
	color: var( --edp-ink-2 );
	font-weight: 800;
}

.edp-scs-example__total {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 12px;
	font-size: 14.5px;
}

.edp-scs-example__total span {
	margin-right: auto;
	font-weight: 700;
}

.edp-scs-example__total del {
	color: var( --edp-ink-4 );
}

.edp-scs-example__total strong {
	font-size: 18px;
}

.edp-scs-example__checks {
	margin: 0;
	font-size: 14.5px;
	color: #3e4b5c;
}

.edp-scs-example__checks strong {
	color: var( --edp-ink );
}

.edp-scs-estimate {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp( 20px, 3vw, 32px );
	background: var( --edp-ink );
	color: #fff;
	border-radius: 22px;
}

.edp-scs-estimate__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.edp-scs-estimate__label {
	font-family: var( --ed-font-mono, monospace );
	font-size: 10.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #8da8cf;
}

.edp-scs-estimate__badge {
	margin-left: auto;
	padding: 2px 8px;
	border: 1px solid #3a4757;
	border-radius: 6px;
	font-size: 12px;
	color: var( --edp-ink-4 );
}

.edp-scs-estimate__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: #dce3ec;
}

.edp-scs-estimate__field > span {
	display: flex;
}

.edp-scs-estimate__field strong {
	margin-left: auto;
	color: #fff;
}

.edp-scs-estimate input,
.edp-scs-style input {
	width: 100%;
	margin: 0;
	accent-color: var( --edp-azure );
}

.edp-scs-estimate__bars {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edp-scs-estimate__caption {
	font-size: 13px;
	color: var( --edp-ink-4 );
}

.edp-scs-estimate__bar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.edp-scs-estimate__bar > span {
	flex: 0 0 82px;
	font-size: 13px;
	color: var( --edp-ink-4 );
}

.edp-scs-estimate__bar > div {
	flex: 1;
	height: 30px;
	overflow: hidden;
	background: #263142;
	border-radius: 8px;
}

.edp-scs-estimate__bar i {
	display: block;
	height: 100%;
	background: #4a5a70;
	border-radius: 8px;
	transition: width 0.3s ease;
}

.edp-scs-estimate__bar.is-after i {
	background: #5b8fd6;
}

.edp-scs-estimate__bar strong {
	flex: 0 0 72px;
	text-align: right;
}

.edp-scs-estimate__stats {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 140px ), 1fr ) );
	gap: 10px;
	margin-top: auto;
}

.edp-scs-estimate__stats > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	background: #263142;
	border-radius: 12px;
}

.edp-scs-estimate__stats strong {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: #8fd3b0;
}

.edp-scs-estimate__stats span {
	font-size: 13px;
	color: var( --edp-ink-4 );
}

.edp-scs-estimate__note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var( --edp-ink-3 );
	text-wrap: pretty;
}

/* Use cases. */
.edp-scs-cases {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 14px;
}

.edp-scs-case {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var( --edp-line );
	border-radius: 16px;
}

.edp-scs-case__items {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 6px;
	padding: 16px 14px 12px;
	background: #f6f6f6;
}

/* Same photo row height in every card, even when a name wraps. */
@media ( min-width: 641px ) {
	.edp-scs-case__items {
		min-height: 134px;
		align-items: flex-start;
	}
}

.edp-scs-case__item {
	flex: 0 1 68px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #3e4b5c;
	line-height: 1.25;
	text-align: center;
}

.edp-scs-case__item .edp-scs-photo {
	aspect-ratio: 1;
	border: 1px solid var( --edp-line );
	border-radius: 10px;
}

.edp-scs-case__plus {
	align-self: center;
	margin-top: -18px;
	color: var( --edp-ink-3 );
	font-weight: 700;
}

.edp-scs-case__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 18px 18px;
	border-top: 1px solid #eef1f5;
}

.edp-scs-case__body strong {
	font-size: 16px;
}

.edp-scs-case__benefit {
	align-self: flex-start;
	margin-top: 4px;
	padding: 3px 8px;
	background: #e5f4ec;
	color: #17714a;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* Benefits. */
.edp-scs-benefits {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: 16px;
}

.edp-scs-benefit {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border: 1px solid var( --edp-line );
	border-radius: 16px;
}

.edp-scs-benefit strong {
	font-size: 19px;
	letter-spacing: -0.4px;
}

.edp-scs-benefit p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var( --edp-ink-2 );
}

.edp-scs-benefit.is-muted {
	background: #f7f9fc;
}

.edp-scs-benefit.is-muted .edp-eyebrow {
	color: var( --edp-ink-3 );
}

/* Cart (callout). */
.edp-scs-cart {
	width: 100%;
	max-width: 460px;
	justify-self: center;
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 14px 36px rgba( 90, 70, 40, 0.12 );
}

.edp-scs-cart__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid #f1eadf;
	font-size: 15px;
	font-weight: 700;
}

.edp-scs-cart__hint {
	margin-left: auto;
	font-size: 12.5px;
	font-weight: 400;
	color: var( --edp-ink-3 );
}

.edp-scs-cart__line {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-bottom: 1px solid #f4f0e9;
}

.edp-scs-cart__thumb {
	flex: 0 0 52px;
	height: 52px;
	overflow: hidden;
	border: 1px solid #f1eadf;
	border-radius: 8px;
}

.edp-scs-cart__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.edp-scs-cart__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.edp-scs-cart__name {
	font-size: 14px;
	font-weight: 700;
}

.edp-scs-cart__meta {
	font-size: 12.5px;
	color: var( --edp-ink-2 );
}

.edp-scs-cart__remove,
.edp-scs-cart__restore {
	padding: 0;
	border: 0;
	background: none;
	color: var( --edp-ink-3 );
	font: inherit;
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
}

.edp-scs-cart__remove:hover {
	color: #b23a2e;
}

.edp-scs-cart__price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
}

.edp-scs-cart__price del {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var( --edp-ink-4 );
}

.edp-scs-cart__notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 12px 18px;
	background: #fdf1f0;
	color: #9e3a31;
	font-size: 13.5px;
	font-weight: 600;
}

.edp-scs-cart__restore {
	margin-left: auto;
	color: #9e3a31;
	font-weight: 700;
}

.edp-scs-cart__totals {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 18px 18px;
	font-size: 14px;
}

.edp-scs-cart__row {
	display: flex;
	justify-content: space-between;
}

.edp-scs-cart__row > span:first-child {
	color: var( --edp-ink-2 );
}

.edp-scs-cart__row.is-total {
	padding-top: 10px;
	border-top: 1px solid #f1f4f8;
	font-size: 18px;
	font-weight: 800;
}

.edp-scs-cart__row.is-total > span:first-child {
	color: var( --edp-ink );
}

/* Live preview and styling: controls. */
.edp-scs-demo {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.edp-scs-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	padding: 16px 20px;
	background: var( --edp-ink );
	color: #fff;
	border-radius: 16px;
}

.edp-scs-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.edp-scs-control[hidden] {
	display: none;
}

.edp-scs-control__label {
	font-size: 12.5px;
	font-weight: 700;
}

.edp-scs-controls .edp-scs-control__label {
	color: #dce3ec;
}

.edp-scs-control__label span {
	font-weight: 400;
	color: #8da8cf;
}

.edp-scs-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.edp-scs-pill {
	padding: 7px 12px;
	border: 0;
	border-radius: 8px;
	background: rgba( 255, 255, 255, 0.08 );
	color: #dce3ec;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.edp-scs-pill.is-active {
	background: #fff;
	color: var( --edp-ink );
}

.edp-scs-demo .edp-scs-browser__page {
	padding: clamp( 16px, 3vw, 32px );
}

.edp-scs-style {
	overflow: hidden;
	background: #fff;
	border: 1px solid #dce6f3;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba( 28, 40, 60, 0.1 );
}

.edp-scs-style__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 18px 28px;
	padding: 18px 22px;
	border-bottom: 1px solid #eef1f5;
}

.edp-scs-style .edp-scs-control__label {
	font-family: var( --ed-font-mono, monospace );
	font-size: 10.5px;
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var( --edp-ink-3 );
}

.edp-scs-style .edp-scs-control__label span {
	color: inherit;
}

.edp-scs-style input[type="range"] {
	width: 140px;
	height: 34px;
}

.edp-scs-seg {
	display: flex;
	gap: 2px;
	padding: 3px;
	background: #f2f5fa;
	border-radius: 9px;
}

.edp-scs-seg__btn {
	padding: 6px 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var( --edp-ink-3 );
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.edp-scs-seg__btn.is-active {
	background: #fff;
	color: var( --edp-ink );
	box-shadow: 0 1px 3px rgba( 28, 40, 60, 0.12 );
}

.edp-scs-swatches {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
}

.edp-scs-swatch {
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var( --sw );
	color: var( --sw-text, transparent );
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.edp-scs-swatch.is-light {
	box-shadow: inset 0 0 0 1px var( --edp-line-2 );
}

.edp-scs-swatch.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var( --edp-ink );
}

/* "Any colour": a colour wheel until it's picked, then the colour itself;
   the native colour input covers it, invisible, and opens the picker. */
.edp-scs-swatch--custom {
	position: relative;
	display: block;
	background: conic-gradient( #e5484d, #f5a524, #f5e14a, #46a758, #3e8ee0, #8e4ec6, #e5484d );
	box-shadow: inset 0 0 0 1px rgba( 28, 40, 60, 0.12 );
}

.edp-scs-swatch--custom.is-active {
	background: var( --sw );
}

.edp-scs-swatch--custom input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.edp-scs-style__hint {
	flex: 1 1 100%;
	margin: -6px 0 0;
	font-size: 13px;
	color: var( --edp-ink-3 );
}

.edp-scs-style__stage {
	padding: clamp( 16px, 3vw, 32px );
}

/* Which bundle shows. */
.edp-scs-ladder {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.edp-scs-ladder__step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var( --edp-line );
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.55;
	color: var( --edp-ink-2 );
}

.edp-scs-ladder__step strong {
	display: block;
	margin-bottom: 2px;
	font-size: 16px;
	color: var( --edp-ink );
}

.edp-scs-ladder__n {
	flex: 0 0 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f5fa;
	color: var( --edp-ink-2 );
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
}

@media ( max-width: 1100px ) {
	.edp-scs-cases {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	/* Three over two, the bottom two as wide as the row. */
	.edp-scs-benefits {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	}

	.edp-scs-benefit {
		grid-column: span 2;
	}

	.edp-scs-benefit:nth-child( n + 4 ) {
		grid-column: span 3;
	}
}

@media ( max-width: 640px ) {
	.edp-scs-cases,
	.edp-scs-benefits {
		grid-template-columns: minmax( 0, 1fr );
	}

	.edp-scs-benefit,
	.edp-scs-benefit:nth-child( n + 4 ) {
		grid-column: auto;
	}

	.edp-scs-browser__page {
		padding: 12px;
	}

	.edp-scs-frame .scs-bundle-block {
		padding: 26px 12px 14px;
	}

	.edp-scs-example__item {
		font-size: 12px;
	}
}
