/* Recorte da foto de perfil (foto-recorte.js). Vale nas duas versões do visual: só classes .mfr-. */
html.mfr-aberto, html.mfr-aberto body { overflow: hidden; }
.mfr {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 3000;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #08080a; color: #f5f5f7;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.mfr-titulo { flex: none; margin: 0; padding: 16px 16px 12px; text-align: center; font-size: 16px; font-weight: 600; line-height: 1.3; color: #f5f5f7; }
.mfr-palco { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.mfr-palco:active { cursor: grabbing; }
.mfr-foto { position: absolute; left: 0; top: 0; display: block; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; }
/* o círculo: o que fica dentro é o que vira a foto; a sombra escurece o resto */
.mfr-janela {
  position: absolute; left: 50%; top: 50%; box-sizing: border-box; border-radius: 50%; pointer-events: none;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 0 0 100vmax rgba(8, 8, 10, .68);
}
.mfr-palco:focus-visible .mfr-janela { border-color: #b4e05c; }
.mfr-base { flex: none; box-sizing: border-box; width: 100%; max-width: 480px; margin: 0 auto; padding: 14px 16px 16px; }
.mfr-zoom { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 20px; line-height: 1; color: #a9a9b2; }
.mfr-zoom input { flex: 1; min-width: 0; height: 44px; margin: 0; background: none; accent-color: #b4e05c; cursor: pointer; }
.mfr-acoes { display: flex; gap: 10px; margin-top: 8px; }
.mfr-btn {
  flex: 1; box-sizing: border-box; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; touch-action: manipulation;
}
.mfr-cancelar { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e0e0e5; }
.mfr-usar { background: #b4e05c; color: #10160a; }
.mfr-usar:disabled { opacity: .6; cursor: default; }
.mfr-btn:focus-visible, .mfr-zoom input:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 2px; }
@media (hover: hover) {
  .mfr-cancelar:hover { background: rgba(255, 255, 255, .13); }
  .mfr-usar:hover:not(:disabled) { background: #c3e978; }
}
/* celular deitado: pouca altura, então os controles vão para o lado da foto */
@media (orientation: landscape) and (max-height: 500px) {
  .mfr { flex-direction: row; flex-wrap: wrap; }
  .mfr-titulo { position: absolute; left: 0; top: 0; z-index: 1; padding: 10px 16px; font-size: 14px; }
  .mfr-palco { height: 100%; flex: 1 1 0; min-width: 0; }
  .mfr-base { width: 280px; max-width: 42%; align-self: center; margin: 0; }
  .mfr-acoes { flex-direction: column; }
}
