/* Correção Safari iOS: rolagem do overlay de endereço (fluxo duas etapas). */
.mobile-overlay {
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 768px) {
  .mobile-overlay .pd-endereco-2etapas-mapWrap {
    height: 240px;
  }

  .mobile-overlay .pd-endereco-2etapas-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      to top,
      #fff 78%,
      rgba(255, 255, 255, 0.96) 92%,
      rgba(255, 255, 255, 0)
    );
    box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.05);
  }

  .mobile-overlay .pd-endereco-2etapas-actions .btnNewAddress {
    flex: 1 1 100%;
  }
}
