/* Minimal, theme-friendly styling. Adjust if you want it prettier. */

.frfb-upload-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.frfb-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  max-width: 360px;
  position: relative;
}

.frfb-upload-left {
  min-width: 0;
}

.frfb-upload-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.frfb-upload-meta {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
}

/* HARD OVERRIDE: Elementor/theme is stomping on button styles */
.frfb-upload-item .frfb-upload-remove,
.frfb-upload-item button.frfb-upload-remove,
.frfb-upload-item .frfb-upload-remove.elementor-button,
.frfb-upload-item .frfb-upload-remove:visited {
  -webkit-appearance: none !important;
  appearance: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #e8e8e8 !important;
  color: #000000 !important;

  border: 0 !important;
  border-radius: 8px !important;

  padding: 8px 14px !important;
  min-height: 34px !important;

  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  text-decoration: none !important;
  box-shadow: none !important;

  cursor: pointer !important;
  white-space: nowrap !important;
}

.frfb-upload-item .frfb-upload-remove:hover {
  background: #0b5ed7 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.frfb-upload-item .frfb-upload-remove:focus,
.frfb-upload-item .frfb-upload-remove:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.35) !important;
}

.frfb-upload-item .frfb-upload-remove:active {
  transform: translateY(1px) !important;
}

/* Inline invalid-type message under the filename */
.frfb-upload-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: #f03a3a;
}

.frfb-upload-item.frfb-upload-item--invalid {
  border-color: rgba(240, 58, 58, 0.35);
}

/* Hide Elementor generic message when we’re rendering per-file messages */
.frfb-hide-elementor-upload-message .elementor-message.elementor-message-danger {
  display: none !important;
}
