/* Exact established native-dialog viewer styling; only this page loads it. */
.web-publisher-screen a[data-orders-lightbox] { cursor: zoom-in; }

.difference-orders-viewer {
  width: min(1200px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 24px;
  border: 1px solid #d8c9e6;
  border-radius: 20px;
  background: #f7f3fb;
  color: #33283f;
  box-shadow: 0 30px 90px #09051066;
  overflow: auto;
}

.difference-orders-viewer::backdrop {
  background: #171322d9;
}

.difference-orders-viewer__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.difference-orders-viewer__heading h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.difference-orders-viewer__image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  object-fit: contain;
  margin: 0 auto;
}

.difference-orders-viewer__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.difference-orders-viewer__control {
  padding: 10px 13px;
  border: 1px solid #d8c8e5;
  border-radius: 8px;
  background: #fff;
  color: #5b4270;
  font: inherit;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}

.difference-orders-viewer__control:hover {
  background: #ede4f5;
}

.difference-orders-viewer__control[hidden] {
  display: none;
}

.difference-orders-viewer__control:focus-visible,
.difference-orders-viewer__original:focus-visible {
  outline: 3px solid #7861ad;
  outline-offset: 4px;
}

.difference-orders-viewer__status {
  margin: auto;
  font-size: 11px;
  color: #766783;
  text-align: center;
}

.difference-orders-viewer__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.difference-orders-viewer__original {
  color: #5b4270;
  font-size: 11px;
  line-height: 1.6;
}

.difference-orders-lightbox-open {
  overflow: hidden;
}

.difference-orders-viewer__surface:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #f7f3fb;
  color: #33283f;
  overflow: auto;
}

@media (max-width: 560px) {
  .difference-orders-viewer {
    padding: 16px;
    border-radius: 14px;
  }

  .difference-orders-viewer__heading h3 {
    font-size: 16px;
  }

  .difference-orders-viewer__control {
    padding: 10px;
    font-size: 10px;
  }
}
