/* nearme widget */

.lp-location-widget {
  --lp-blue: #13a9e8;
  --lp-blue-dark: #029fe4;
  --lp-ink: #202634;
  --lp-muted: #8492ad;
  --lp-line: #dce3ed;
  --lp-soft-line: #e9edf3;
  --lp-page: #fbf7f5;
  --lp-white: #ffffff;
  position: relative;
  width: 100%;
  min-height: 357px;
  margin-bottom: 34px;
  overflow: visible;
  background: var(--lp-page);
  color: var(--lp-ink);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
}

.lp-location-widget *,
.lp-location-widget *::before,
.lp-location-widget *::after {
  box-sizing: border-box;
}

.lp-location-widget svg {
  display: block;
  max-width: none;
  height: auto !important;
  fill: none;
  stroke: currentColor;
}

.lp-location-widget button,
.lp-location-widget input {
  appearance: none;
  font: inherit;
}

.lp-location-widget button {
  cursor: pointer;
}

.lp-location-widget .lp-location-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 357px;
  padding: 22px 24px 44px;
}

.lp-location-widget .lp-title {
  margin: 0;
  color: #344058;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.lp-location-widget .lp-current-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 120px;
  align-items: center;
  width: 538px;
  max-width: 100%;
  min-height: 102px;
  margin-top: 42px;
  padding: 24px 29px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--lp-white);
  box-shadow: 0 7px 18px rgba(33, 47, 71, 0.09);
}

.lp-location-widget .lp-pin-icon {
  color: var(--lp-blue);
}

.lp-location-widget .lp-current-label {
  margin: 0 0 5px;
  color: var(--lp-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.lp-location-widget .lp-current-value {
  margin: 0;
  color: #171b25;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.lp-location-widget .lp-change-button {
  width: 120px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--lp-blue);
  color: var(--lp-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.lp-location-widget .lp-actions {
  display: grid;
  grid-template-columns: 310px 316px;
  gap: 19px;
  margin-top: 40px;
}

.lp-location-widget .lp-primary-action,
.lp-location-widget .lp-outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 78px;
  margin: 0;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.lp-location-widget .lp-primary-action {
  border: 2px solid var(--lp-blue);
  background: var(--lp-blue);
  color: var(--lp-white);
  box-shadow: 0 9px 16px rgba(0, 154, 220, 0.18);
}

.lp-location-widget .lp-outline-action {
  border: 2px solid var(--lp-blue);
  background: var(--lp-white);
  color: var(--lp-blue);
}

.lp-location-widget .lp-change-button:hover,
.lp-location-widget .lp-primary-action:hover {
  background: var(--lp-blue-dark);
}

.lp-location-widget .lp-outline-action:hover {
  background: rgba(19, 169, 232, 0.06);
}

.lp-location-widget .lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
}

.lp-location-widget .lp-overlay.lp-is-open {
  display: flex;
}

.lp-location-widget .lp-modal {
  width: 625px;
  height: 574px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--lp-white);
  box-shadow: 0 20px 60px rgba(11, 20, 35, 0.23);
}

.lp-location-widget .lp-modal-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: start;
  height: 97px;
  padding: 22px 25px 18px;
  background: var(--lp-blue);
  color: var(--lp-white);
}

.lp-location-widget .lp-modal-title {
  margin: 0 0 8px;
  color: var(--lp-white);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.lp-location-widget .lp-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
}

.lp-location-widget .lp-close-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lp-white);
}

.lp-location-widget .lp-modal-body {
  padding: 25px 25px 0;
}

.lp-location-widget .lp-search-input {
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid #cbd5e3;
  border-radius: 9px;
  outline: none;
  background: var(--lp-white);
  color: #1f2634;
  font-size: 19px;
  font-weight: 400;
}

.lp-location-widget .lp-search-input::placeholder {
  color: #9aa9bf;
}

.lp-location-widget .lp-search-input:focus {
  border-color: var(--lp-blue);
  box-shadow: 0 0 0 3px rgba(19, 169, 232, 0.13);
}

.lp-location-widget .lp-field-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 23px;
  color: #293143;
  font-size: 19px;
  font-weight: 400;
}

.lp-location-widget .lp-field-label svg {
  color: var(--lp-blue);
}

.lp-location-widget .lp-country-list-wrap {
  height: 324px;
  margin: 0 -25px;
  padding: 22px 25px 24px;
  overflow-y: auto;
  border-top: 1px solid var(--lp-soft-line);
  scrollbar-color: #c5d1df transparent;
  scrollbar-width: thin;
}

.lp-location-widget .lp-country-list-wrap::-webkit-scrollbar {
  width: 8px;
}

.lp-location-widget .lp-country-list-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c5d1df;
}

.lp-location-widget .lp-country-list {
  display: grid;
  gap: 10px;
}

.lp-location-widget .lp-country-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 19px 20px;
  border: 1px solid #e0e5ec;
  border-radius: 14px;
  background: var(--lp-white);
  color: var(--lp-ink);
  text-align: left;
}

.lp-location-widget .lp-country-card:hover {
  border-color: #b9dff4;
  box-shadow: 0 8px 18px rgba(15, 65, 88, 0.08);
}

.lp-location-widget .lp-country-code {
  color: #2e394d;
  font-size: 22px;
  font-weight: 700;
}

.lp-location-widget .lp-country-name {
  overflow: hidden;
  color: #202634;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-location-widget .lp-empty-state {
  display: none;
  padding: 36px 18px;
  color: var(--lp-muted);
  font-size: 18px;
  text-align: center;
}

.lp-location-widget .lp-empty-state.lp-is-visible {
  display: block;
}

@media (max-width: 720px) {
  .lp-location-widget .lp-location-screen {
    padding: 22px 14px 34px;
  }

  .lp-location-widget .lp-title {
    font-size: 22px;
  }

  .lp-location-widget .lp-current-card {
    grid-template-columns: 36px minmax(0, 1fr);
    width: min(100%, 538px);
    gap: 12px;
    padding: 20px;
  }

  .lp-location-widget .lp-change-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lp-location-widget .lp-actions {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .lp-location-widget .lp-primary-action,
  .lp-location-widget .lp-outline-action {
    height: 70px;
    font-size: 22px;
  }

  .lp-location-widget .lp-modal {
    width: calc(100vw - 24px);
    height: min(574px, calc(100vh - 24px));
    margin: 0;
  }

  .lp-location-widget .lp-modal-head {
    height: auto;
    min-height: 97px;
    padding: 22px 18px 18px;
  }

  .lp-location-widget .lp-modal-title {
    font-size: 24px;
  }

  .lp-location-widget .lp-modal-subtitle {
    font-size: 17px;
  }

  .lp-location-widget .lp-modal-body {
    padding: 24px 18px 0;
  }

  .lp-location-widget .lp-country-list-wrap {
    height: calc(100vh - 250px);
    min-height: 260px;
    margin: 0 -18px;
    padding: 18px;
  }
}
