/* ===================== Delivery (Invoice sending) - immersive ===================== */

/* Full width, like Shopify's settings pages: each area's label column plus its
   card use everything they're given. */
.dlv-page { max-width: none; }

/* The delivery form is an anchor only - its fields live inside the areas and
   associate through form="dlv-form", because those areas carry POST forms of
   their own and forms can't nest. It must take up no space. */
.dlv-anchor { display: block; margin: 0; padding: 0; }

/* ---- Empty states: a destination with nothing to configure yet -----------
   Rather than a lone button on a white field, the pane previews the artefact
   the merchant would get - the Slack alert, the Drive folder - because "what
   does this actually produce?" is the question stopping them from connecting. */

/* Holds the mock. The wash off the bottom is what marks it as a preview
   rather than live data. */
.es-stage {
  width: 100%;
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-subtle), #fff);
  border: 1px solid var(--line-soft);
}

.es-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .78));
}

/* Slack message mock. Desaturated so it reads as an example, not a live feed. */
.es-slack {
  display: flex;
  gap: 10px;
  text-align: left;
  filter: saturate(.55);
  opacity: .88;
}

.es-slack-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: none;
  background: var(--forest-2, var(--accent));
  display: grid;
  place-items: center;
}

.es-slack-body { min-width: 0; flex: 1; }

.es-slack-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.es-slack-name { font-size: 13px; font-weight: 700; color: #1d1c1d; }

.es-slack-badge {
  font-size: 11px;
  font-weight: 700;
  background: #e8e8e8;
  /* Darker than Slack's own grey: the preview sits under a fade, and #616061
     fell below 4.5:1 there. */
  color: #3d3c3d;
  border-radius: 3px;
  padding: 1px 4px;
}

.es-slack-time { font-size: 11px; color: #616061; }
.es-slack-lines { margin-top: 3px; display: grid; gap: 2px; }

.es-slack-lines p {
  font-size: 12.5px;
  color: #1d1c1d;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.es-slack-em { flex: none; font-size: 12px; }

/* Drive folder mock. */
.es-drive { text-align: left; filter: saturate(.55); opacity: .92; }

.es-drive-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.es-drive-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.es-drive-row:last-child { border-bottom: 0; }
.es-drive-row.is-ghost { color: #cdd4d1; }

.es-drive-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stands in for "and the ones after it" without inventing filenames. */
.es-drive-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

@media (max-width: 639px) {
  
  .es-stage { padding: 15px; }
}

.ph-label {
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
}

