/* Verve Build List Modal styles */

.verve-buildlist-popup .modal-inner-wrap { max-width: 720px; }
.verve-buildlist-popup .modal-content { padding: 20px; }

#buildlist-modal.verve-buildlist-modal {
  font-size: 14px;
}

#buildlist-modal .verve-buildlist-header {
  margin-bottom: 12px;
}

#buildlist-modal .verve-buildlist-header h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

#buildlist-modal .verve-buildlist-entries {
  max-height: 380px;
  overflow: auto;
  margin: 10px 0 20px;
}

label.verve-buildlist-entry {
  display: block;
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
}

label.verve-buildlist-entry input[type="radio"] {
  position: absolute;
  left: -9999px;
}

label.verve-buildlist-entry .entry-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

label.verve-buildlist-entry:hover .entry-card {
  border-color: #c7c7c7;
}

/* Selected state: clearer border and subtle background, no inset overlay */
label.verve-buildlist-entry input[type="radio"]:checked + .entry-card {
  border-color: #d32f2f; /* red accent when selected */
  background: #fff5f5; /* subtle reddish background */
}

.entry-card .main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.entry-card .main-row .title {
  font-weight: 600;
}

.entry-card .main-row .sku {
  color: #666;
  margin-left: 6px;
  font-size: 12px;
}

.entry-card .main-row .qty {
  color: #333;
  font-size: 12px;
}

.entry-card .linked-list {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

.entry-card .linked-list li {
  margin: 2px 0;
}

.entry-card .option-list {
  margin: 2px 0 0 18px;
  color: #555;
  font-size: 12px;
}

.verve-buildlist-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 6px; /* keep buttons off the bottom edge */
}

.verve-buildlist-actions .action.primary {
  min-width: 120px;
}
