.manual-location-button {
  background: #fff4f2 !important;
  border-color: #c83232 !important;
  color: #9c2020 !important;
}

.leaflet-container.ups-amap-active {
  background: #e8eee9;
}

.ups-location-picker {
  align-items: center;
  background: rgba(17, 25, 20, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 5000;
}

.ups-location-panel {
  background: #f7faf7;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: grid;
  max-height: 94vh;
  max-width: 680px;
  overflow: hidden;
  width: 100%;
}

.ups-location-panel > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px 12px;
}

.ups-location-panel > header div {
  display: grid;
  gap: 3px;
}

.ups-location-panel > header strong {
  color: #173b28;
  font-size: 17px;
}

.ups-location-panel > header span {
  color: #52645a;
  font-size: 12px;
  line-height: 1.45;
}

.ups-location-close {
  background: transparent;
  border: 0;
  color: #45564c;
  font-size: 26px;
  line-height: 1;
  padding: 0 3px;
}

.ups-location-map-wrap {
  height: min(58vh, 520px);
  min-height: 330px;
  position: relative;
}

.ups-location-map {
  height: 100%;
  width: 100%;
}

.ups-location-crosshair {
  border: 3px solid #d62424;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 7px rgba(0, 0, 0, 0.3);
  height: 22px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  z-index: 900;
}

.ups-location-crosshair::before,
.ups-location-crosshair::after {
  background: #d62424;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ups-location-crosshair::before {
  height: 38px;
  width: 2px;
}

.ups-location-crosshair::after {
  height: 2px;
  width: 38px;
}

.ups-location-readout {
  background: #edf4ef;
  color: #294437;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  padding: 9px 14px;
  text-align: center;
}

.ups-location-panel > footer {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 1.45fr;
  padding: 12px;
}

.ups-location-panel > footer button {
  border: 1px solid #aebdb3;
  border-radius: 10px;
  font-weight: 650;
  min-height: 44px;
  padding: 8px 10px;
}

.ups-location-confirm {
  background: #a82424;
  border-color: #a82424 !important;
  color: white;
}

@media (max-width: 480px) {
  .ups-location-picker {
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
  }

  .ups-location-panel {
    border-radius: 14px 14px 0 0;
    margin-top: auto;
    max-height: 96vh;
  }

  .ups-location-map-wrap {
    height: 56vh;
    min-height: 300px;
  }

  .ups-location-panel > footer {
    grid-template-columns: 1fr 1fr;
  }

  .ups-location-confirm {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .location-card {
    flex-wrap: wrap;
  }

  .location-card > div {
    flex: 1 0 100%;
  }

  .location-card > button {
    flex: 1 1 0;
  }
}
