/* =====================================================================
   photo-admin.css — "Photos" upload tool (review only; never printed).
   A 📷 toggle turns each placeholder tile into a click-to-upload target.
   Visual language mirrors comments.css.
   ===================================================================== */

#pda-toolbar { font-family: var(--pd-font-sans); }

#pda-toolbar {
  position: fixed;
  right: 16px;
  bottom: 64px;                 /* sits above the 💬 Review toolbar */
  z-index: 9000;
  display: flex;
  padding: 6px;
  background: var(--pd-cardamom);
  border-radius: var(--pd-radius-pill);
  box-shadow: var(--pd-shadow-3);
}
#pda-toolbar button {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--pd-chai-milk);
  background: transparent; border: 0;
  border-radius: var(--pd-radius-pill);
  padding: 7px 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
#pda-toolbar button:hover { background: rgba(242,240,231,0.12); }
#pda-toolbar button.pda-on { background: var(--pd-cherry); color: #fff; }

/* While active, outline the uploadable tiles so they're easy to spot. */
body.pda-active [data-slot] {
  outline: 2px dashed color-mix(in srgb, var(--pd-cherry) 55%, transparent);
  outline-offset: -2px;
  position: relative;            /* anchor the upload button + status */
}

/* The per-tile "Upload photo" button (only shown while active). */
.pda-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  font-family: var(--pd-font-sans); font-size: 12px; font-weight: 700;
  color: #fff; background: var(--pd-cherry);
  border: 1.5px solid #fff; border-radius: var(--pd-radius-pill);
  padding: 8px 14px; cursor: pointer;
  box-shadow: var(--pd-shadow-2);
}
.pda-btn:hover { transform: translate(-50%, -50%) scale(1.05); }
body:not(.pda-active) .pda-btn { display: none; }

/* Inline status / error under the button. */
.pda-status {
  position: absolute;
  left: 50%; bottom: 8px;
  transform: translateX(-50%);
  z-index: 20;
  font-family: var(--pd-font-sans); font-size: 11px;
  color: #fff; background: var(--pd-cardamom);
  padding: 3px 8px; border-radius: var(--pd-radius-4);
  white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}

/* Never print the upload tool. */
@media print {
  #pda-toolbar, .pda-btn, .pda-status { display: none !important; }
  body.pda-active [data-slot] { outline: 0 !important; }
}
