/* MODAL */
.acs-ce-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: inherit;
}

.acs-ce-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.acs-ce-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  margin: 4vh auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.acs-ce-modal-content h3 {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-size: 18px;
}

.acs-ce-close {
  position: absolute !important;
  top: 10px;
  right: 10px;

  width: 15px;
  height: 15px;
  line-height: 15px;

  font-size: 14px;
  text-align: center;

  background: transparent;
  border: none;
  cursor: pointer;

  padding: 0;
  margin: 0;

  z-index: 10;
}
.acs-ce-close:hover {
  color: #000;
  opacity: 0.7;
}
/* BODY */
.acs-ce-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* LEFT PANEL */
.acs-ce-left {
  width: 40%;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

#acs-ce-search {
  margin: 12px;
  padding: 8px 10px;
  width: calc(100% - 24px);
}

/* RADIO GROUP */
.acs-ce-type-switch {
  padding: 0 12px 12px;
  display: flex;
  gap: 12px;
}

.acs-ce-type-switch label {
  cursor: pointer;
  font-size: 14px;
}

/* LOCATION LIST */
#acs-ce-location-list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

#acs-ce-location-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

#acs-ce-location-list li:hover {
  background: #f7f7f7;
}

#acs-ce-location-list li.active {
  background: #e7f1ff;
  border-left: 4px solid #2271b1;
}

/* RIGHT PANEL */
.acs-ce-right {
  width: 60%;
  display: flex;
  flex-direction: column;
}

#acs-ce-map {
  flex: 1;
}

#acs-ce-location-details {
  padding: 12px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.acs-ce-marker {
  width: 28px;
  height: 28px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  background: url("/wp-content/plugins/acs-courier-by-competitive-edge/assets/img/pin.svg") no-repeat center;
  background-size: contain;
  transition: all 0.2s ease;
}

.acs-ce-marker.active {
  filter: hue-rotate(90deg) saturate(3);
  transform: scale(1.1);
}

.acs-ce-marker-tooltip {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.maplibregl-popup-content {
  padding: 6px 10px;
  border-radius: 6px;
}