/* A notable transfer's or extraction's row (notable-row.js): a head line
   (reasons, when, the transaction, Details), what moved and its sats, and
   the details under it. The popover of a sat is sale-detail.css's
   .detail-pop; the reason chips, the moved entries and the parties are
   app.css's. */

.notable-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    min-width: 0;
}

/* When, the transaction and the toggle: kept together, on the right. */
.notable-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 10px;
    margin-left: auto;
    color: var(--ink-2);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.notable-meta a {
    color: var(--ink-2);
}

.notable-meta a:hover {
    color: var(--ink);
}

.notable-when {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.notable-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.notable-toggle:hover,
.notable-toggle[aria-expanded="true"] {
    background: var(--hover);
    color: var(--ink);
}

.notable-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

.notable-chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 120ms ease;
}

.notable-toggle[aria-expanded="true"] .notable-chevron {
    transform: translateY(1px) rotate(-135deg);
}

/* What moved, and its sats. */
.notable-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    min-width: 0;
}

.notable-moved,
.notable-sats-line {
    font-size: 12.5px;
}

.notable-sats-line {
    display: flex;
    align-items: baseline;
    gap: 0 4px;
}

.notable-sats-line > .k {
    flex: none;
}

.notable-sats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-variant-numeric: tabular-nums;
}

/* A sat: its badges and title (a button: its details), then its mint day. */
.notable-sat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.notable-sat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    padding: 1px 9px 1px 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--chip);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
}

.notable-sat:hover,
.notable-sat[aria-expanded="true"] {
    border-color: var(--control-border, var(--border));
    background: var(--hover);
}

.notable-sat:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

.notable-sat .sat-badges {
    flex: none;
}

/* A little smaller (badges.css sizes a pill and a capsule by these). */
.notable-sat .sat-badges {
    --sb-size: 21px;
    --sb-glyph: 12px;
    --sb-pad: 5px;
}

.notable-sat-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notable-sat-date {
    color: var(--ink-2);
    font-size: 12px;
    white-space: nowrap;
}

.notable-sats-note {
    color: var(--ink-2);
    font-size: 12px;
}

/* Details: everything else, on a sunken panel. */
.notable-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--sunken);
}

.notable-details[hidden] {
    display: none;
}

.notable-details .kv,
.notable-details .parties {
    font-size: 12.5px;
}

.notable-details .sep {
    margin: 0 5px;
}

/* The sat's popover: its badges with their labels wrap inside it. */
.notable-pop .sat-badges--labels {
    flex-wrap: wrap;
}

/* A phone: when and the transaction on a line of their own under the
   reasons, Details at its end. */
@media (max-width: 719.98px) {
    .notable-meta {
        flex: 1 0 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-left: 0;
    }

    .notable-toggle {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notable-chevron {
        transition: none;
    }
}

@media (forced-colors: active) {
    .notable-sat,
    .notable-toggle {
        border-color: ButtonText;
    }
}
