/**
 * Botão "Usar minha localização" — CEP / checkout
 */
.dm-geo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-geo-field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.dm-geo-field__row .form-control,
.dm-geo-field__row .search-query {
  flex: 1 1 140px;
  min-width: 0;
}

.dm-geo-locate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 10px;
  background: #fff;
  color: #ff7a00;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.dm-geo-locate-btn:hover:not(:disabled) {
  background: #fff8f0;
  border-color: #ff7a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.2);
}

.dm-geo-locate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.dm-geo-locate-btn.is-loading {
  pointer-events: none;
}

.dm-geo-locate-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.dm-geo-locate-btn.is-loading .dm-geo-locate-btn__icon {
  animation: dm-geo-pulse 0.9s ease-in-out infinite;
}

@keyframes dm-geo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}

.dm-geo-status {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #717171;
}

.dm-geo-status.is-loading {
  color: #ff7a00;
}

.dm-geo-status.is-error {
  color: #ffb4a0;
}

.lf-hero .dm-geo-status.is-success {
  color: #a8e6b0;
}

.lf-hero .dm-geo-status.is-error {
  color: #ffb4a0;
}

.lf-hero .dm-geo-status.is-loading {
  color: #ffc285;
}

body.delivery-store .dm-geo-status.is-success {
  color: #2e7d32;
}

body.delivery-store .dm-geo-status.is-error {
  color: #c62828;
}

.lf-search-form .dm-geo-field {
  width: 100%;
}

.lf-search-form .dm-geo-locate-btn {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 480px) {
  .lf-search-form .dm-geo-locate-btn {
    width: auto;
  }
}
