.kyg-location-tray {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 2147483000;
  width: auto;
  max-width: 480px;
  max-height: calc(100vh - 24px);
  margin-left: auto;
  margin-right: auto;
  padding: 18px;
  overflow: visible;
  border: 1px solid rgba(27, 24, 54, .14);
  border-radius: 22px;
  background: #fff;
  color: #1b1836;
  box-shadow: 0 18px 55px rgba(17, 20, 40, .24);
  font-family: inherit;
}

.kyg-location-tray-safe {
  top: max(8px, env(safe-area-inset-top));
  left: 8px;
  right: 8px;
  max-width: 440px;
}

.kyg-location-tray-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kyg-location-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #f26a2e;
  font-family: "Barlow Condensed", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.kyg-location-tray h2 {
  margin: 0;
  color: #1b1836;
  font-family: "Barlow Condensed", Helvetica, Arial, sans-serif;
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kyg-location-tray-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #505766;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.kyg-location-tray-copy {
  margin: 12px 0 10px;
  color: #505766;
  font-size: 14px;
  line-height: 1.45;
}

/* Do not style the <geolocation> element itself. */
.kyg-native-geolocation-slot {
  margin: 10px 0 8px;
  min-height: 36px;
  overflow: visible;
}

.kyg-location-tray-status {
  min-height: 1.35em;
  margin: 10px 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.kyg-location-tray-status[data-tone="info"] { color: #365f9d; }
.kyg-location-tray-status[data-tone="success"] { color: #197044; }
.kyg-location-tray-status[data-tone="warning"] { color: #a9491f; }

.kyg-location-legacy-button,
.kyg-location-address-fallback {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.kyg-location-legacy-button {
  border: 1px solid #f26a2e;
  background: #f26a2e;
  color: #fff;
}

.kyg-location-address-fallback {
  border: 1px solid rgba(27, 24, 54, .15);
  background: #fff;
  color: #1b1836;
}

.kyg-location-privacy {
  display: block;
  margin-top: 10px;
  color: #747b88;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .kyg-location-tray {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    max-width: none;
    padding: 15px;
    border-radius: 18px;
  }

  .kyg-location-tray-copy { font-size: 13px; }

  .kyg-location-address-fallback,
  .kyg-location-legacy-button { width: 100%; }
}
