/* MV_BundleDelivery (#337) — the giver-side "Download a file / Send via Drive"
   delivery chooser embedded in the Pass-the-tree-on (#58) and Share-part (#59)
   modals. The two method tiles mirror the import action segments (css/import.css)
   so picking a delivery reads like picking an import action. */

.bundle-delivery {
  margin-top: var(--space-md);
}

.bundle-delivery__label {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.bundle-delivery__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.bundle-delivery__method {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  min-height: var(--touch-target-min, 44px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bundle-delivery__method:hover:not(.bundle-delivery__method--selected) {
  border-color: var(--color-accent);
  background: var(--color-surface-alt, rgba(0, 0, 0, 0.02));
}

.bundle-delivery__method:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.bundle-delivery__method--selected {
  border-color: var(--color-accent);
  background: var(--color-accent-soft, rgba(0, 0, 0, 0.04));
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.bundle-delivery__method-title {
  font-weight: var(--font-weight-bold);
}

.bundle-delivery__method-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

/* The recipient-email sub-panel, revealed only when "Send via Drive" is chosen. */
.bundle-delivery__drive {
  display: none;
  margin-top: var(--space-sm);
}

.bundle-delivery__drive--shown {
  display: block;
}

.bundle-delivery__contacts {
  margin-top: var(--space-xs);
}

@media (max-width: 640px) {
  .bundle-delivery__methods {
    grid-template-columns: 1fr;
  }
}
