/**
 * Public-facing styles for EZ-FanCourier plugin
 */

/* Map container */
#ez-fancourier-map-container {
  margin-top: 15px;
  margin-bottom: 20px;
  /* Hidden by default, shown when FanBox option is checked */
}

#ez-fancourier-map-header {
  margin-bottom: 10px;
  position: relative;
}

#ez-fancourier-map-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Improved loading indicator styling */
#ez-loading-indicator {
  position: absolute;
  right: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

#ez-loading-indicator img {
  margin-left: 8px;
  width: 20px;
  height: 20px;
}
/* END MODIFICATION */

/* Map dimensions */
#ez-fancourier-map {
  height: 300px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

/* PUDO Locations List */
.pudo-locations-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background-color: #f9f9f9;
}

.pudo-locations {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pudo-location-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.pudo-location-item:last-child {
  border-bottom: none;
}

.pudo-location-item:hover {
  background-color: #f0f0f0;
}

.pudo-location-item.selected {
  background-color: #589fb924;
  border-left: 3px solid #333333;
}

.pudo-location-name {
  font-weight: 600;
  margin-bottom: 3px;
  flex: 1 0 60%;
}

.pudo-location-address {
  color: #666;
  font-size: 12px;
  flex: 1 0 100%;
  margin-bottom: 5px;
}

.select-pudo-btn {
  background-color: #3887be;
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.select-pudo-btn:hover {
  background-color: #2a6496;
}

/* Popup styles */
.maplibregl-popup-content {
  padding: 15px;
}

.maplibregl-popup-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.maplibregl-popup-content button {
  margin-top: 10px;
  background-color: #f36c2f;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.maplibregl-popup-content button:hover {
  background-color: #589fb9;
}

p.noMargin {
  padding-bottom: 2px !important;
}

/* .text-wrap {
  width: 90%;
  padding: 3%;
} */

.maplibregl-popup-content {
  padding: 5%;
}

button.select-pudo-btn {
  background-color: #f36c2f;
  color: #000000;
}

button.maplibregl-popup-close-button {
  background-color: #3c4554;
}

.maplibregl-user-location-accuracy-circle.maplibregl-marker.maplibregl-marker-anchor-center {
  opacity: 0 !important;
}
.error {
  border: red 1px solid;
  border-radius: 7px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #ez-fancourier-map {
    height: 250px;
  }
  
  .pudo-locations-list {
    max-height: 150px;
  }
}