/* Product eco card UI mockups — scoped to ent-products section */

.ent-products {
  --epg-text: #0a2540;
  --epg-text-soft: #697386;
  --epg-border: #e3e8ee;
  --epg-bg-muted: #f6f9fc;
  --epg-white: #fff;
  --epg-brand: #635bff;
  --epg-green-bg: #cbf4c9;
  --epg-green-text: #098649;
  --epg-skeleton: #e3e8ee;
}

/* product-ui-graphic frame — contained inside gray card-graphic panel */
.ent-products__card-graphic .product-ui-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  overflow: hidden;
  background: transparent;
}

.ent-products__card-graphic .product-ui-graphic--borderless {
  border: 0;
  border-radius: 0;
}

.ent-products__card-graphic .product-ui-graphic__wrap {
  position: absolute;
  width: min(var(--pcg-width, 78%), 100%);
  max-width: 100%;
  height: auto;
}

.ent-products__card-graphic .product-ui-graphic__wrap--x-left {
  left: max(var(--pcg-offset-x, 0px), 4px);
}

.ent-products__card-graphic .product-ui-graphic__wrap--x-center {
  left: 50%;
  transform: translateX(calc(-50% + var(--pcg-offset-x, 0px)));
}

.ent-products__card-graphic .product-ui-graphic__wrap--x-right {
  right: max(var(--pcg-offset-x, 0px), 4px);
}

.ent-products__card-graphic .product-ui-graphic__wrap--y-top {
  top: max(var(--pcg-offset-y, 0px), 8px);
}

.ent-products__card-graphic .product-ui-graphic__wrap--y-center {
  top: 50%;
  transform: translateY(calc(-50% + var(--pcg-offset-y, 0px)));
}

.ent-products__card-graphic .product-ui-graphic__wrap--y-bottom {
  bottom: max(var(--pcg-offset-y, 0px), 0px);
}

.ent-products__card-graphic .product-ui-graphic__wrap--x-center.product-ui-graphic__wrap--y-center {
  transform: translate(calc(-50% + var(--pcg-offset-x, 0px)), calc(-50% + var(--pcg-offset-y, 0px)));
}

.ent-products__card-graphic .product-ui-graphic__wrap--x-center.product-ui-graphic__wrap--y-top {
  transform: translateX(calc(-50% + var(--pcg-offset-x, 0px)));
}

/* dom-graphic scaling — fit mockup to card width (prevents left/right crop) */
.ent-products__card-graphic .dom-graphic {
  --graphic-source-width: 360px;
  --graphic-source-height: 212px;
  --graphic-aspect-ratio: 360 / 212;
  --graphic-max-width: 100%;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  aspect-ratio: var(--graphic-aspect-ratio);
}

.ent-products__card-graphic .dom-graphic__content {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--graphic-source-width);
  height: var(--graphic-source-height);
  transform: scale(calc(100cqw / var(--graphic-source-width)));
  transform-origin: top left;
}

.ent-products__card-graphic .dom-graphic__content--horizontal-scale-center {
  left: 50%;
  transform: translateX(-50%) scale(calc(100cqw / var(--graphic-source-width)));
  transform-origin: top center;
}

/* Checkout card — wider mockup, top-aligned, taller gray panel (card width unchanged) */
.ent-products__card-graphic:has(.compact-checkout-graphic) {
  aspect-ratio: 1.72 / 1;
}

.ent-products__card-graphic:has(.compact-checkout-graphic) .product-ui-graphic__wrap {
  top: 12px;
  left: 50%;
  width: 92%;
  max-width: 100%;
  transform: translateX(-50%);
}

/* ── Checkout graphic ── */
.ent-products .compact-checkout-graphic {
  width: 100%;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--epg-border);
  border-radius: 8px;
  background: var(--epg-white);
  font-weight: 400;
}

.ent-products .compact-checkout-graphic__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ent-products .compact-checkout-graphic__section-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--epg-text);
}

.ent-products .compact-checkout-graphic__field {
  height: 26px;
  border: 1px solid var(--epg-border);
  border-radius: 6px;
  background: var(--epg-white);
}

.ent-products .compact-checkout-graphic__payment-panel {
  border: 1px solid var(--epg-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--epg-white);
}

.ent-products .compact-checkout-graphic__payment-cell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.ent-products .compact-checkout-graphic__lpm-header {
  flex: 1;
  min-width: 0;
}

.ent-products .compact-checkout-graphic__payment-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ent-products .compact-checkout-graphic__radio {
  display: inline-flex;
  flex-shrink: 0;
}

.ent-products .compact-checkout-graphic__card-method {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ent-products .compact-checkout-graphic__card-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.ent-products .compact-checkout-graphic__label-skeleton {
  width: 72px;
  height: 8px;
  border-radius: 4px;
  background: var(--epg-skeleton);
}

.ent-products .compact-checkout-graphic__brand-logos {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ent-products .compact-checkout-graphic__brand-logo {
  display: inline-flex;
}

.ent-products .compact-checkout-graphic__brand-logo svg {
  display: block;
}

/* ── Connect graphic ── */
.ent-products .compact-connect-graphic {
  width: 100%;
  height: 100%;
  padding: 16px 14px;
  border: 1px solid var(--epg-border);
  border-radius: 8px;
  background: var(--epg-white);
  font-weight: 400;
}

.ent-products .compact-connect-graphic__heading {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--epg-text);
}

.ent-products .compact-connect-graphic__table {
  display: flex;
  flex-direction: column;
}

.ent-products .compact-connect-graphic__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.ent-products .compact-connect-graphic__row--header .compact-connect-graphic__cell {
  font-size: 10px;
  font-weight: 500;
  color: var(--epg-text-soft);
}

.ent-products .compact-connect-graphic__cell {
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--epg-text);
}

.ent-products .compact-connect-graphic__cell--account {
  font-weight: 500;
}

.ent-products .compact-connect-graphic__cell--right {
  display: flex;
  justify-content: flex-end;
}

.ent-products .compact-connect-graphic__divider {
  height: 1px;
  background: var(--epg-border);
}

.ent-products .compact-connect-graphic__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.ent-products .compact-connect-graphic__badge--enabled {
  background: var(--epg-green-bg);
  color: var(--epg-green-text);
}

.ent-products .compact-connect-graphic__skeleton {
  height: 8px;
  border-radius: 4px;
  background: var(--epg-skeleton);
}

.ent-products .compact-connect-graphic__skeleton--66 {
  width: 66%;
}

.ent-products .compact-connect-graphic__skeleton--72 {
  width: 72%;
}

.ent-products .compact-connect-graphic__skeleton--49 {
  width: 49%;
}

.ent-products .compact-connect-graphic__skeleton--46 {
  width: 46%;
}

/* ── Authorization Boost graphic ── */
.ent-products .compact-authorization-boost-graphic {
  width: 100%;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--epg-border);
  border-radius: 8px;
  background: var(--epg-white);
  font-weight: 400;
}

.ent-products .compact-authorization-boost-graphic__header {
  margin-bottom: 12px;
}

.ent-products .compact-authorization-boost-graphic__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--epg-text);
}

.ent-products .compact-authorization-boost-graphic__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ent-products .compact-authorization-boost-graphic__tab {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid var(--epg-border);
  border-radius: 6px;
  background: var(--epg-white);
  font-size: 10px;
  font-weight: 500;
  color: var(--epg-text);
}

.ent-products .compact-authorization-boost-graphic__tab--active {
  border-color: #c4ccd8;
  background: var(--epg-white);
}

.ent-products .compact-authorization-boost-graphic__table {
  display: flex;
  flex-direction: column;
}

.ent-products .compact-authorization-boost-graphic__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.ent-products .compact-authorization-boost-graphic__row--header .compact-authorization-boost-graphic__cell {
  font-size: 10px;
  font-weight: 500;
  color: var(--epg-text-soft);
}

.ent-products .compact-authorization-boost-graphic__cell {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--epg-text);
}

.ent-products .compact-authorization-boost-graphic__cell--right {
  text-align: right;
}

.ent-products .compact-authorization-boost-graphic__divider {
  height: 1px;
  background: var(--epg-border);
}

.ent-products .compact-authorization-boost-graphic__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ent-products .compact-authorization-boost-graphic__swatch {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--epg-brand);
}

.ent-products .compact-authorization-boost-graphic__feature-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--epg-text);
}

.ent-products .compact-authorization-boost-graphic__skeleton {
  height: 8px;
  border-radius: 4px;
  background: var(--epg-skeleton);
}

.ent-products .compact-authorization-boost-graphic__skeleton--49 {
  width: 49px;
}

.ent-products .compact-authorization-boost-graphic__skeleton--56 {
  width: 56px;
}

.ent-products .compact-authorization-boost-graphic__skeleton--60 {
  width: 60%;
  margin-left: auto;
}

/* ── Data Pipeline graphic ── */
.ent-products .compact-data-pipeline-graphic {
  width: 100%;
  height: 100%;
}

.ent-products .compact-data-pipeline-graphic__card {
  height: 100%;
  padding: 14px;
  border: 1px solid var(--epg-border);
  border-radius: 8px;
  background: var(--epg-white);
}

.ent-products .compact-data-pipeline-graphic__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--epg-text);
}

.ent-products .compact-data-pipeline-graphic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ent-products .compact-data-pipeline-graphic__button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--epg-border);
  border-radius: 8px;
  background: var(--epg-white);
}

.ent-products .compact-data-pipeline-graphic__button--selected {
  border-color: var(--epg-brand);
  box-shadow: 0 0 0 1px var(--epg-brand);
}

.ent-products .compact-data-pipeline-graphic__button-icon {
  display: inline-flex;
  margin-bottom: 6px;
}

.ent-products .compact-data-pipeline-graphic__button-icon svg {
  display: block;
}

.ent-products .compact-data-pipeline-graphic__button-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--epg-text);
}

.ent-products .compact-data-pipeline-graphic__button-placeholder {
  height: 8px;
  border-radius: 4px;
  background: var(--epg-skeleton);
}

.ent-products .compact-data-pipeline-graphic__button-placeholder--neutral {
  width: 64%;
}

.ent-products .compact-data-pipeline-graphic__button-placeholder--white {
  width: 72%;
  background: #edf1f5;
}
