/* TRUE FBS v6 — only requested visual/mobile corrections.
   Load AFTER all existing v5 styles. Do not change existing working selectors. */

/* 1. Hero floating card: use the prepared realistic two-label asset. */
.floating-card--labels.floating-card--labels-image {
  width: 228px;
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.floating-card--labels-image > img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* 3. Feature card: two real-looking labels instead of barcode placeholders. */
.dual-labels {
  position: relative;
  height: 92px;
  margin-top: auto;
  overflow: visible;
}

.dual-labels > img {
  position: absolute;
  bottom: -6px;
  left: 8px;
  width: 176px;
  max-width: calc(100% - 8px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(31, 55, 77, 0.10));
  pointer-events: none;
  user-select: none;
}

/* Old schematic label rectangles must not render when the new img is present. */
.dual-labels > span {
  display: none !important;
}

/* 4 + 6. Realistic Data Matrix asset in both scan and KIZ status blocks. */
.workflow-scan__code,
.mark-card__matrix {
  background: none !important;
}

.workflow-scan__code {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.workflow-scan__code > img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mark-card__matrix {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
}

.mark-card__matrix > img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* Replay button: desktop stays in the copy column, mobile copy is below demo. */
.scan-replay--mobile {
  display: none;
}

/* Mobile navigation login action. */
.mobile-nav__login {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  margin-top: 7px;
}

.mobile-nav > .button--primary {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  margin-top: 4px;
}

@media (max-width: 760px) {
  /* 2. Move 'Один рабочий процесс для' + WB/Ozon/ЧЗ lower, away from visual border. */
  .hero__logos {
    margin-top: 42px;
    padding-top: 4px;
  }

  /* Keep the generated label notification inside the narrow hero. */
  .floating-card--labels.floating-card--labels-image {
    width: 214px;
    left: -3px;
    bottom: -1px;
  }

  /* 5. Desktop replay button disappears; duplicate button after scan-demo appears. */
  .scan-replay--desktop {
    display: none !important;
  }

  .scan-replay--mobile {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    justify-self: center;
    margin: 16px auto 0;
  }

  /* 7. 16px is intentional: prevents browser form zoom on phones. */
  .modal input,
  .modal textarea,
  .modal select,
  .support-panel input,
  .support-panel textarea,
  .support-panel select {
    font-size: 16px !important;
  }

  .dual-labels {
    height: 96px;
  }

  .dual-labels > img {
    left: 50%;
    width: 184px;
    max-width: 90%;
    transform: translateX(-50%);
  }
}

@media (max-width: 430px) {
  .hero__logos {
    margin-top: 50px;
  }

  .floating-card--labels.floating-card--labels-image {
    width: 198px;
  }
}
