/* Compact programme banner: 216px replaces 309px at the 2172px design width,
   reducing the height by 30% while preserving the responsive proportions. */
body.ison-cabinet .ison-program__hero--banner {
	display: block;
	position: relative;
	aspect-ratio: 2172 / 216;
	height: auto;
	margin-bottom: 0 !important;
	overflow: hidden;
	background: linear-gradient(180deg, #e7f6fd, #ecf7fd 50%, #e9f5fd) !important;
}
body.ison-cabinet .ison-program__banner-img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	transform: none;
	object-fit: fill;
}
body.ison-cabinet .ison-program__banner-img--mobile {
	display: none;
}
body.ison-cabinet .ison-program__hero-copy {
	position: absolute;
	top: 50%;
	left: 20px;
	z-index: 1;
	max-width: 52%;
	transform: translateY(-50%);
}
body.ison-cabinet .ison-crumbs {
	margin-bottom: 0 !important;
}

/* IMG_6921: remove the artificial 60vh tail throughout the cabinet. */
body.ison-cabinet .ison-layout {
	min-height: 0;
}

/* On the short letter page the sidebar used to set the footer position.
   Preserve every item while removing excess vertical padding. */
@media (min-width: 768px) {
	body.ison-cabinet-letter .ison-menu__item {
		min-height: 36px;
		padding-top: 4px;
		padding-bottom: 4px;
	}
	body.ison-cabinet-letter .ison-sidebar__cameras {
		height: 120px;
		object-fit: contain;
	}
	body.ison-cabinet-letter .ison-sidebar__promo {
		margin-top: 6px;
		margin-bottom: 4px;
	}
	body.ison-cabinet-letter .ison-sidebar__support {
		padding-top: 7px;
		padding-bottom: 7px;
	}
	body.ison-cabinet-letter .ison-sidebar__letter {
		margin-top: 0;
		margin-bottom: 0;
	}
}

/* IMG_6910: reproduce the heart icon from the reference and keep every
   recommended product card the same height, even when titles wrap differently. */
body.ison-cabinet-dashboard .ison-recommend .ison-goods {
	grid-auto-rows: 1fr;
	align-items: stretch;
}
body.ison-cabinet-dashboard .ison-recommend .ison-good {
	height: 100%;
	box-sizing: border-box;
	grid-template-rows: 120px minmax(34px, auto) auto;
	align-content: start;
}
body.ison-cabinet-dashboard .ison-good__wish {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid #e3e6ef;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #0c0c96;
}
body.ison-cabinet-dashboard .ison-good__wish svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
body.ison-cabinet-dashboard .ison-good__badge {
	position: absolute !important;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-width: calc(100% - 52px);
	padding: 3px 9px;
	border: 1px solid #20b968;
	border-radius: 6px;
	background: rgba(235, 250, 241, 0.96);
	line-height: 1.2;
	white-space: nowrap;
}
body.ison-cabinet-dashboard .ison-good__badge--new {
	border-color: #f2551b;
	background: rgba(255, 244, 239, 0.96);
	color: #d93d12;
}
body.ison-cabinet-dashboard .ison-good__badge--pro {
	border-color: #8b4bd6;
	background: rgba(248, 241, 255, 0.96);
	color: #7136ba;
}
body.ison-cabinet-dashboard .ison-recommend .ison-good__image {
	background: #fff;
}

/* Centre the copy and both buttons vertically against the wide artwork. */
@media (min-width: 700px) {
	body.ison-cabinet-dashboard .ison-promo {
		display: flex;
		align-items: center;
	}
	body.ison-cabinet-dashboard .ison-promo__text {
		margin-top: 0;
	}
}

/* Keep the right-hand artwork untouched. The reference uses two heading lines
   and three centred description lines on the left. */
body.ison-cabinet-dashboard .ison-side-banner {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	aspect-ratio: 1216 / 1293;
	padding: 53% 9% 7%;
	background-color: transparent;
	background-image: url('../img/side-banner-clean-20261005.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}
body.ison-cabinet-dashboard .ison-side-banner strong {
	display: block;
	max-width: 100%;
	font-size: 17px;
	line-height: 1.16;
	color: #0c0c96;
}
body.ison-cabinet-dashboard .ison-side-banner > span {
	display: block;
	max-width: 82%;
	margin-top: 4%;
	font-size: 13px;
	line-height: 1.28;
	text-align: center;
	color: #0c0c96;
}
body.ison-cabinet-dashboard .ison-side-banner > span .ison-side-banner__copy-line {
	display: block;
	max-width: none;
	margin-top: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
body.ison-cabinet-dashboard .ison-side-banner .ison-btn__arrow {
	display: inline;
	margin-left: 4px;
	color: #fb4515;
	font-weight: 700;
}

@media (max-width: 767px) {
	body.ison-cabinet .ison-program__hero--banner {
		display: block;
		aspect-ratio: auto;
		height: auto;
		overflow: visible;
		background: transparent !important;
	}
	body.ison-cabinet .ison-program__hero-copy {
		position: static;
		max-width: none;
		padding: 0 0 10px;
		transform: none;
	}
	body.ison-cabinet .ison-program__banner-img {
		position: static;
		width: 100%;
		height: auto;
		max-height: none;
		margin: 0;
		transform: none;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		display: none;
	}
	body.ison-cabinet .ison-program__banner-img--mobile {
		display: block;
	}

	/* The fixed navigation sits over the footer, so no 88px blue tail is needed. */
	body.ison-cabinet-dashboard .ison-content {
		padding-bottom: 16px;
	}

	/* Five counters must fit the available width without clipping the last one. */
	body.ison-cabinet .ison-orders .ison-stats {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 4px;
		overflow-x: visible;
	}
	body.ison-cabinet .ison-orders .ison-stat {
		padding-left: 1px;
		padding-right: 1px;
	}
}

@media (max-width: 359px) {
	body.ison-cabinet .ison-orders .ison-stats {
		gap: 2px;
	}
	body.ison-cabinet .ison-orders .ison-stat__label {
		font-size: 9px;
	}
}

/* Keep the current-status badge clear of the restored top of the crown. */
@media (min-width: 768px) {
	body.ison-cabinet .ison-program .ison-level.is-current .ison-level__crown {
		padding-top: 10px;
	}
}

/* Final programme banner sizing. The bitmap itself is 30% shorter (151px
   instead of 216px), so the reduction applies at every desktop CSS width,
   including high-DPI and zoomed browsers. */
@media (min-width: 768px) {
	body.ison-cabinet .ison-program__hero--banner {
		width: 100%;
		height: auto;
		max-height: none;
		aspect-ratio: 2172 / 151;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		object-fit: fill;
		object-position: center;
	}
}

/* Keep the complete camera group on phones while reducing its height by 30%. */
@media (max-width: 767px) {
	body.ison-cabinet .ison-program__banner-img--mobile {
		display: block;
		width: 70%;
		margin: 0 auto;
	}
}

/* A real ultrawide CSS viewport must not make the compact strip tall again. */
body.ison-cabinet .ison-program {
	container-type: inline-size;
}
@container (min-width: 1921px) {
	body.ison-cabinet .ison-program__hero--banner {
		width: 100%;
		height: 134px;
		aspect-ratio: auto;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		object-fit: contain;
		object-position: right center;
	}
}

/* Use one uninterrupted CSS background. The desktop image is now only the
   transparent camera cutout, so no bitmap edges can form horizontal bands. */
@media (min-width: 768px) {
	body.ison-cabinet .ison-program__banner-img--desktop {
		inset: auto 24px auto auto;
		top: 50%;
		width: auto;
		height: calc(100% - 8px);
		max-width: 38%;
		transform: translateY(-50%);
		object-fit: contain;
		object-position: center;
	}
}

/* Match the 3440px strip to the compact height seen at 1920px. */
@container (min-width: 1921px) {
	body.ison-cabinet .ison-program__hero--banner {
		height: 113px;
	}
}

/* v12: use the complete ISON product composition from the main banner.
   The copy and breadcrumbs remain live HTML; only the transparent product
   cutout is enlarged and shifted inward to match the approved reference. */
@media (min-width: 768px) {
	body.ison-cabinet .ison-program__hero--banner {
		height: 130px;
		min-height: 130px;
		aspect-ratio: auto;
		overflow: hidden;
	}
	body.ison-cabinet .ison-program__hero-copy {
		left: clamp(20px, 2.2vw, 44px);
		max-width: 49%;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		display: block;
		inset: auto clamp(24px, 10%, 260px) auto auto;
		top: 51%;
		width: auto;
		height: calc(100% - 4px);
		max-width: 50%;
		transform: translateY(-50%);
		object-fit: contain;
		object-position: center;
	}
	body.ison-cabinet .ison-program__banner-img--mobile {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	body.ison-cabinet .ison-program__hero--banner {
		height: 118px;
		min-height: 118px;
	}
	body.ison-cabinet .ison-program__hero-copy {
		max-width: 43%;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		right: 14px;
		height: calc(100% - 8px);
		max-width: 49%;
	}
}

@container (min-width: 1921px) {
	body.ison-cabinet .ison-program__hero--banner {
		height: 136px;
		min-height: 136px;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		right: clamp(140px, 9%, 280px);
		height: 132px;
		max-width: none;
	}
}

@media (max-width: 767px) {
	body.ison-cabinet .ison-program__hero--banner {
		display: block;
		height: 180px;
		min-height: 180px;
		padding: 12px 14px 0;
		box-sizing: border-box;
		overflow: hidden;
		background: linear-gradient(180deg, #e7f6fd, #ecf7fd 52%, #e9f5fd) !important;
	}
	body.ison-cabinet .ison-program__hero-copy {
		position: static;
		max-width: none;
		padding: 0;
		transform: none;
	}
	body.ison-cabinet .ison-program__hero-copy h1 {
		margin: 0 0 4px;
		font-size: 20px;
		line-height: 1.12;
	}
	body.ison-cabinet .ison-program__hero-copy p {
		margin: 0;
		font-size: 13px;
		line-height: 1.25;
	}
	body.ison-cabinet .ison-program__banner-img--desktop {
		display: none;
	}
	body.ison-cabinet .ison-program__banner-img--mobile {
		display: block;
		position: static;
		width: 100%;
		height: auto;
		max-width: none;
		margin: 5px 0 0;
		transform: none;
		object-fit: contain;
		object-position: center top;
	}
}
