.cxg-gallery {
  --cxg-ink: #17211d;
  --cxg-muted: #68736d;
  --cxg-line: #d9dfdb;
  --cxg-accent: #c76a3b;
  --cxg-surface: #ffffff;
  --cxg-on-primary: #ffffff;
  --cxg-canvas: #eef0ed;
  --cxg-background-image: none;
  --cxg-mobile-viewer-height: 50dvh;
	--cxg-desktop-stage-share: 1.1fr;
	--cxg-desktop-panel-share: .9fr;
	--cxg-tablet-stage-share: 1.1fr;
	--cxg-tablet-panel-share: .9fr;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--cxg-desktop-stage-share)) minmax(280px, var(--cxg-desktop-panel-share));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--cxg-line);
  border-radius: 24px;
  background: var(--cxg-surface);
  color: var(--cxg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 24px 70px rgba(23, 33, 29, 0.1);
}

.cxg-gallery[data-desktop-viewer-size="compact"] {
	--cxg-desktop-stage-share: .9fr;
	--cxg-desktop-panel-share: 1.1fr;
}

.cxg-gallery[data-desktop-viewer-size="large"] {
	--cxg-desktop-stage-share: 1.35fr;
	--cxg-desktop-panel-share: .65fr;
}

@media (min-width: 701px) {
	.cxg-gallery[data-desktop-panel-position="left"] .cxg-gallery__stage {
		order: 2;
	}

	.cxg-gallery[data-desktop-panel-position="left"] .cxg-gallery__controls {
		order: 1;
	}
}

.cxg-gallery[data-mobile-viewer-size="compact"] {
  --cxg-mobile-viewer-height: 42dvh;
}

.cxg-gallery[data-mobile-viewer-size="large"] {
  --cxg-mobile-viewer-height: 60dvh;
}

.cxg-gallery[data-display-mode="wide"] {
  left: 50%;
  width: min(1440px, calc(100vw - 32px));
  max-width: none;
  transform: translateX(-50%);
}

.cxg-gallery__focus-toggle {
  position: absolute;
  z-index: 12;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 33, 29, 0.18);
  border: 1px solid color-mix(in srgb, var(--cxg-ink) 18%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  background: color-mix(in srgb, var(--cxg-surface) 92%, transparent);
  color: var(--cxg-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.12);
  backdrop-filter: blur(12px);
}

.cxg-gallery__focus-toggle span {
  font-size: 18px;
  line-height: 1;
}

.cxg-gallery__focus-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cxg-accent) 42%, transparent);
  outline-offset: 3px;
}

.cxg-gallery__focus-toggle ~ .cxg-gallery__controls {
  padding-top: 72px;
}

body.cxg-gallery-focus-open {
  overflow: hidden !important;
}

body.cxg-gallery-page-hide-header #header,
body.cxg-gallery-page-hide-header #masthead,
body.cxg-gallery-page-hide-header .site-header,
body.cxg-gallery-page-hide-header header.ct-header,
body.cxg-gallery-page-hide-header .wp-site-blocks > header {
  display: none !important;
}

body.cxg-gallery-page-hide-footer #footer,
body.cxg-gallery-page-hide-footer #colophon,
body.cxg-gallery-page-hide-footer .site-footer,
body.cxg-gallery-page-hide-footer footer.ct-footer,
body.cxg-gallery-page-hide-footer .wp-site-blocks > footer {
  display: none !important;
}

.cxg-gallery[data-focus-active="true"] {
  position: fixed !important;
  z-index: 2147483000;
  inset: 0 !important;
  left: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.cxg-gallery[data-focus-active="true"] .cxg-gallery__stage,
.cxg-gallery[data-focus-active="true"] .cxg-gallery__viewer {
  height: 100dvh;
  min-height: 100dvh;
}

.cxg-gallery[data-focus-active="true"] .cxg-gallery__controls {
  max-height: 100dvh;
}

.cxg-gallery *,
.cxg-gallery *::before,
.cxg-gallery *::after {
  box-sizing: border-box;
}

.cxg-gallery [hidden] {
  display: none !important;
}

.cxg-gallery .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cxg-gallery[data-ui-shadows="false"],
.cxg-gallery[data-ui-shadows="false"] * {
  box-shadow: none !important;
  text-shadow: none !important;
}

.cxg-gallery__stage {
  position: relative;
  min-height: 680px;
  background-image:
    linear-gradient(rgba(247, 244, 238, 0.16), rgba(238, 240, 237, 0.16)),
    var(--cxg-background-image),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92) 0 22%, transparent 62%),
    linear-gradient(145deg, #f7f4ee, var(--cxg-canvas));
  background-position: center;
  background-size: cover;
}

.cxg-gallery__stage-brand {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 20px;
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 48%;
}

.cxg-gallery__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border: 1px solid color-mix(in srgb, var(--cxg-ink) 16%, transparent);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--cxg-surface) 90%, transparent);
  color: var(--cxg-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(23, 33, 29, 0.1);
  backdrop-filter: blur(12px);
}

.cxg-gallery__back span {
  font-size: 17px;
  line-height: 1;
}

.cxg-gallery__back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cxg-accent) 42%, transparent);
  outline-offset: 3px;
}

.cxg-gallery__stage-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: auto;
  max-height: 62px;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
  object-position: left center;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.1);
  backdrop-filter: blur(12px);
}

.cxg-gallery__stage:has(.cxg-gallery__stage-brand) .cxg-gallery__badge {
  top: auto;
  bottom: 20px;
}

.cxg-gallery__viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  background: transparent;
  touch-action: pan-y;
	transition: opacity 180ms ease;
}

.cxg-gallery__family-fallback {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 680px;
  padding: 92px 42px 58px;
  place-items: center;
}

.cxg-gallery__family-fallback-art {
  display: grid;
  width: min(64%, 620px);
  max-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.2);
  background: #fff;
  box-shadow: 0 20px 46px rgba(23, 33, 29, 0.17);
}

.cxg-gallery[data-model-shadow="false"] .cxg-gallery__family-fallback-art {
  box-shadow: none;
}

.cxg-gallery__family-fallback-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cxg-gallery__family-fallback > span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 2px;
  max-width: min(310px, calc(100% - 40px));
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cxg-ink);
  backdrop-filter: blur(12px);
}

.cxg-gallery__family-fallback > span strong {
  font-size: 12px;
}

.cxg-gallery__family-fallback > span small {
  color: var(--cxg-muted);
  font-size: 10px;
  line-height: 1.35;
}

.cxg-gallery__back-hotspot {
	display: grid;
	gap: 6px;
	width: 150px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 14px;
	background: rgba(22, 27, 31, 0.94);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	color: #fff;
	text-align: center;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.cxg-gallery__back-hotspot[hidden],
.cxg-gallery__back-hotspot:not([data-visible]) {
	display: none;
}

.cxg-gallery__back-hotspot img {
	display: block;
	width: 100%;
	aspect-ratio: 1.65 / 1;
	object-fit: contain;
	border-radius: 9px;
	background: #303438;
}

.cxg-gallery__back-hotspot strong {
	font-size: 13px;
	line-height: 1.25;
}

.cxg-gallery[data-selection-ready="false"] .cxg-gallery__viewer {
	opacity: 0.38;
}

.cxg-gallery__badge {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 33, 29, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--cxg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.cxg-gallery__ar-support {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 3px;
  width: min(260px, calc(100% - 40px));
  padding: 10px 12px;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cxg-ink);
  box-shadow: 0 8px 26px rgba(23, 33, 29, 0.1);
  backdrop-filter: blur(12px);
}

.cxg-gallery__ar-support strong {
  font-size: 12px;
}

.cxg-gallery__ar-support span {
  color: var(--cxg-muted);
  font-size: 10px;
  line-height: 1.4;
}

.cxg-gallery__ar-help {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cxg-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(23, 33, 29, 0.1);
}

.cxg-gallery__ar-help span[aria-hidden="true"] {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-left: 3px;
  place-items: center;
  border-radius: 50%;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
}

.cxg-gallery__ar-support[data-state="ready"],
.cxg-gallery__ar-support[data-state="placed"] {
  border-color: rgba(27, 122, 80, 0.35);
}

.cxg-gallery__ar-support[data-state="error"] {
  border-color: rgba(180, 35, 24, 0.38);
  background: rgba(255, 243, 241, 0.96);
}

.cxg-gallery__ar-support[data-state="warning"] {
  border-color: rgba(188, 122, 10, 0.4);
  background: rgba(255, 249, 236, 0.96);
}

.cxg-gallery__ar-button {
  position: absolute;
  right: 20px;
  bottom: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
  min-width: 190px;
  max-width: calc(100% - 40px);
  padding: 11px 14px;
  border: 1px solid var(--cxg-ink);
  border-radius: 13px;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 30px rgba(16, 24, 20, 0.24);
  cursor: pointer;
}

.cxg-gallery__ar-button > span {
  grid-row: 1 / 3;
  font-size: 22px;
}

.cxg-gallery__ar-button strong,
.cxg-gallery__ar-button small {
  display: block;
}

.cxg-gallery__ar-button strong {
  font-size: 13px;
}

.cxg-gallery__ar-button small {
  overflow-wrap: anywhere;
  color: var(--cxg-on-primary);
  opacity: 0.72;
  font-size: 9px;
  line-height: 1.3;
}

.cxg-gallery__ar-button:focus-visible {
  outline: 3px solid rgba(199, 106, 59, 0.5);
  outline-offset: 3px;
}

.cxg-gallery__ar-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cxg-gallery__viewer-actions {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  right: 20px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cxg-gallery__view-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 29, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(23, 33, 29, 0.12);
  backdrop-filter: blur(12px);
}

.cxg-gallery__view-switch button,
.cxg-gallery__ar-launch {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cxg-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.cxg-gallery__view-switch button[aria-pressed="true"] {
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
}

.cxg-gallery__view-switch button[aria-pressed="false"] strong {
  font-weight: 650;
}

.cxg-gallery__ar-launch {
  border: 1px solid var(--cxg-ink);
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.18);
  font-weight: 800;
}

.cxg-gallery__ar-launch[hidden] {
  display: none;
}

.cxg-gallery__ar-launch:disabled {
  cursor: wait;
  opacity: 0.58;
}

.cxg-gallery__view-switch button:focus-visible,
.cxg-gallery__ar-launch:focus-visible,
.cxg-gallery__ar-dialog button:focus-visible,
.cxg-gallery__ar-dialog a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cxg-accent) 55%, transparent);
  outline-offset: 2px;
}

.cxg-gallery__ar-dialog {
  width: min(430px, calc(100vw - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--cxg-ink);
  box-shadow: 0 24px 80px rgba(15, 22, 19, 0.3);
}

.cxg-gallery__ar-dialog::backdrop {
  background: rgba(12, 18, 15, 0.6);
  backdrop-filter: blur(4px);
}

.cxg-gallery__ar-dialog-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 24px;
}

.cxg-gallery__ar-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cxg-gallery__ar-dialog-heading > div {
  display: grid;
  gap: 3px;
}

.cxg-gallery__ar-dialog-heading span {
  color: var(--cxg-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.cxg-gallery__ar-dialog-heading h3 {
  margin: 0;
  color: var(--cxg-ink);
  font-size: 24px;
  line-height: 1.12;
}

.cxg-gallery__ar-dialog-heading button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfe4e1;
  border-radius: 50%;
  background: #fff;
  color: var(--cxg-ink);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.cxg-gallery__ar-dialog-card > p {
  margin: 0;
  color: var(--cxg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cxg-gallery__ar-qr {
  display: grid;
  width: 248px;
  max-width: 100%;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  padding: 12px;
  border: 1px solid #dfe4e1;
  border-radius: 15px;
  background: #fff;
}

.cxg-gallery__ar-qr canvas,
.cxg-gallery__ar-qr img {
  display: block;
  width: 100% !important;
  height: auto !important;
  image-rendering: pixelated;
}

.cxg-gallery__ar-qr-fallback[hidden] {
  display: none;
}

.cxg-gallery__ar-dialog-card > a {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  border: 1px solid #dfe4e1;
  border-radius: 10px;
  color: var(--cxg-ink);
  text-decoration: none;
}

.cxg-gallery__ar-dialog-card > a span {
  font-size: 11px;
  color: var(--cxg-muted);
}

.cxg-gallery__ar-dialog-card > a strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.cxg-gallery__ar-copy-link {
  min-height: 44px;
  border: 1px solid var(--cxg-ink);
  border-radius: 10px;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cxg-gallery__ar-dialog output {
  min-height: 18px;
  color: #17643f;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cxg-gallery__status {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  font-size: 13px;
  font-weight: 650;
}

.cxg-gallery__status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f2bc75;
}

.cxg-gallery__status[data-state="error"] {
  background: #8e2f2f;
}

.cxg-gallery__controls {
  overflow: auto;
  max-height: 760px;
  padding: 26px;
  background: var(--cxg-surface);
	container-type: inline-size;
	container-name: cxg-gallery-controls;
}

.cxg-gallery__header {
  margin-bottom: 30px;
}

.cxg-gallery__brand-logo {
  display: block;
  width: auto;
  max-width: min(210px, 70%);
  height: auto;
  max-height: 58px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.cxg-gallery__header h2 {
  margin: 4px 0 10px;
  color: var(--cxg-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.cxg-gallery__header p {
  margin: 0;
  color: var(--cxg-muted);
  line-height: 1.55;
}

.cxg-gallery__header .cxg-gallery__eyebrow {
  color: var(--cxg-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cxg-gallery__group {
  min-width: 0;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--cxg-line);
}

.cxg-gallery__group legend {
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  color: var(--cxg-ink);
  font-size: 14px;
  font-weight: 800;
}

.cxg-gallery__legend-content {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.cxg-gallery__journey {
  min-width: 0;
}

.cxg-gallery__size-select {
  display: grid;
  gap: 7px;
}

.cxg-gallery__size-select > span {
  color: var(--cxg-muted);
  font-size: 12px;
  font-weight: 750;
}

.cxg-gallery__size-select select {
  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--cxg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--cxg-ink);
  font: inherit;
  font-weight: 700;
}

.cxg-gallery__size-select small {
  color: var(--cxg-muted);
  font-size: 11px;
}

.cxg-gallery__source-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 14px;
  background: #f0f2ef;
}

.cxg-gallery__source-switcher button {
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cxg-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__source-switcher button[aria-pressed="true"] {
  background: #fff;
  color: var(--cxg-ink);
  box-shadow: 0 2px 8px rgba(23, 33, 29, 0.1);
}

.cxg-gallery__source-switcher button:focus-visible,
.cxg-gallery__motif-search input:focus-visible,
.cxg-gallery__upload:focus-within {
  outline: 3px solid rgba(199, 106, 59, 0.28);
  outline-offset: 2px;
}

.cxg-gallery__source-pane {
  min-width: 0;
}

.cxg-gallery__motif-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--cxg-muted);
  font-size: 12px;
  font-weight: 750;
}

.cxg-gallery__motif-search input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--cxg-line);
  border-radius: 11px;
  background: var(--cxg-surface, #fff) !important;
  color: var(--cxg-ink) !important;
  -webkit-text-fill-color: var(--cxg-ink);
  opacity: 1;
  font: inherit;
  font-size: 14px;
}

.cxg-gallery__motif-search input::placeholder {
  color: var(--cxg-muted) !important;
  -webkit-text-fill-color: var(--cxg-muted);
  opacity: .72;
}

.cxg-gallery__empty {
  margin: 12px 0 0;
  color: var(--cxg-muted);
  font-size: 13px;
}

.cxg-gallery__upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 16px;
  border: 2px dashed #b7c0ba;
  border-radius: 16px;
  background: #f8f9f7;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.cxg-gallery__upload-wrap {
	position: relative;
}

.cxg-gallery__upload:hover,
.cxg-gallery__upload[data-dragging="true"] {
  border-color: var(--cxg-accent);
  background: #fff8f3;
}

.cxg-gallery__upload[data-state="ready"] {
	min-height: 88px;
	border-style: solid;
	border-color: #7fbaa0;
	background: #f0f8f4;
}

.cxg-gallery__upload[data-state="error"] {
	min-height: 88px;
	border-style: solid;
	border-color: #d29b96;
	background: #fff3f1;
}

.cxg-gallery__upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cxg-gallery__upload strong,
.cxg-gallery__upload small {
  display: block;
}

.cxg-gallery__upload-empty {
	display: grid;
	place-items: center;
}

.cxg-gallery__upload strong {
  margin-top: 8px;
  font-size: 14px;
}

.cxg-gallery__upload small {
  margin-top: 5px;
  color: var(--cxg-muted);
  font-size: 11px;
  font-weight: 650;
}

.cxg-gallery__upload-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  font-size: 20px;
  font-weight: 800;
}

.cxg-gallery__upload-status {
  display: grid;
  gap: 4px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.cxg-gallery__upload-status strong {
	margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cxg-gallery__upload-status b {
	margin-top: 3px;
	color: var(--cxg-ink);
	font-size: 11px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cxg-gallery__upload-status span,
.cxg-gallery__privacy-note {
  color: var(--cxg-muted);
  font-size: 11px;
  line-height: 1.5;
}

.cxg-gallery__upload-status[data-state="ready"] {
	color: var(--cxg-ink);
}

.cxg-gallery__upload-status[data-state="error"] {
  color: #8c201a;
}

.cxg-gallery__upload-remove {
	position: absolute;
	z-index: 3;
	top: 10px;
	right: 10px;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	padding: 0;
	border: 1px solid #c8d1cc;
	border-radius: 50%;
	background: #fff;
	color: var(--cxg-ink);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(20, 35, 28, 0.08);
}

.cxg-gallery__upload-remove:hover {
	border-color: #9caaa2;
	background: #f7f8f6;
}

.cxg-gallery__upload-remove:focus-visible {
	outline: 3px solid #2b7fff;
	outline-offset: 2px;
}

.cxg-gallery__upload-remove svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cxg-gallery__upload[data-state="ready"] .cxg-gallery__upload-status,
.cxg-gallery__upload[data-state="error"] .cxg-gallery__upload-status {
	padding-right: 40px;
}

.cxg-gallery__privacy-note {
  margin: 10px 2px 0;
}

.cxg-gallery__option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cxg-gallery__option-with-help {
	position: relative;
	min-width: 0;
}

.cxg-gallery__option-with-help > button[data-cxg-size],
.cxg-gallery__option-with-help > button[data-cxg-finish] {
	width: 100%;
	height: 100%;
}

.cxg-gallery__option-with-help:has(> .cxg-gallery__help-button) > button[data-cxg-size],
.cxg-gallery__option-with-help:has(> .cxg-gallery__help-button) > button[data-cxg-finish] {
	padding-right: 42px;
}

.cxg-gallery__option-grid button {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--cxg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--cxg-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cxg-gallery__option-grid button:hover {
  border-color: #aeb8b2;
  transform: translateY(-1px);
}

.cxg-gallery__option-grid button:disabled,
.cxg-gallery__crop-controls button:disabled,
.cxg-gallery__crop-controls input:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

.cxg-gallery__option-grid button:focus-visible {
  outline: 3px solid rgba(199, 106, 59, 0.28);
  outline-offset: 2px;
}

.cxg-gallery__option-grid button[aria-pressed="true"]:not(:disabled) {
  border-color: var(--cxg-ink);
  background: var(--cxg-surface);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--cxg-ink);
}

.cxg-gallery__option-grid .cxg-gallery__custom-size-choice {
  border-style: dashed;
}

.cxg-gallery__option-grid button small {
  display: block;
  margin-top: 5px;
  color: var(--cxg-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.cxg-gallery__option-grid button[data-quality-status="green"] small {
  color: #16734a;
}

.cxg-gallery__option-grid button[data-quality-status="yellow"] small {
  color: #9a6200;
}

.cxg-gallery__option-grid button[data-quality-status="red"] small {
  color: #b42318;
}

.cxg-gallery__size-quality {
  display: grid !important;
  gap: 3px;
}

.cxg-gallery__size-quality span {
  display: block;
}

.cxg-gallery__size-quality [data-quality-status="green"] {
  color: #16734a;
}

.cxg-gallery__size-quality [data-quality-status="yellow"] {
  color: #9a6200;
}

.cxg-gallery__size-quality [data-quality-status="red"] {
  color: #b42318;
}

.cxg-gallery__option-grid--motifs {
  --cxg-gallery-columns: 2;
  --cxg-gallery-mobile-columns: 1;
  --cxg-gallery-thumb-size: 72px;
  --cxg-gallery-media-height: 140px;
  grid-template-columns: repeat(var(--cxg-gallery-columns), minmax(0, 1fr));
}

.cxg-gallery__motif {
  position: relative;
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.cxg-gallery__motif span,
.cxg-gallery__motif strong,
.cxg-gallery__motif small {
  min-width: 0;
}

.cxg-gallery__motif strong,
.cxg-gallery__motif small {
  display: block;
}

.cxg-gallery__motif strong {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.cxg-gallery__motif small {
  margin-top: 3px;
  color: var(--cxg-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.cxg-gallery__motif img {
  display: block;
  width: var(--cxg-gallery-thumb-size);
  height: var(--cxg-gallery-thumb-size);
  border-radius: 8px;
  object-fit: cover;
}

.cxg-gallery[data-gallery-columns="1"] .cxg-gallery__option-grid--motifs { --cxg-gallery-columns: 1; }
.cxg-gallery[data-gallery-columns="2"] .cxg-gallery__option-grid--motifs { --cxg-gallery-columns: 2; }
.cxg-gallery[data-gallery-columns="3"] .cxg-gallery__option-grid--motifs { --cxg-gallery-columns: 3; }
.cxg-gallery[data-gallery-columns="4"] .cxg-gallery__option-grid--motifs { --cxg-gallery-columns: 4; }
.cxg-gallery[data-gallery-mobile-columns="1"] .cxg-gallery__option-grid--motifs { --cxg-gallery-mobile-columns: 1; }
.cxg-gallery[data-gallery-mobile-columns="2"] .cxg-gallery__option-grid--motifs { --cxg-gallery-mobile-columns: 2; }

.cxg-gallery[data-gallery-image-size="small"] .cxg-gallery__option-grid--motifs {
  --cxg-gallery-thumb-size: 48px;
  --cxg-gallery-media-height: 96px;
}

.cxg-gallery[data-gallery-image-size="medium"] .cxg-gallery__option-grid--motifs {
  --cxg-gallery-thumb-size: 72px;
  --cxg-gallery-media-height: 140px;
}

.cxg-gallery[data-gallery-image-size="large"] .cxg-gallery__option-grid--motifs {
  --cxg-gallery-thumb-size: 104px;
  --cxg-gallery-media-height: 190px;
}

.cxg-gallery[data-gallery-title-position="side"] .cxg-gallery__motif {
  grid-template-columns: var(--cxg-gallery-thumb-size) minmax(0, 1fr);
}

.cxg-gallery[data-gallery-title-position="below"] .cxg-gallery__motif {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 8px 8px 11px;
}

.cxg-gallery[data-gallery-title-position="below"] .cxg-gallery__motif img,
.cxg-gallery[data-gallery-title-position="overlay"] .cxg-gallery__motif img {
  width: 100%;
  height: var(--cxg-gallery-media-height);
}

.cxg-gallery[data-gallery-title-position="below"] .cxg-gallery__motif > span {
  padding: 0 4px;
}

.cxg-gallery[data-gallery-title-position="overlay"] .cxg-gallery__motif {
  display: block;
  min-height: var(--cxg-gallery-media-height);
  padding: 0;
  background: var(--cxg-ink);
}

.cxg-gallery[data-gallery-title-position="overlay"] .cxg-gallery__motif img {
  border-radius: 10px;
}

.cxg-gallery[data-gallery-title-position="overlay"] .cxg-gallery__motif > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 12px 11px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff;
}

.cxg-gallery[data-gallery-title-position="overlay"] .cxg-gallery__motif strong {
  color: #fff;
}

.cxg-gallery[data-gallery-titles="false"] .cxg-gallery__motif > span {
  display: none;
}

.cxg-gallery[data-gallery-titles="false"][data-gallery-title-position="side"] .cxg-gallery__motif {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

@container cxg-gallery-controls (max-width: 480px) {
	.cxg-gallery__option-grid--motifs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cxg-gallery[data-gallery-title-position="side"] .cxg-gallery__motif {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 7px;
		padding: 8px;
	}

	.cxg-gallery[data-gallery-title-position="side"] .cxg-gallery__motif img {
		width: 100%;
		height: 74px;
	}
}

@container cxg-gallery-controls (max-width: 290px) {
	.cxg-gallery__option-grid--motifs {
		grid-template-columns: minmax(0, 1fr);
	}
}

.cxg-gallery__swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid rgba(23, 33, 29, 0.2);
  border-radius: 50%;
  vertical-align: -4px;
}

.cxg-gallery__swatch--black {
  background: #151716;
}

.cxg-gallery__swatch--white {
  background: #f1f1ed;
}

.cxg-gallery__swatch--brushed-metal {
  background: linear-gradient(135deg, #8f9496, #e8e9e7 45%, #a2a7a9);
}

.cxg-gallery__custom-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--cxg-line);
  border-radius: 14px;
  background: #f8f9f7;
}

.cxg-gallery__custom-size[data-selected="true"] {
  border-color: var(--cxg-ink);
  background: var(--cxg-surface);
  box-shadow: 0 0 0 1px var(--cxg-ink);
}

.cxg-gallery__custom-size-selected {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eaf7f0;
  color: #17643f;
  font-size: 11px;
  font-weight: 800;
}

.cxg-gallery__custom-size strong {
  grid-column: 1 / -1;
  font-size: 13px;
}

.cxg-gallery__custom-size-range {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: var(--cxg-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cxg-gallery__custom-size label,
.cxg-gallery__range {
  display: grid;
  gap: 6px;
  color: var(--cxg-muted);
  font-size: 12px;
  font-weight: 700;
}

.cxg-gallery__custom-size input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--cxg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cxg-ink);
  font: inherit;
}

.cxg-gallery__custom-size button,
.cxg-gallery__segmented button,
.cxg-gallery__crop-actions button,
.cxg-gallery__quality button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--cxg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--cxg-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__custom-size button {
  grid-column: 1 / -1;
}

.cxg-gallery__custom-size button:hover,
.cxg-gallery__segmented button:hover,
.cxg-gallery__crop-actions button:hover,
.cxg-gallery__quality button:hover {
  border-color: #aeb8b2;
}

.cxg-gallery__custom-size button:focus-visible,
.cxg-gallery__segmented button:focus-visible,
.cxg-gallery__crop-actions button:focus-visible,
.cxg-gallery__quality button:focus-visible,
.cxg-gallery__custom-size input:focus-visible,
.cxg-gallery__range input:focus-visible,
.cxg-gallery__crop-preview canvas:focus-visible {
  outline: 3px solid rgba(199, 106, 59, 0.28);
  outline-offset: 2px;
}

.cxg-gallery__auto-approved {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #edf7f1;
}

.cxg-gallery__auto-approved span,
.cxg-gallery__auto-approved strong {
  display: block;
}

.cxg-gallery__auto-approved span {
  color: #35654e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cxg-gallery__auto-approved strong {
  margin-top: 4px;
  color: #175d3c;
  font-size: 12px;
  line-height: 1.4;
}

.cxg-gallery__crop-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cxg-gallery__crop-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(45deg, #e6e9e6 25%, transparent 25%),
    linear-gradient(-45deg, #e6e9e6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e9e6 75%),
    linear-gradient(-45deg, transparent 75%, #e6e9e6 75%),
    #f6f7f5;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.cxg-gallery__crop-preview canvas {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
}

.cxg-gallery__crop-preview canvas:active {
  cursor: grabbing;
}

.cxg-gallery__crop-awaiting {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 247, 245, 0.9);
  color: var(--cxg-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(3px);
}

.cxg-gallery__quality-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(23, 33, 29, 0.16);
}

.cxg-gallery__quality-badge[data-quality-status="green"] {
  color: #12603d;
}

.cxg-gallery__quality-badge[data-quality-status="yellow"] {
  color: #8a5700;
}

.cxg-gallery__quality-badge[data-quality-status="red"] {
  color: #a01f17;
}

.cxg-gallery__quality-badge[data-quality-status="pending"] {
  color: var(--cxg-muted);
}

.cxg-gallery__crop-controls {
  display: grid;
  align-content: start;
  gap: 14px;
}

.cxg-gallery__segmented,
.cxg-gallery__crop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cxg-gallery__segmented button[aria-pressed="true"] {
  border-color: var(--cxg-ink);
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
}

.cxg-gallery__range output {
  color: var(--cxg-ink);
}

.cxg-gallery__range input[type="range"] {
  width: 100%;
  accent-color: var(--cxg-accent);
}

.cxg-gallery__quality {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--cxg-line);
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
}

.cxg-gallery__quality[data-quality-status="green"] {
  border-left-color: #1b7a50;
}

.cxg-gallery__quality[data-quality-status="yellow"] {
  border-left-color: #bc7a0a;
}

.cxg-gallery__quality[data-quality-status="red"] {
  border-left-color: #b42318;
}

.cxg-gallery__quality[data-quality-status="pending"] {
  border-left-color: #9ca6a0;
}

.cxg-gallery__quality dt {
  color: var(--cxg-muted);
  font-size: 10px;
  font-weight: 750;
}

.cxg-gallery__quality > div > strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.cxg-gallery__quality dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cxg-gallery__quality dl div {
  min-width: 0;
}

.cxg-gallery__quality dt,
.cxg-gallery__quality dd {
  margin: 0;
}

.cxg-gallery__quality-metric dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}

.cxg-gallery__quality-metric b {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef1ef;
  color: var(--cxg-muted);
  font-size: 10px;
  line-height: 1.2;
}

.cxg-gallery__quality-metric[data-quality-status="green"] b {
  background: #eaf7f0;
  color: #17643f;
}

.cxg-gallery__quality-metric[data-quality-status="yellow"] b {
  background: #fff4dd;
  color: #7b4d00;
}

.cxg-gallery__quality-metric[data-quality-status="red"] b {
  background: #fff0ee;
  color: #a01f17;
}

.cxg-gallery__quality dd {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 800;
}

.cxg-gallery__production-approval {
	grid-column: 1 / -1;
	margin: 0;
	padding: 8px 10px;
	border-radius: 9px;
	background: #f1f3f1;
	color: var(--cxg-muted);
	font-size: 11px;
	font-weight: 750;
	line-height: 1.4;
}

.cxg-gallery__production-approval[hidden],
.cxg-gallery__commerce-status[hidden] {
  display: none;
}

.cxg-gallery__production-approval[data-state="automatic"],
.cxg-gallery__production-approval[data-state="administrator"] {
	background: #eaf7f0;
	color: #17643f;
}

.cxg-gallery__production-approval[data-state="review"] {
	background: #fff4e5;
	color: #7b4d00;
}

.cxg-gallery__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f5f2;
}

.cxg-gallery__summary span {
  color: var(--cxg-muted);
  font-size: 11px;
}

.cxg-gallery__summary strong {
  font-size: 13px;
  line-height: 1.35;
}

.cxg-gallery__commerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--cxg-line);
  border-radius: 13px;
  background: #fff;
}

.cxg-gallery__commerce[data-price-placement="inside"] .cxg-gallery__price {
  display: none;
}

.cxg-gallery__commerce[data-price-placement="above"] .cxg-gallery__add-to-cart-price {
  display: none;
}

.cxg-gallery__price span {
  display: block;
  color: var(--cxg-muted);
  font-size: 11px;
}

.cxg-gallery__price strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.25;
}

.cxg-gallery__add-to-cart {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--cxg-ink);
  border-radius: 12px;
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__add-to-cart-price {
  font-size: 15px;
  line-height: 1.2;
}

.cxg-gallery__add-to-cart:disabled {
  border-color: #c9cfcb;
  background: #dfe3e0;
  color: #69716d;
  cursor: not-allowed;
}

.cxg-gallery[data-smart-cta="true"] .cxg-gallery__add-to-cart[data-quality-status="green"]:not(:disabled) {
  border-color: #17643f;
  background: #17643f;
  color: #fff;
}

.cxg-gallery[data-smart-cta="true"] .cxg-gallery__add-to-cart[data-quality-status="yellow"]:not(:disabled) {
  border-color: #b26a00;
  background: #f3a51f;
  color: #2e2107;
}

.cxg-gallery[data-smart-cta="true"] .cxg-gallery__add-to-cart[data-quality-status="red"]:not(:disabled) {
  border-color: #a32318;
  background: #c9362b;
  color: #fff;
}

.cxg-gallery__quality-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--cxg-ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 33, 29, 0.28);
}

.cxg-gallery__quality-dialog::backdrop {
  background: rgba(12, 18, 15, 0.58);
  backdrop-filter: blur(3px);
}

.cxg-gallery__quality-dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.cxg-gallery__quality-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.cxg-gallery__quality-dialog-head > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  background: #fff4dd;
  color: #7b4d00;
  font-weight: 900;
}

.cxg-gallery__quality-dialog-head[data-quality-status="red"] > span {
  background: #fff0ee;
  color: #a01f17;
}

.cxg-gallery__quality-dialog h3,
.cxg-gallery__quality-dialog p,
.cxg-gallery__quality-dialog dl {
  margin: 0;
}

.cxg-gallery__quality-dialog h3 {
  color: var(--cxg-ink, #17211d);
  font-size: 20px;
  line-height: 1.25;
}

.cxg-gallery__quality-dialog-head p,
.cxg-gallery__quality-dialog-proof,
.cxg-gallery__quality-dialog-solution p,
.cxg-gallery__quality-dialog-solution small {
  margin-top: 5px;
  color: var(--cxg-muted);
  line-height: 1.5;
}

.cxg-gallery__quality-dialog-proof {
  border-radius: 10px;
  padding: 9px 11px;
  background: #eef4f0;
  color: #315844;
  font-size: 12px;
  font-weight: 750;
}

.cxg-gallery__quality-dialog dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cxg-gallery__quality-dialog dl > div,
.cxg-gallery__quality-dialog-solution {
  border: 1px solid var(--cxg-line);
  border-radius: 12px;
  padding: 13px;
  background: #f7f8f6;
}

.cxg-gallery__quality-dialog dt {
  color: var(--cxg-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cxg-gallery__quality-dialog dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.cxg-gallery__quality-dialog-solution small {
  display: block;
  font-weight: 700;
}

.cxg-gallery__upscale-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid var(--cxg-accent, #2399b5);
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--cxg-accent, #2399b5);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__upscale-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.cxg-gallery__quality-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cxg-gallery__quality-dialog-actions button {
  min-height: 44px;
  border: 1px solid var(--cxg-line);
  border-radius: 11px;
  padding: 10px 14px;
  background: #fff;
  color: var(--cxg-ink);
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__quality-dialog-actions [data-cxg-quality-confirm] {
  border-color: var(--cxg-ink);
  background: var(--cxg-ink);
  color: var(--cxg-on-primary);
}

.cxg-gallery__commerce-status {
  grid-column: 1 / -1;
  color: var(--cxg-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cxg-gallery__commerce-status[data-state="success"] {
  color: #12613e;
}

.cxg-gallery__commerce-status[data-state="error"] {
  color: #a32318;
}

.cxg-gallery__commerce-status[data-state="warning"] {
  color: #845500;
}

.cxg-gallery__commerce-status a {
  color: inherit;
  font-weight: 800;
}

@media (max-width: 900px) {
  .cxg-gallery {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    border-radius: 18px;
  }

  .cxg-gallery:not([data-focus-active="true"]) .cxg-gallery__stage {
    position: sticky;
    z-index: 8;
    top: 0;
    align-self: start;
    overflow: hidden;
  }

  .cxg-gallery__stage,
  .cxg-gallery__viewer,
  .cxg-gallery__family-fallback {
    min-height: 430px;
    height: 430px;
  }

  .cxg-gallery__family-fallback {
    padding: 66px 24px 48px;
  }

  .cxg-gallery__family-fallback-art {
    width: min(70%, 420px);
    max-height: 300px;
  }

  .cxg-gallery__controls {
    overflow: visible;
    max-height: none;
    padding: 26px 22px 30px;
  }

  .cxg-gallery__quality {
    grid-template-columns: 1fr;
  }

  .cxg-gallery__commerce {
    grid-template-columns: 1fr;
  }

  .cxg-gallery[data-display-mode="wide"] {
    left: auto;
    width: 100%;
    transform: none;
  }

  .cxg-gallery[data-focus-active="true"] {
    grid-template-rows: minmax(260px, var(--cxg-mobile-viewer-height)) minmax(0, 1fr);
    overflow: hidden;
  }

  .cxg-gallery[data-focus-active="true"] .cxg-gallery__stage,
  .cxg-gallery[data-focus-active="true"] .cxg-gallery__viewer,
  .cxg-gallery[data-focus-active="true"] .cxg-gallery__family-fallback {
    height: var(--cxg-mobile-viewer-height);
    min-height: 0;
  }

  .cxg-gallery[data-focus-active="true"] .cxg-gallery__controls {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .cxg-gallery__stage-brand {
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
  }

  .cxg-gallery__back {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 8px;
  }

  .cxg-gallery__back strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cxg-gallery__viewer-actions {
    inset: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    display: block;
    pointer-events: none;
  }

  .cxg-gallery__viewer-actions > * {
    pointer-events: auto;
  }

  .cxg-gallery__ar-launch {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    min-width: 58px;
    min-height: 42px;
  }

  .cxg-gallery__view-switch {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .cxg-gallery[data-ar-enabled="true"] .cxg-gallery__focus-toggle {
    right: max(82px, calc(env(safe-area-inset-right) + 82px));
  }

  .cxg-gallery[data-focus-active="true"] .cxg-gallery__focus-toggle strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
	.cxg-gallery {
		grid-template-columns: minmax(0, var(--cxg-tablet-stage-share)) minmax(260px, var(--cxg-tablet-panel-share));
		min-height: 620px;
		overflow: hidden;
	}

	.cxg-gallery:not([data-focus-active="true"]) .cxg-gallery__stage {
		position: relative;
		top: auto;
		align-self: stretch;
	}

	.cxg-gallery .cxg-gallery__stage,
	.cxg-gallery .cxg-gallery__viewer,
	.cxg-gallery .cxg-gallery__family-fallback {
		height: 100%;
		min-height: 620px;
	}

	.cxg-gallery[data-focus-active="true"] {
		grid-template-rows: none;
		grid-template-columns: minmax(0, var(--cxg-tablet-stage-share)) minmax(260px, var(--cxg-tablet-panel-share));
	}

	.cxg-gallery[data-focus-active="true"] .cxg-gallery__stage,
	.cxg-gallery[data-focus-active="true"] .cxg-gallery__viewer,
	.cxg-gallery[data-focus-active="true"] .cxg-gallery__family-fallback {
		height: 100%;
		min-height: 0;
	}
}

@media (max-width: 700px) {
	.cxg-gallery__stage,
	.cxg-gallery__viewer,
	.cxg-gallery__family-fallback {
		height: clamp(280px, var(--cxg-mobile-viewer-height), 640px);
		min-height: clamp(280px, var(--cxg-mobile-viewer-height), 640px);
	}
}

@media (max-width: 480px) {
	.cxg-gallery__quality-dialog form {
	  padding: 18px;
	}

	.cxg-gallery__quality-dialog dl,
	.cxg-gallery__quality-dialog-actions {
	  grid-template-columns: 1fr;
	}

  .cxg-gallery__stage,
  .cxg-gallery__viewer,
  .cxg-gallery__family-fallback {
	min-height: clamp(280px, var(--cxg-mobile-viewer-height), 640px);
	height: clamp(280px, var(--cxg-mobile-viewer-height), 640px);
  }

  .cxg-gallery__family-fallback {
    padding: 62px 20px 52px;
  }

  .cxg-gallery__family-fallback-art {
    width: min(72%, 300px);
    max-height: 230px;
  }

  .cxg-gallery__option-grid {
    grid-template-columns: 1fr;
  }

  .cxg-gallery__option-grid--motifs {
    grid-template-columns: repeat(var(--cxg-gallery-mobile-columns), minmax(0, 1fr));
  }

  .cxg-gallery__source-switcher {
    grid-template-columns: 1fr;
  }

  .cxg-gallery__crop-editor,
  .cxg-gallery__custom-size {
    grid-template-columns: 1fr;
  }

  .cxg-gallery__custom-size strong,
  .cxg-gallery__custom-size button {
    grid-column: auto;
  }

  .cxg-gallery__quality dl {
    grid-template-columns: 1fr;
  }

  .cxg-gallery__badge {
    top: 14px;
    left: 14px;
  }

  .cxg-gallery__stage-brand {
    top: 14px;
    left: 14px;
    gap: 7px;
    max-width: 58%;
  }

  .cxg-gallery__stage-logo {
    max-width: min(160px, 100%);
    max-height: 48px;
    padding: 7px 9px;
  }

  .cxg-gallery__stage:has(.cxg-gallery__stage-brand) .cxg-gallery__badge {
    top: 118px;
    bottom: auto;
  }

  .cxg-gallery__ar-support {
    top: 58px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .cxg-gallery__ar-help {
    top: 58px;
    right: 14px;
  }

  .cxg-gallery__stage:has(.cxg-gallery__stage-brand) .cxg-gallery__ar-support {
    top: 158px;
  }

  .cxg-gallery__ar-button {
    right: 14px;
    bottom: 82px;
    left: 14px;
    width: auto;
    max-width: none;
  }

  .cxg-gallery__viewer-actions {
    inset: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .cxg-gallery__view-switch {
    max-width: calc(100% - 72px);
  }

  .cxg-gallery__view-switch button {
    flex: 1 1 50%;
  }

  .cxg-gallery__ar-launch {
    min-width: 58px;
  }

  .cxg-gallery__ar-dialog-card {
    padding: 20px;
  }

  .cxg-gallery__ar-dialog-heading h3 {
    font-size: 21px;
  }

  .cxg-gallery__status {
    right: 14px;
    bottom: 10px;
    left: 14px;
    max-height: 42px;
    overflow: hidden;
    padding: 7px 11px;
    font-size: 11px;
    text-align: center;
  }

  .cxg-gallery__focus-toggle {
    top: 14px;
    right: 14px;
  }
}

/* Keep the mobile preview controls clear of WordPress' 46 px admin toolbar. */
@media screen and (max-width: 782px) {
  body:has(#wpadminbar) .cxg-gallery:not([data-focus-active="true"]) .cxg-gallery__stage {
    top: 46px;
  }

  body:has(#wpadminbar) .cxg-gallery__stage-brand {
    top: calc(46px + max(14px, env(safe-area-inset-top)));
  }

  body:has(#wpadminbar) .cxg-gallery__viewer-actions {
    top: calc(46px + max(14px, env(safe-area-inset-top)));
  }

  body:has(#wpadminbar) .cxg-gallery__focus-toggle {
    top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
	.cxg-gallery__option-grid button,
	.cxg-gallery__viewer {
    transition: none;
  }
}

/* Block 16D: server-confirmed WooCommerce cart drawer. */
.cxg-cart-drawer-open{overflow:hidden}.cxg-cart-drawer{position:fixed;inset:0;z-index:2147483645;display:flex;justify-content:flex-end;color:#17211d;font-family:inherit}.cxg-cart-drawer__backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.48);cursor:pointer}.cxg-cart-drawer__panel{position:relative;display:flex;flex-direction:column;gap:16px;width:min(460px,100vw);height:100dvh;padding:24px;overflow:auto;background:#fff;box-shadow:-24px 0 64px rgba(15,23,42,.22);animation:cxgCartDrawerIn 180ms ease-out}.cxg-cart-drawer.is-closing .cxg-cart-drawer__panel{animation:cxgCartDrawerOut 150ms ease-in forwards}.cxg-cart-drawer.is-closing .cxg-cart-drawer__backdrop{opacity:0;transition:opacity 150ms ease-in}@keyframes cxgCartDrawerIn{from{transform:translateX(40px);opacity:.82}to{transform:translateX(0);opacity:1}}@keyframes cxgCartDrawerOut{to{transform:translateX(40px);opacity:0}}.cxg-cart-drawer__header,.cxg-cart-drawer__heading{display:flex;align-items:flex-start;gap:12px}.cxg-cart-drawer__header{justify-content:space-between}.cxg-cart-drawer__heading{min-width:0}.cxg-cart-drawer__eyebrow{display:block;margin:0 0 4px;color:#64748b;font-size:12px;font-weight:800}.cxg-cart-drawer__header h2{margin:0;font-size:21px;line-height:1.2}.cxg-cart-drawer__success{flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#15803d;color:#fff;font-weight:900}.cxg-cart-drawer__close{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:999px;background:#f1f5f3;color:#17211d;cursor:pointer;font-size:26px;line-height:1}.cxg-cart-drawer__close:focus-visible,.cxg-cart-drawer a:focus-visible,.cxg-cart-drawer button:focus-visible{outline:3px solid #2b7fff;outline-offset:2px}.cxg-cart-drawer__product{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:14px;padding:14px;border:1px solid #dbe7e1;border-radius:14px;background:#f7faf8}.cxg-cart-drawer__product img,.cxg-cart-drawer__placeholder{width:92px;height:92px;border-radius:10px;background:#e8eeeb;object-fit:cover}.cxg-cart-drawer__product-copy{display:grid;gap:7px}.cxg-cart-drawer__product-copy strong{font-size:16px}.cxg-cart-drawer__product-copy span{color:#50605a;font-size:14px;font-weight:750}.cxg-cart-drawer__summary{padding:17px;border:1px solid #e1e7e4;border-radius:14px;background:#fff}.cxg-cart-drawer__summary h3{margin:0 0 10px;font-size:16px}.cxg-cart-drawer__summary dl{margin:0}.cxg-cart-drawer__row{display:grid;grid-template-columns:minmax(100px,.75fr) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf1ef}.cxg-cart-drawer__row:last-child{border-bottom:0}.cxg-cart-drawer__row dt{color:#66736e}.cxg-cart-drawer__row dd{margin:0;font-weight:750;text-align:right}.cxg-cart-drawer__actions{display:grid;gap:12px;margin-top:auto;padding-top:4px}.cxg-cart-drawer__main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cxg-cart-drawer__cart,.cxg-cart-drawer__checkout,.cxg-cart-drawer__continue{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border-radius:10px;font-weight:800;text-align:center;text-decoration:none!important}.cxg-cart-drawer__cart{border:1px solid #ccd7d2;background:#fff;color:#17211d}.cxg-cart-drawer__checkout{border:1px solid var(--cxg-ink,#17211d);background:var(--cxg-ink,#17211d);color:#fff!important}.cxg-cart-drawer__continue{width:100%;border:0;background:transparent;color:#41504a;cursor:pointer}@media(max-width:560px){.cxg-cart-drawer__panel{width:100vw;padding:18px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.cxg-cart-drawer__main-actions{grid-template-columns:1fr}.cxg-cart-drawer__product{grid-template-columns:76px minmax(0,1fr)}.cxg-cart-drawer__product img,.cxg-cart-drawer__placeholder{width:76px;height:76px}}@media(prefers-reduced-motion:reduce){.cxg-cart-drawer__panel,.cxg-cart-drawer.is-closing .cxg-cart-drawer__panel{animation:none}}
.cxg-gallery__extras{display:grid;gap:14px}.cxg-gallery__extra-group{display:grid;gap:10px}.cxg-gallery__extra-group+.cxg-gallery__extra-group{padding-top:14px;border-top:1px solid var(--cxg-border,#dfe4e1)}.cxg-gallery__extra-heading{display:grid;gap:3px}.cxg-gallery__extra-heading small{color:var(--cxg-muted,#6b746f)}.cxg-gallery__extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cxg-gallery__extra-card{display:grid!important;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:11px;min-height:88px;padding:8px!important;text-align:left!important;border:1px solid var(--cxg-border,#dfe4e1)!important;border-radius:11px!important;background:#fff!important;color:inherit!important}.cxg-gallery__extra-card[aria-pressed="true"]{border:2px solid var(--cxg-ink,#17211d)!important;padding:7px!important}.cxg-gallery__extra-card img{width:76px;height:68px;border-radius:7px;object-fit:cover;background:#eef1ee}.cxg-gallery__extra-card>span{display:grid;gap:3px}.cxg-gallery__extra-card small{font-size:11px;line-height:1.3;color:var(--cxg-muted,#6b746f)}.cxg-gallery__extra-card b{font-size:11px;color:var(--cxg-accent,#1f8daa)}.cxg-gallery__extra-select{display:grid;gap:6px}.cxg-gallery__extra-select select{width:100%;min-height:46px;border:1px solid var(--cxg-border,#dfe4e1);border-radius:9px;background:#fff;padding:0 12px}@media(max-width:680px){.cxg-gallery__extra-grid{grid-template-columns:1fr}.cxg-gallery__extra-card{grid-template-columns:64px minmax(0,1fr)}.cxg-gallery__extra-card img{width:64px;height:58px}.cxg-gallery__back-hotspot{width:112px;padding:7px;border-radius:10px}}

/* Block 20C: simple customer-facing image quality with secure DPI details kept behind the contract. */
.cxg-gallery__size-quality {
  display: block !important;
}

.cxg-gallery__size-quality [data-cxg-size-quality-label] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.cxg-gallery__size-quality [data-cxg-size-quality-label]::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca6a0;
  content: "";
}

.cxg-gallery__size-quality [data-customer-quality-level="poor"] { color: #a32318; }
.cxg-gallery__size-quality [data-customer-quality-level="poor"]::before { background: #d83a2e; }
.cxg-gallery__size-quality [data-customer-quality-level="ok"] { color: #845500; }
.cxg-gallery__size-quality [data-customer-quality-level="ok"]::before { background: #e5ad1f; }
.cxg-gallery__size-quality [data-customer-quality-level="good"] { color: #3f7359; }
.cxg-gallery__size-quality [data-customer-quality-level="good"]::before { background: #8bc9a5; }
.cxg-gallery__size-quality [data-customer-quality-level="excellent"] { color: #12613e; }
.cxg-gallery__size-quality [data-customer-quality-level="excellent"]::before { background: #1f8a55; }

.cxg-gallery__quality {
  grid-template-columns: minmax(0, 1fr) auto;
	gap: 7px 12px;
  border-left-width: 1px;
	padding: 9px 10px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cxg-gallery__quality[data-customer-quality-level="poor"] { border-color: #efb4ae; background: #fff4f2; }
.cxg-gallery__quality[data-customer-quality-level="ok"] { border-color: #ead18b; background: #fff9e9; }
.cxg-gallery__quality[data-customer-quality-level="good"] { border-color: #b9dcc8; background: #f2faf5; }
.cxg-gallery__quality[data-customer-quality-level="excellent"] { border-color: #8fc8aa; background: #edf8f2; }

.cxg-gallery__quality-main,
.cxg-gallery__quality-actions {
  display: grid;
	gap: 6px;
  min-width: 0;
}

.cxg-gallery__quality-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cxg-gallery__quality-heading strong {
  font-size: 14px;
  line-height: 1.3;
}

.cxg-gallery .cxg-gallery__help-button,
.cxg-gallery__quality-help-button {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	padding: 0;
	border: 1px solid #c7d1cb;
	border-radius: 50%;
	background: #fff;
	color: var(--cxg-ink);
  font: inherit;
	font-size: 12px;
	font-weight: 800;
  cursor: pointer;
	line-height: 1;
}

.cxg-gallery .cxg-gallery__quality .cxg-gallery__quality-help-button {
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	padding: 0;
	border-radius: 50%;
}

.cxg-gallery__option-with-help > .cxg-gallery__help-button {
	position: absolute;
	z-index: 3;
	top: 7px;
	right: 7px;
}

.cxg-gallery__help-button:focus-visible,
.cxg-gallery__quality-help-button:focus-visible,
.cxg-gallery__quality-compare-button:focus-visible,
.cxg-gallery__quality-comparison button:focus-visible {
  outline: 3px solid #2b7fff;
  outline-offset: 2px;
}

.cxg-gallery__quality-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(24px, 1fr));
  gap: 5px;
  width: min(100%, 320px);
}

.cxg-gallery__quality-scale span {
	height: 7px;
  border-radius: 999px;
  opacity: .28;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cxg-gallery__quality-scale [data-quality-level="poor"] { background: #d83a2e; }
.cxg-gallery__quality-scale [data-quality-level="ok"] { background: #e5ad1f; }
.cxg-gallery__quality-scale [data-quality-level="good"] { background: #8bc9a5; }
.cxg-gallery__quality-scale [data-quality-level="excellent"] { background: #1f8a55; }
.cxg-gallery__quality-scale span[data-active="true"] {
  opacity: 1;
  transform: scaleY(1.45);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
}

.cxg-gallery__quality-actions {
  justify-items: end;
  align-content: center;
}

.cxg-gallery__quality-actions small {
  max-width: 340px;
  color: var(--cxg-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.cxg-gallery__upscale-progress {
  display: grid;
  gap: 6px;
  width: min(100%, 340px);
  color: var(--cxg-ink, #17211d);
}

.cxg-gallery__upscale-progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5e0;
}

.cxg-gallery__upscale-progress-track i {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: #2f7d57;
  transition: width 220ms ease, background-color 220ms ease;
}

.cxg-gallery__upscale-progress[data-phase="enhancing"] .cxg-gallery__upscale-progress-track i {
  width: 58%;
  animation: cxg-upscale-progress 1.5s ease-in-out infinite alternate;
}

.cxg-gallery__upscale-progress[data-phase="validating"] .cxg-gallery__upscale-progress-track i { width: 84%; }
.cxg-gallery__upscale-progress[data-phase="ready"] .cxg-gallery__upscale-progress-track i { width: 100%; }
.cxg-gallery__upscale-progress[data-phase="error"] .cxg-gallery__upscale-progress-track i { width: 100%; background: #c63b31; }
.cxg-gallery__upscale-progress strong { font-size: 11px; line-height: 1.35; text-align: right; }

@keyframes cxg-upscale-progress {
  from { width: 38%; }
  to { width: 72%; }
}

.cxg-gallery__quality-actions .cxg-gallery__upscale-button,
.cxg-gallery__quality-compare-button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cxg-gallery__quality-compare-button {
  border: 1px solid var(--cxg-ink, #17211d);
  background: #fff;
  color: var(--cxg-ink, #17211d);
}

.cxg-gallery__quality-actions [hidden] { display: none !important; }

.cxg-gallery__quality-help,
.cxg-gallery__help-popover {
  width: min(340px, calc(100vw - 32px));
  margin: 0;
  padding: 16px;
  border: 1px solid #cfdad4;
  border-radius: 13px;
  background: #fff;
  color: var(--cxg-ink, #17211d);
  box-shadow: 0 18px 54px rgba(23, 33, 29, .22);
	z-index: 2147483647;
}

.cxg-gallery__quality-help:popover-open,
.cxg-gallery__help-popover:popover-open {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cxg-gallery__quality-help::backdrop,
.cxg-gallery__help-popover::backdrop { background: rgba(12, 18, 15, .18); }
.cxg-gallery__quality-help strong,
.cxg-gallery__help-popover strong { display: block; font-size: 13px; }
.cxg-gallery__quality-help p,
.cxg-gallery__help-popover > span { display: block; margin: 6px 0 0; color: #52615b; font-size: 12px; line-height: 1.5; }

.cxg-gallery__quality-dialog-label {
  display: block;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fff9e9;
  color: #845500;
}

.cxg-gallery__quality-dialog-label[data-customer-quality-level="poor"] { background: #fff4f2; color: #a32318; }
.cxg-gallery__quality-dialog-label[data-customer-quality-level="good"],
.cxg-gallery__quality-dialog-label[data-customer-quality-level="excellent"] { background: #edf8f2; color: #12613e; }

.cxg-gallery__quality-comparison {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101713;
  color: #fff;
}

.cxg-gallery__quality-comparison::backdrop { background: #101713; }
.cxg-gallery__quality-comparison form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.cxg-gallery__quality-comparison header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(255,255,255,.14); }
.cxg-gallery__quality-comparison h3 { margin: 0; color: #fff; font-size: clamp(18px, 2vw, 26px); }
.cxg-gallery__quality-comparison header strong { display: block; margin-top: 4px; color: #9ce2b9; font-size: 14px; }
.cxg-gallery__quality-comparison header button { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; cursor: pointer; }
.cxg-gallery__quality-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
.cxg-gallery__quality-comparison figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; margin: 0; padding: 18px; border-right: 1px solid rgba(255,255,255,.12); }
.cxg-gallery__quality-comparison figure:last-child { border-right: 0; }
.cxg-gallery__quality-comparison img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cxg-gallery__quality-comparison figcaption { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-top: 12px; }
.cxg-gallery__quality-comparison figcaption strong { font-size: 15px; }
.cxg-gallery__quality-comparison figcaption span { color: #b8c6bf; font-size: 13px; font-weight: 750; }
.cxg-gallery__quality-comparison footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); border-top: 1px solid rgba(255,255,255,.14); background: #15211b; }
.cxg-gallery__quality-comparison footer p { max-width: 720px; margin: 0; color: #c6d2cc; font-size: 13px; line-height: 1.5; }
.cxg-gallery__quality-comparison footer div { display: flex; flex: 0 0 auto; gap: 10px; }
.cxg-gallery__quality-comparison footer button { min-height: 42px; border: 1px solid rgba(255,255,255,.32); border-radius: 9px; padding: 8px 16px; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.cxg-gallery__quality-comparison footer [data-cxg-quality-use-enhanced] { border-color: #79d49f; background: #79d49f; color: #102017; }
.cxg-gallery__quality-comparison footer button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 700px) {
  .cxg-gallery__quality { grid-template-columns: 1fr; }
  .cxg-gallery__quality-actions { justify-items: stretch; }
  .cxg-gallery__quality-actions small { max-width: none; text-align: left; }
	.cxg-gallery__upscale-progress { width: 100%; }
	.cxg-gallery__upscale-progress strong { text-align: left; }
  .cxg-gallery__quality-actions .cxg-gallery__upscale-button,
  .cxg-gallery__quality-compare-button { width: 100%; }
  .cxg-gallery__quality-comparison-grid { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .cxg-gallery__quality-comparison figure { padding: 10px 14px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cxg-gallery__quality-comparison figure:last-child { border-bottom: 0; }
  .cxg-gallery__quality-comparison figcaption { padding-top: 5px; }
	.cxg-gallery__quality-comparison footer { display: grid; gap: 10px; padding-top: 10px; }
	.cxg-gallery__quality-comparison footer div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.cxg-gallery__quality-comparison footer button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cxg-gallery__quality,
	.cxg-gallery__quality-scale span,
	.cxg-gallery__upscale-progress-track i { transition: none; animation: none; }
}
