/*
 * The relatives' view of a list (/l/{token}/{slug}): a card per wish, as the phone at the bottom of
 * docs/maquettes/index.html (.live). The page itself is the owner's frame (.list-page,
 * wishlist.css); colours from tokens.css only. Everything fits a 360 px wide screen.
 */

/* An archived list: still shown to the relatives (decision 12). */
.guest-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.84375rem;
}

/* The wishes: a card each. */
.live-items {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.live {
    background: var(--paper);
    border-radius: 18px;
    border: 1.5px solid var(--line);
    overflow: hidden;
}

/*
 * The photo, whole, on the mockup's lilac. Without one, a lower band of lilac: the mockup's 170 px
 * held a picture, and many ideas typed by hand have none. A minimum height, not a height: the box
 * grows with its photo without :has(), which older browsers lack.
 */
.live .hero {
    min-height: 96px;
    background: var(--lilac);
    display: grid;
    place-items: center;
}

.live .hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

.live .body {
    padding: 12px 14px 14px;
}

.live h2 {
    margin: 0;
    font: 650 1.125rem/1.25 var(--display);
    overflow-wrap: anywhere;
}

.prio {
    display: inline-block;
    font-size: 0.71875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.shopline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.shopline b {
    flex: none;
    color: var(--ink);
    font-size: 1.0625rem;
}

.live .qty {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.alsoat {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.alsoat a {
    color: var(--ink);
    text-underline-offset: 3px;
}

/* The owner's note. */
.quote {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--quote-bg);
    border-radius: 0 12px 12px 0;
    font-size: 0.84375rem;
    overflow-wrap: anywhere;
}

.quote small {
    display: block;
    color: var(--muted);
    font-size: 0.71875rem;
    margin-bottom: 2px;
}

/* The promo code, and its « Copier » (the copy controller). */
.promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font-size: 0.8125rem;
}

.promo span {
    flex: 1 1 auto;
    min-width: 0;
}

.promo-code {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-width: 0;
}

.promo code {
    font: 600 0.875rem/1 ui-monospace, Menlo, Consolas, monospace;
    color: var(--ink);
    background: var(--paper);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px dashed var(--gold-line);
    overflow-wrap: anywhere;
}

.promo .chip {
    flex: none;
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* « Copié », for a moment after a copy. */
.copied {
    color: var(--ok);
    font-weight: 600;
}

/* « Je le réserve » (a form of its own) and « Voir chez … », side by side, as wide as each other. */
.two {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.two > * {
    flex: 1 1 0;
    min-width: 0;
}

.two form {
    display: flex;
    margin: 0;
}

.two .btn {
    padding: 12px 8px;
    font-size: 0.875rem;
}

/*
 * An external list (plan 15, guest/_external_list.html.twig): its chip is a label, not one of the
 * form's buttons; its one button, « Liste chez … ↗ », takes the card's width, with the sentence
 * that sends the relatives to that site under it.
 */
.extlist .chip {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-style: solid;
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.71875rem;
    font-weight: 600;
    cursor: default;
}

.extlist .btn {
    margin-top: 14px;
    overflow-wrap: anywhere;
}

.extlist .hint {
    margin: 8px 0 0;
    text-align: center;
}

/* Under « Je le réserve »: what the owner will know of it (decision 13). */
.surprise-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

/*
 * « Je ne suis pas Léa, voir ce qui est déjà pris » (decision 1), above the wishes; once clicked,
 * a line that says so.
 */
.reveal {
    margin: 0 0 14px;
}

.reveal form {
    margin: 0;
}

.reveal .hint {
    margin: 6px 0 0;
    text-align: center;
}

.reveal-done {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
}

/* What is taken of a wish (.resa-status, .resa-help): wishlist.css, which the owner's rows share. */

/* The reservation form (/l/{token}/souhaits/{id}/reserver), and the pages without one. */
.reserve-page .crumb {
    margin-bottom: 8px;
}

.reserve-page h1 {
    overflow-wrap: anywhere;
}

.reserve-form .surprise-note {
    margin-top: 10px;
}

.list-empty .btn {
    margin-top: 14px;
}

/*
 * A reservation's page (/r/{token}, and /reservations/{id} for an account): its state, its actions,
 * each a form of its own, and its links.
 */
.reservation-page h1 {
    overflow-wrap: anywhere;
}

.reservation-page .resa-status {
    margin-top: 20px;
}

/* Cancelled: no green. */
.resa-status.cancelled {
    background: var(--line);
}

.resa-status.cancelled::before {
    background: var(--muted);
}

.reservation-actions,
.reservation-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.reservation-actions form {
    margin: 0;
}

.reservation-quantity .lbl {
    margin-top: 4px;
}

/* The quantity and its « Changer », side by side. */
.quantity-row {
    display: flex;
    gap: 8px;
}

.quantity-row .f {
    flex: 1 1 auto;
    min-width: 0;
}

.quantity-row .btn {
    flex: none;
    width: auto;
    padding: 10px 18px;
}

.reservation-page .surprise-note {
    margin-top: 12px;
}

.reservation-footer {
    margin-top: 28px;
    font-size: 0.78125rem;
    color: var(--muted);
    text-align: center;
}

/* A wish hidden by moderation (plan 08): its place kept, nothing of it shown. */
.live.removed {
    border-style: dashed;
    background: transparent;
}

.live.removed p {
    margin: 0;
    padding: 14px;
    font-size: 0.84375rem;
    color: var(--muted);
}

/*
 * « Suivre cette liste » (plan 12), below the wishes: a card as theirs (.live, the phone of
 * docs/maquettes/index.html), its button a ghost one.
 */
.follow {
    margin: 22px 0 0;
    padding: 12px 14px 14px;
    background: var(--paper);
    border-radius: 18px;
    border: 1.5px solid var(--line);
}

.follow h2 {
    margin: 0;
    font: 650 1.125rem/1.25 var(--display);
}

.follow p {
    margin: 6px 0 0;
    font-size: 0.875rem;
}

.follow form,
.follow > .btn {
    margin: 12px 0 0;
}

.follow .hint {
    margin-top: 8px;
    font-size: 0.78125rem;
    text-align: center;
}

/* The pages of « Suivre » and of its e-mails' links: a long title wraps. */
.follow-page h1,
.subscription-page h1 {
    overflow-wrap: anywhere;
}

.follow-page .crumb {
    margin-bottom: 8px;
}

/* The help under « Suivre cette liste », last in its card: the card's padding alone below it. */
.follow-page .card .hint {
    margin-bottom: 0;
}

/* « C’est fait », then how to follow again. */
.subscription-page header.page p + p {
    margin-top: 10px;
}

/* « Signaler cette liste », at the bottom of the relatives' view (plan 08): discreet. */
.report {
    margin: 28px 0 0;
    text-align: center;
    font-size: 0.78125rem;
}

.report a {
    color: var(--muted);
    text-underline-offset: 3px;
}

/* The report form (/l/{token}/signaler): the reasons, a radio each, in a bare fieldset. */
.report-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.report-form legend {
    padding: 0;
    margin-top: 0;
}

.report-form .check {
    margin-top: 8px;
}

.report-form .check label {
    font-weight: 400;
}
