:root {
  --primary-color: #2563eb;
  --primary-hover: #3b82f6;
  --input-border: #2563eb;
  --input-focus-shadow: rgba(0, 115, 170, 0.6);
  --phone-color: #2563eb;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.wp-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wp-button:hover {
  background-color: var(--primary-hover);
}

.wp-input {
  margin-right: 20px;
  width: 50px;
  /* background-color: transparent; */
  color: #333;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.3s ease;
}

.wp-input:hover {
  border-color: var(--input-border);
}

input.wp-input:focus {
  border-color: var(--input-border);
  box-shadow: 0 0 8px var(--input-focus-shadow);
}

.modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0 15px;
  gap: 10px;
}

.modal-info {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* handles stacking on small screens */
  gap: 10px;
}

.modal-city {
  flex: 2;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.modal-phone {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  /* color: #000 !important; */
  color: var(--phone-color);
  margin: 0;
  text-align: right;
}

.modal-location {
  font-size: 14px;
  color: grey;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 10px; /* ← adds space from the phone number */
}

/* Responsive behavior */
@media (max-width: 600px) {
  .modal-item {
    flex-wrap: nowrap; /* Prevent outer container from wrapping */
  }

  .modal-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .modal-location {
    align-self: center;
  }
}
