.zdgb-builder {
	--zdgb-ink: #071024;
	--zdgb-muted: #626771;
	--zdgb-border: #e4e6ea;
	--zdgb-soft: #f7f7f8;
	--zdgb-white: #fff;
	--zdgb-success: #228657;
	--zdgb-shadow: 0 10px 35px rgba( 8, 15, 29, 0.08 );
	width: min( 100%, 1280px );
	margin: 0 auto;
	color: var( --zdgb-ink );
	font-family: inherit;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
}

.zdgb-builder,
.zdgb-builder * {
	box-sizing: border-box;
}

.zdgb-builder button,
.zdgb-builder input {
	font: inherit;
}

.zdgb-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1.06fr ) minmax( 430px, 0.94fr );
	gap: clamp( 24px, 4vw, 64px );
	align-items: start;
}

.zdgb-gallery-column {
	min-width: 0;
}

.zdgb-gallery {
	position: sticky;
	top: 18px;
	overflow: hidden;
	background: #fafafa;
	border: 1px solid var( --zdgb-border );
}

.zdgb-gallery-stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #fff;
	touch-action: pan-y;
	cursor: grab;
}

.zdgb-gallery-stage:active {
	cursor: grabbing;
}

.zdgb-gallery-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	opacity: 0;
	transform: scale( 1.012 );
	transition: opacity 420ms ease, transform 650ms cubic-bezier( 0.22, 1, 0.36, 1 );
	pointer-events: none;
}

.zdgb-gallery-image.is-active {
	z-index: 2;
	opacity: 1;
	transform: scale( 1 );
}

.zdgb-image-placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #b3b5ba;
	background: linear-gradient( 145deg, #fff, #f6f6f6 );
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.zdgb-image-placeholder.is-visible {
	z-index: 3;
	opacity: 1;
}

.zdgb-image-placeholder .zdgb-icon {
	width: 58px;
	height: 58px;
}

.zdgb-gallery-dots {
	position: absolute;
	z-index: 8;
	right: 50%;
	bottom: 94px;
	display: flex;
	gap: 8px;
	transform: translateX( 50% );
}

.zdgb-gallery-dots .zdgb-dot {
	position: relative;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.zdgb-gallery-dots .zdgb-dot::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	content: "";
	border-radius: 50%;
	background: rgba( 7, 16, 36, 0.14 );
	transform: translate( -50%, -50% );
	transition: transform 180ms ease, background-color 180ms ease;
}

.zdgb-gallery-dots .zdgb-dot:hover,
.zdgb-gallery-dots .zdgb-dot:focus {
	outline: 2px solid rgba( 7, 16, 36, 0.28 );
	outline-offset: 0;
}

.zdgb-gallery-dots .zdgb-dot:hover::before,
.zdgb-gallery-dots .zdgb-dot:focus::before,
	.zdgb-gallery-dots .zdgb-dot.is-active::before {
		background: var( --zdgb-ink );
		transform: translate( -50%, -50% ) scale( 1.12 );
	}

.zdgb-orientation-switch {
	position: absolute;
	z-index: 9;
	right: 50%;
	bottom: 22px;
	display: grid;
	grid-template-columns: repeat( 2, minmax( 130px, 1fr ) );
	width: min( 74%, 500px );
	padding: 6px;
	border: 1px solid rgba( 7, 16, 36, 0.08 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.86 );
	box-shadow: 0 7px 24px rgba( 8, 15, 29, 0.13 );
	backdrop-filter: blur( 16px );
	-webkit-backdrop-filter: blur( 16px );
	transform: translateX( 50% );
}

.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
	position: relative;
	display: flex;
	min-height: 55px;
	align-items: center;
	justify-content: center;
	gap: 13px;
	margin: 0;
	padding: 9px 18px;
	color: var( --zdgb-ink );
	font-size: 20px;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.zdgb-builder .zdgb-orientation-switch .zdgb-choice.is-active {
	border-color: rgba( 7, 16, 36, 0.12 );
	background: #fff;
	box-shadow: 0 4px 14px rgba( 8, 15, 29, 0.12 );
}

.zdgb-builder .zdgb-orientation-switch .zdgb-choice.is-unavailable {
	color: #a8abb1;
	background: rgba( 240, 240, 240, 0.55 );
	cursor: not-allowed;
	opacity: 0.62;
}

.zdgb-direction-arrow {
	font-size: 26px;
	line-height: 1;
}

.zdgb-config-column {
	min-width: 0;
}

.zdgb-form {
	display: block !important;
	width: 100% !important;
	margin: 0;
	padding: 2px 0 0;
}

.zdgb-step {
	margin: 0 0 19px;
}

.zdgb-step h3 {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 4px;
	margin: 0 0 10px;
	color: var( --zdgb-ink );
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.zdgb-step h3 span {
	font-variant-numeric: tabular-nums;
}

.zdgb-step h3 small {
	font-size: 0.9em;
	font-weight: 600;
}

.zdgb-shape-grid,
.zdgb-options-grid {
	display: grid;
	gap: 8px;
}

.zdgb-shape-grid {
	grid-template-columns: repeat( 7, minmax( 0, 1fr ) );
}

.zdgb-size-grid {
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
}

.zdgb-gold-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.zdgb-length-grid {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
}

.zdgb-certificate-grid {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	width: 80%;
	margin-inline: auto;
}

.zdgb-builder .zdgb-choice {
	position: relative;
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px;
	color: #111;
	border: 1px solid var( --zdgb-border );
	border-radius: 10px;
	outline: 0;
	background: #fff;
	box-shadow: none;
	font-weight: 500;
	line-height: 1.1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.zdgb-builder .zdgb-choice:hover {
	border-color: #a8abb2;
}

.zdgb-builder .zdgb-choice:focus-visible {
	border-color: var( --zdgb-ink );
	box-shadow: 0 0 0 3px rgba( 7, 16, 36, 0.12 );
}

.zdgb-builder .zdgb-choice.is-active {
	z-index: 1;
	border-color: var( --zdgb-ink );
	box-shadow: inset 0 0 0 1px var( --zdgb-ink );
}

.zdgb-builder .zdgb-choice.is-unavailable {
	color: #9ca0a8;
	background: #f5f5f6;
	cursor: not-allowed;
	opacity: 0.58;
}

.zdgb-builder .zdgb-choice:active:not( :disabled ) {
	transform: scale( 0.975 );
}

.zdgb-choice-shape {
	flex-direction: column;
	min-height: 98px;
	gap: 5px;
	padding: 7px 4px 9px !important;
	font-size: 13px;
}

.zdgb-shape-visual,
.zdgb-shape-icon,
.zdgb-shape-image {
	width: 44px;
	height: 48px;
	object-fit: contain;
	overflow: visible;
}

.zdgb-shape-visual {
	position: relative;
	display: block;
	flex: 0 0 auto;
}

.zdgb-shape-visual .zdgb-shape-icon,
.zdgb-shape-visual .zdgb-shape-image {
	width: 100%;
	height: 100%;
}

.zdgb-shape-icon {
	stroke: #74777d;
	stroke-width: 1.15;
	filter: drop-shadow( 0 2px 2px rgba( 0, 0, 0, 0.08 ) );
}

.zdgb-shape-image {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
	pointer-events: none;
	filter: drop-shadow( 0 2px 2px rgba( 0, 0, 0, 0.06 ) );
}

.zdgb-shape-image[hidden] {
	display: none !important;
}

.zdgb-shape-visual.is-custom-loaded .zdgb-shape-icon {
	visibility: hidden;
}

.zdgb-choice-shape.is-active .zdgb-shape-icon {
	stroke: #25282e;
}

.zdgb-choice-size,
.zdgb-choice-length {
	min-height: 52px;
	font-size: 17px;
	font-variant-numeric: tabular-nums;
}

.zdgb-choice-gold {
	min-height: 55px;
	gap: 12px;
	font-size: 14px;
}

.zdgb-gold-swatch {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 50%;
	box-shadow: inset -3px -4px 7px rgba( 0, 0, 0, 0.17 ), inset 3px 3px 7px rgba( 255, 255, 255, 0.55 );
}

.zdgb-gold-yellow-gold {
	background: linear-gradient( 145deg, #f7dc7a, #b98820 );
}

.zdgb-gold-white-gold {
	background: linear-gradient( 145deg, #f2f3f4, #a9adb3 );
}

.zdgb-gold-rose-gold {
	background: linear-gradient( 145deg, #f3bca2, #b66548 );
}

.zdgb-choice-certificate {
	min-height: 72px;
	flex-direction: column;
	gap: 5px;
	font-size: 20px;
	font-weight: 700 !important;
}

.zdgb-choice-certificate .zdgb-choice-label {
	order: 1;
}

.zdgb-choice-certificate small {
	order: 2;
	color: var( --zdgb-muted );
	font-size: 12px;
	font-weight: 500;
}

.zdgb-selected-check {
	position: absolute;
	top: 5px;
	left: 5px;
	display: grid;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 50%;
	background: var( --zdgb-ink );
	font-size: 11px;
	line-height: 1;
	opacity: 0;
	transform: scale( 0.6 );
	transition: opacity 160ms ease, transform 180ms cubic-bezier( 0.22, 1, 0.36, 1 );
}

.zdgb-choice.is-active .zdgb-selected-check {
	opacity: 1;
	transform: scale( 1 );
}

.zdgb-orientation-switch .zdgb-selected-check,
.zdgb-choice-shape .zdgb-selected-check,
.zdgb-choice-size .zdgb-selected-check,
.zdgb-choice-length .zdgb-selected-check,
.zdgb-choice-gold .zdgb-selected-check {
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
}

.zdgb-product-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 10px 0 0;
	color: var( --zdgb-muted );
	font-size: 12px;
	text-align: center;
}

.zdgb-product-note .zdgb-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.zdgb-summary {
	padding: 17px;
	border: 1px solid var( --zdgb-border );
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 5px 20px rgba( 7, 16, 36, 0.035 );
}

.zdgb-summary-row {
	display: grid;
	grid-template-columns: minmax( 0, 0.95fr ) 1px minmax( 0, 1.05fr );
	gap: 17px;
	align-items: stretch;
}

.zdgb-summary-row::before {
	grid-column: 2;
	grid-row: 1;
	content: "";
	background: var( --zdgb-border );
}

.zdgb-price-panel {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	text-align: center;
}

.zdgb-size-reference {
	grid-column: 3;
	grid-row: 1;
	min-width: 0;
}

.zdgb-summary-label {
	display: block;
	margin: 0 0 6px;
	color: var( --zdgb-ink );
	font-size: 13px;
	font-weight: 700;
}

.zdgb-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 7px;
	color: var( --zdgb-ink );
	font-size: clamp( 30px, 4vw, 47px );
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
	white-space: nowrap;
	direction: ltr;
	font-variant-numeric: tabular-nums;
	transform-origin: center;
}

.zdgb-price-symbol {
	font-size: 0.42em;
	font-weight: 600;
	vertical-align: 0.25em;
}

.zdgb-price.is-updating {
	animation: zdgb-price-update 520ms cubic-bezier( 0.22, 1, 0.36, 1 );
}

@keyframes zdgb-price-update {
	0% {
		color: var( --zdgb-ink );
		transform: scale( 1 );
	}
	42% {
		color: var( --zdgb-success );
		transform: scale( 1.075 );
	}
	100% {
		color: var( --zdgb-ink );
		transform: scale( 1 );
	}
}

.zdgb-price-panel > small {
	margin-top: 7px;
	color: var( --zdgb-muted );
	font-size: 11px;
}

.zdgb-reference-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 78px;
}

.zdgb-reference-content > img,
.zdgb-reference-fallback {
	width: 92px;
	height: 72px;
	flex: 0 0 92px;
	object-fit: contain;
}

.zdgb-reference-content > [hidden] {
	display: none !important;
}

.zdgb-reference-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 90deg, #eee 49.4%, #ddd 49.5%, #ddd 50.5%, #eee 50.6% );
}

.zdgb-reference-fallback .zdgb-shape-icon {
	width: 48px;
	height: 55px;
	padding: 5px;
	background: #fff;
}

.zdgb-reference-content p {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
	font-size: 11px;
}

.zdgb-reference-content p strong {
	font-size: 12px;
}

.zdgb-reference-content p span:empty {
	min-height: 0;
}

.zdgb-inline-error {
	min-height: 18px;
	margin: 7px 0 0;
	color: #b3261e;
	font-size: 11px;
	text-align: center;
}

.zdgb-builder .zdgb-add-button {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 61px;
	align-items: center;
	justify-content: center;
	gap: 13px;
	margin: 0;
	padding: 13px 24px;
	color: #fff;
	border: 1px solid var( --zdgb-ink );
	border-radius: 7px;
	background: var( --zdgb-ink );
	box-shadow: none;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 180ms ease, transform 160ms ease, opacity 180ms ease;
}

.zdgb-builder .zdgb-add-button:hover,
.zdgb-builder .zdgb-add-button:focus {
	color: #fff;
	background: #111b31;
}

.zdgb-builder .zdgb-add-button:active:not( :disabled ) {
	transform: translateY( 1px ) scale( 0.994 );
}

.zdgb-builder .zdgb-add-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.zdgb-builder .zdgb-add-button .zdgb-icon {
	width: 25px;
	height: 25px;
}

.zdgb-add-button.is-loading .zdgb-icon {
	animation: zdgb-bag-pulse 700ms ease-in-out infinite alternate;
}

.zdgb-add-button.is-added {
	background: #164f36;
	border-color: #164f36;
}

@keyframes zdgb-bag-pulse {
	to {
		opacity: 0.42;
		transform: translateY( -2px );
	}
}

.zdgb-features {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	margin-top: 2px;
	border: 1px solid var( --zdgb-border );
	border-top: 0;
	border-radius: 0 0 11px 11px;
	background: #fff;
}

.zdgb-feature {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 17px 7px 14px;
	text-align: center;
}

.zdgb-feature + .zdgb-feature {
	border-inline-start: 1px solid var( --zdgb-border );
}

.zdgb-feature .zdgb-icon {
	width: 30px;
	height: 30px;
	margin-bottom: 9px;
}

.zdgb-feature strong {
	color: var( --zdgb-ink );
	font-size: 11px;
	line-height: 1.2;
}

.zdgb-feature span {
	margin-top: 5px;
	color: var( --zdgb-muted );
	font-size: 9.5px;
	line-height: 1.25;
}

.zdgb-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 11px 0 0;
	color: var( --zdgb-muted );
	font-size: 11px;
	text-align: center;
}

.zdgb-secure-note .zdgb-icon {
	width: 14px;
	height: 14px;
}

.zdgb-icon {
	display: inline-block;
	overflow: visible;
}

@media ( max-width: 980px ) {
	.zdgb-layout {
		grid-template-columns: minmax( 0, 0.95fr ) minmax( 390px, 1.05fr );
		gap: 22px;
	}

	.zdgb-choice-shape {
		min-height: 87px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 36px;
		height: 40px;
	}

	.zdgb-certificate-grid {
		width: 100%;
	}
}

@media ( max-width: 767px ) {
	.zdgb-builder {
		width: 100%;
		max-width: 520px;
	}

	.zdgb-layout {
		display: block;
	}

	.zdgb-gallery-column {
		width: 100vw;
		margin-inline: calc( 50% - 50vw );
	}

	.zdgb-gallery {
		position: relative;
		top: auto;
		border-right: 0;
		border-left: 0;
	}

	.zdgb-gallery-stage {
		height: clamp( 255px, 61vw, 360px );
		aspect-ratio: auto;
	}

	.zdgb-gallery-image {
		object-fit: cover;
		object-position: center 60%;
	}

	.zdgb-gallery-dots {
		bottom: 79px;
		gap: 7px;
	}

	.zdgb-gallery-dots .zdgb-dot {
		width: 26px;
		height: 26px;
		min-width: 26px;
		min-height: 26px;
	}

	.zdgb-gallery-dots .zdgb-dot::before {
		width: 8px;
		height: 8px;
	}

	.zdgb-orientation-switch {
		bottom: 13px;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		width: min( calc( 100% - 58px ), 430px );
		padding: 4px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 51px;
		gap: 9px;
		padding: 7px 12px;
		font-size: 18px;
	}

	.zdgb-direction-arrow {
		font-size: 23px;
	}

	.zdgb-config-column {
		padding: 16px 13px 0;
	}

	.zdgb-step {
		margin-bottom: 14px;
	}

	.zdgb-step h3 {
		margin-bottom: 8px;
		font-size: 13px;
	}

	.zdgb-shape-grid,
	.zdgb-options-grid {
		gap: 5px;
	}

	.zdgb-choice-shape {
		min-height: 75px;
		gap: 3px;
		padding: 5px 1px 7px !important;
		border-radius: 7px !important;
		font-size: 10px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 31px;
		height: 38px;
		stroke-width: 1.2;
	}

	.zdgb-builder .zdgb-choice {
		border-radius: 7px;
	}

	.zdgb-choice-size,
	.zdgb-choice-length {
		min-height: 43px;
		padding: 7px;
		font-size: 15px;
	}

	.zdgb-choice-gold {
		min-height: 49px;
		gap: 7px;
		padding: 7px;
		font-size: 12px;
	}

	.zdgb-gold-swatch {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.zdgb-choice-certificate {
		min-height: 66px;
		padding: 7px;
		font-size: 17px;
	}

	.zdgb-choice-certificate small {
		font-size: 10px;
	}

	.zdgb-certificate-grid {
		width: 82%;
	}

	.zdgb-product-note {
		gap: 5px;
		margin-top: 8px;
		font-size: 10px;
	}

	.zdgb-product-note .zdgb-icon {
		width: 15px;
		height: 15px;
		flex-basis: 15px;
	}

	.zdgb-summary {
		padding: 13px;
		border-radius: 9px;
	}

	.zdgb-summary-row {
		grid-template-columns: minmax( 0, 0.93fr ) 1px minmax( 0, 1.07fr );
		gap: 10px;
	}

	.zdgb-summary-label {
		margin-bottom: 4px;
		font-size: 11px;
	}

	.zdgb-price {
		font-size: clamp( 29px, 10vw, 41px );
	}

	.zdgb-price-panel > small {
		margin-top: 5px;
		font-size: 10px;
	}

	.zdgb-reference-content {
		gap: 6px;
		min-height: 65px;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 74px;
		height: 59px;
		flex-basis: 74px;
	}

	.zdgb-reference-fallback .zdgb-shape-icon {
		width: 42px;
		height: 48px;
	}

	.zdgb-reference-content p {
		gap: 2px;
		font-size: 9.5px;
	}

	.zdgb-reference-content p strong {
		font-size: 10px;
	}

	.zdgb-inline-error {
		min-height: 15px;
		margin-top: 5px;
		font-size: 10px;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 55px;
		padding: 11px 18px;
		border-radius: 6px;
		font-size: 18px;
	}

	.zdgb-builder .zdgb-add-button .zdgb-icon {
		width: 23px;
		height: 23px;
	}

	.zdgb-feature {
		padding: 13px 3px 11px;
	}

	.zdgb-feature .zdgb-icon {
		width: 25px;
		height: 25px;
		margin-bottom: 7px;
	}

	.zdgb-feature strong {
		font-size: 10px;
	}

	.zdgb-feature span {
		margin-top: 4px;
		font-size: 10px;
	}

	.zdgb-secure-note {
		margin-top: 9px;
		font-size: 10px;
	}
}

@media ( min-width: 768px ) {
@container ( max-width: 767px ) {
	.zdgb-layout {
		display: block;
	}

	.zdgb-gallery {
		position: relative;
		top: auto;
	}

	.zdgb-gallery-stage {
		height: clamp( 255px, 61cqi, 360px );
		aspect-ratio: auto;
	}

	.zdgb-orientation-switch {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		width: min( calc( 100% - 24px ), 430px );
		padding: 4px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 48px;
		padding-inline: 8px;
		font-size: 17px;
	}

	.zdgb-config-column {
		padding: 16px 13px 0;
	}

	.zdgb-shape-grid,
	.zdgb-options-grid {
		gap: 5px;
	}

	.zdgb-choice-shape {
		min-height: 72px;
		padding-inline: 2px !important;
		font-size: 10px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 31px;
		height: 37px;
	}

	.zdgb-certificate-grid {
		width: 82%;
	}

	.zdgb-summary {
		padding: 13px;
	}

	.zdgb-summary-row {
		grid-template-columns: minmax( 0, 0.93fr ) 1px minmax( 0, 1.07fr );
		gap: 10px;
	}

	.zdgb-summary-label {
		font-size: 11px;
	}

	.zdgb-price {
		font-size: clamp( 27px, 10cqi, 39px );
	}

	.zdgb-reference-content {
		gap: 6px;
		min-height: 65px;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 70px;
		height: 58px;
		flex-basis: 70px;
	}

	.zdgb-reference-content p {
		gap: 2px;
		font-size: 9.5px;
	}

	.zdgb-reference-content p strong {
		font-size: 10px;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 54px;
		font-size: 18px;
	}

	.zdgb-feature {
		padding-inline: 3px;
	}

	.zdgb-feature strong,
	.zdgb-feature span {
		font-size: 10px;
	}
}
}

@media ( max-width: 430px ) and ( min-height: 780px ) {
	.zdgb-gallery-stage {
		height: 205px;
	}

	.zdgb-gallery-dots {
		bottom: 65px;
	}

	.zdgb-orientation-switch {
		bottom: 8px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 42px;
		font-size: 15px;
	}

	.zdgb-direction-arrow {
		font-size: 20px;
	}

	.zdgb-config-column {
		padding: 8px 10px 0;
	}

	.zdgb-step {
		margin-bottom: 8px;
	}

	.zdgb-step h3 {
		margin-bottom: 4px;
		font-size: 12px;
	}

	.zdgb-choice-shape {
		min-height: 58px;
		font-size: 9.5px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 25px;
		height: 29px;
	}

	.zdgb-choice-size,
	.zdgb-choice-length {
		min-height: 35px;
		font-size: 13px;
	}

	.zdgb-choice-gold {
		min-height: 39px;
		font-size: 11px;
	}

	.zdgb-choice-certificate {
		min-height: 50px;
		font-size: 15px;
	}

	.zdgb-product-note {
		margin-top: 4px;
		font-size: 10px;
	}

	.zdgb-summary {
		padding: 8px;
	}

	.zdgb-reference-content {
		min-height: 52px;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 62px;
		height: 50px;
		flex-basis: 62px;
	}

	.zdgb-price {
		font-size: 29px;
	}

	.zdgb-inline-error {
		min-height: 11px;
		margin-top: 2px;
		font-size: 10px;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 45px;
		font-size: 16px;
	}

	.zdgb-feature {
		padding: 8px 3px 7px;
	}

	.zdgb-feature .zdgb-icon {
		width: 21px;
		height: 21px;
		margin-bottom: 4px;
	}

	.zdgb-feature strong,
	.zdgb-feature span {
		font-size: 10px;
	}

	.zdgb-secure-note {
		margin-top: 5px;
		font-size: 10px;
	}
}

@media ( max-width: 430px ) and ( min-height: 780px ) and ( max-height: 879px ) {
	.zdgb-gallery-stage {
		height: 164px;
	}

	.zdgb-gallery-dots {
		bottom: 46px;
	}

	.zdgb-orientation-switch {
		bottom: 6px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 39px;
	}

	.zdgb-config-column {
		padding-top: 6px;
	}

	.zdgb-step {
		margin-bottom: 6px;
	}

	.zdgb-choice-shape {
		min-height: 54px;
	}

	.zdgb-choice-size,
	.zdgb-choice-length {
		min-height: 32px;
	}

	.zdgb-choice-gold {
		min-height: 36px;
	}

	.zdgb-choice-certificate {
		min-height: 47px;
	}

	.zdgb-summary {
		padding: 7px;
	}

	.zdgb-reference-content {
		min-height: 48px;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 42px;
	}

	.zdgb-feature {
		padding-block: 6px;
	}
}

@media ( max-width: 370px ) {
	.zdgb-config-column {
		padding-inline: 9px;
	}

	.zdgb-choice-shape {
		min-height: 58px;
		font-size: 9.5px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 25px;
		height: 29px;
	}

	.zdgb-choice-gold {
		gap: 4px;
		font-size: 10.5px;
	}

	.zdgb-certificate-grid {
		width: 90%;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 61px;
		flex-basis: 61px;
	}
}

@media ( max-width: 370px ) and ( min-height: 720px ) and ( max-height: 849px ) {
	.zdgb-gallery-stage {
		height: 135px;
	}

	.zdgb-gallery-dots {
		bottom: 39px;
	}

	.zdgb-orientation-switch {
		bottom: 4px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 36px;
		font-size: 14px;
	}

	.zdgb-config-column {
		padding-top: 4px;
	}

	.zdgb-step {
		margin-bottom: 3px;
	}

	.zdgb-step h3 {
		margin-bottom: 3px;
	}

	.zdgb-choice-shape {
		min-height: 50px;
	}

	.zdgb-choice-size,
	.zdgb-choice-length {
		min-height: 30px;
	}

	.zdgb-choice-gold {
		min-height: 33px;
	}

	.zdgb-choice-certificate {
		min-height: 44px;
	}

	.zdgb-product-note {
		margin-top: 2px;
		font-size: 9.5px;
	}

	.zdgb-summary {
		padding: 5px;
	}

	.zdgb-reference-content {
		min-height: 44px;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 55px;
		height: 44px;
		flex-basis: 55px;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 39px;
	}

	.zdgb-feature {
		padding-block: 3px;
	}

	.zdgb-feature .zdgb-icon {
		width: 18px;
		height: 18px;
		margin-bottom: 3px;
	}

	.zdgb-feature strong,
	.zdgb-feature span {
		font-size: 9.5px;
	}

	.zdgb-secure-note {
		margin-top: 3px;
		font-size: 9.5px;
	}
}

/*
 * Short phones (for example 375 × 667): keep every configurator control
 * visible while leaving room for the site's own mobile header.
 */
@media ( max-width: 430px ) and ( max-height: 779px ) {
	.zdgb-gallery-stage {
		height: 104px;
	}

	.zdgb-gallery-dots {
		bottom: 33px;
		gap: 4px;
	}

	.zdgb-gallery-dots .zdgb-dot {
		width: 20px;
		height: 20px;
		min-width: 20px;
		min-height: 20px;
	}

	.zdgb-gallery-dots .zdgb-dot::before {
		width: 6px;
		height: 6px;
	}

	.zdgb-orientation-switch {
		bottom: 2px;
		width: min( calc( 100% - 30px ), 400px );
		padding: 3px;
	}

	.zdgb-builder .zdgb-orientation-switch .zdgb-choice {
		min-height: 30px;
		gap: 5px;
		padding: 3px 8px;
		font-size: 12.5px;
	}

	.zdgb-direction-arrow {
		font-size: 17px;
	}

	.zdgb-config-column {
		padding: 3px 8px 0;
	}

	.zdgb-step {
		margin-bottom: 2px;
	}

	.zdgb-step h3 {
		margin-bottom: 2px;
		font-size: 10.5px;
	}

	.zdgb-shape-grid,
	.zdgb-options-grid {
		gap: 3px;
	}

	.zdgb-choice-shape {
		min-height: 42px;
		gap: 1px;
		padding-block: 2px !important;
		font-size: 9px;
	}

	.zdgb-shape-visual,
	.zdgb-shape-icon,
	.zdgb-shape-image {
		width: 19px;
		height: 22px;
	}

	.zdgb-choice-size,
	.zdgb-choice-length {
		min-height: 26px;
		padding: 3px;
		font-size: 11px;
	}

	.zdgb-choice-gold {
		min-height: 29px;
		gap: 4px;
		padding: 3px;
		font-size: 10px;
	}

	.zdgb-gold-swatch {
		width: 15px;
		height: 15px;
		flex-basis: 15px;
	}

	.zdgb-certificate-grid {
		width: 86%;
	}

	.zdgb-choice-certificate {
		min-height: 38px;
		padding: 3px;
		font-size: 13px;
	}

	.zdgb-choice-certificate small {
		font-size: 8.5px;
	}

	.zdgb-product-note {
		gap: 3px;
		margin-top: 1px;
		font-size: 9px;
		line-height: 1.15;
	}

	.zdgb-product-note .zdgb-icon {
		width: 12px;
		height: 12px;
		flex-basis: 12px;
	}

	.zdgb-summary {
		padding: 4px;
	}

	.zdgb-summary-row {
		gap: 5px;
	}

	.zdgb-summary-label {
		margin-bottom: 1px;
		font-size: 9px;
	}

	.zdgb-price {
		font-size: 24px;
	}

	.zdgb-price-panel > small {
		margin-top: 1px;
		font-size: 9px;
	}

	.zdgb-reference-content {
		gap: 4px;
		min-height: 40px;
	}

	.zdgb-reference-content > img,
	.zdgb-reference-fallback {
		width: 48px;
		height: 38px;
		flex-basis: 48px;
	}

	.zdgb-reference-content p,
	.zdgb-reference-content p strong {
		gap: 1px;
		font-size: 9px;
	}

	.zdgb-reference-fallback .zdgb-shape-icon {
		width: 26px;
		height: 30px;
	}

	.zdgb-inline-error {
		min-height: 5px;
		margin-top: 0;
		font-size: 8.5px;
		line-height: 1;
	}

	.zdgb-builder .zdgb-add-button {
		min-height: 34px;
		padding: 5px 12px;
		font-size: 14px;
	}

	.zdgb-builder .zdgb-add-button .zdgb-icon {
		width: 18px;
		height: 18px;
	}

	.zdgb-feature {
		padding: 3px 2px;
	}

	.zdgb-feature .zdgb-icon {
		width: 16px;
		height: 16px;
		margin-bottom: 1px;
	}

	.zdgb-feature strong,
	.zdgb-feature span {
		font-size: 9px;
		line-height: 1.15;
	}

	.zdgb-feature span {
		margin-top: 1px;
	}

	.zdgb-secure-note {
		gap: 4px;
		margin-top: 2px;
		font-size: 9px;
	}

	.zdgb-secure-note .zdgb-icon {
		width: 12px;
		height: 12px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.zdgb-builder *,
	.zdgb-builder *::before,
	.zdgb-builder *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
