/* Mesmo padrão do visualizador do Repasse, para uma imagem por oferta. */
.offer-image-viewer {
  position: fixed;
  inset: 0;
  width: min(1160px, calc(100vw - 64px));
  max-width: none;
  height: min(900px, calc(100vh - 64px));
  height: min(900px, calc(100dvh - 64px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #394652;
  border-radius: 20px;
  background: #101820;
  color: #fff;
  box-shadow: 0 24px 90px #0008;
  overflow: hidden;
  font-family: inherit;
}
.offer-image-viewer::backdrop {
  background: rgb(5 15 24 / 83%);
  backdrop-filter: blur(5px);
}
.offer-image-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.offer-image-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 18px 22px;
  border-bottom: 1px solid #2a3540;
  background: #17232e;
}
.offer-image-viewer h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.offer-image-viewer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid #6b7a86;
  border-radius: 50%;
  background: rgb(23 35 46 / 94%);
  box-shadow: 0 2px 12px #0004;
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.offer-image-viewer button:hover { background: #354a5c; }
.offer-image-viewer button:focus-visible { outline: 3px solid #76dbdd; outline-offset: 3px; }
.offer-image-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.offer-image-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.offer-image-wrap { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.offer-image-content { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; border-radius: 4px; object-fit: contain; }
.offer-image-feedback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 24px; text-align: center; pointer-events: none; }
.offer-image-status { margin: 0; color: #d8e2e9; font-size: 16px; line-height: 1.5; }
.offer-image-viewer .offer-image-retry { width: auto; min-width: 160px; border-radius: 12px; padding: 10px 18px; pointer-events: auto; }
.offer-image-viewer [hidden] { display: none !important; }
@media (max-width: 640px) {
  .offer-image-viewer { width: 100%; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .offer-image-header { padding: max(14px, env(safe-area-inset-top)) 16px 14px; gap: 12px; }
  .offer-image-viewer h2 { font-size: 17px; }
  .offer-image-stage { padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
  .offer-image-content { border-radius: 0; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .offer-image-viewer { width: calc(100vw - 24px); height: calc(100dvh - 24px); border-radius: 12px; }
  .offer-image-header { padding: 8px 16px; }
  .offer-image-viewer h2 { font-size: 16px; }
  .offer-image-stage { padding: 4px 16px; }
}
