* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1f2937;
  font-family: Arial, Verdana, sans-serif;
  background: #f4f5f7;
}

.test-page {
  max-width: 780px;
  margin: 80px auto;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.test-page h1 {
  margin-top: 0;
  color: #5a5a5a;
  font-size: 24px;
}

.test-page p {
  margin-bottom: 24px;
  color: #555;
}

.coords-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0a73e;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.coords-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coords-trigger:hover,
.coords-trigger:focus {
  color: #c77d12;
  outline: none;
}

.coords-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.coords-modal-container {
  position: relative;
  width: min(780px, 90vw);
  max-height: 82vh;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.coords-modal-content {
  padding: 18px 18px 20px;
}

.coords-modal-content h2 {
  margin: 0 42px 16px 0;
  color: #5a5a5a;
  font-size: 18px;
}

.coords-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.coords-modal-close:hover,
.coords-modal-close:focus {
  background: rgba(0, 0, 0, 0.8);
  outline: none;
}

.coords-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coords-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coords-modal-summary-item {
  padding: 14px 16px;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  background: #f7f8fa;
}

.coords-modal-label {
  display: block;
  margin-bottom: 4px;
  color: #6c7280;
  font-size: 1rem;
}

.coords-modal-value {
  display: block;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
}

.coords-modal-info-message {
  padding-top: 8px;
  border-top: 1px solid #e6e8ef;
  color: #1f2937;
  font-size: 0.85rem;
  line-height: 1.45;
}

.coords-modal-empty {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .test-page {
    margin: 24px 12px;
    padding: 24px;
  }

  .coords-modal-summary {
    grid-template-columns: 1fr;
  }
}
