/* Sale lights (SaleLightBadge.razor and the sale condition panel). Green, green with yellow, yellow, red and the blue title flag, borrowed from the auction industry.
   The light's name is always written next to the lamp so colour is never the only signal. */

.sale-light-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* One badge: a lamp and the light's name */
.sale-light {
    --light: #9aa4bd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border: 1px solid color-mix(in srgb, var(--light) 55%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--light) 16%, transparent);
    color: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.sale-light--green { --light: #34c36b; }
.sale-light--green-yellow { --light: #9fc43a; }
.sale-light--yellow { --light: #f2c230; }
.sale-light--red { --light: #ef5b5b; }
.sale-light--blue { --light: #4aa3ff; }

.sale-light--large {
    padding: 6px 14px 6px 10px;
    font-size: 0.95rem;
}

/* The lamp: a filled circle in the light's colour */
.sale-light__lamp {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light);
    box-shadow: 0 0 6px color-mix(in srgb, var(--light) 70%, transparent);
}

.sale-light--large .sale-light__lamp {
    width: 13px;
    height: 13px;
}

/* Green with yellow shows two lamps */
.sale-light__lamp--green { background: #34c36b; box-shadow: 0 0 6px rgba(52, 195, 107, 0.7); margin-right: -2px; }
.sale-light__lamp--yellow { background: #f2c230; box-shadow: 0 0 6px rgba(242, 194, 48, 0.7); }

/* "2 announced" next to the badge on a card */
.sale-light__count {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* The row on a vehicle card */
.vcard__condition {
    margin-top: 8px;
}

/* The sale condition section of the detail page */
.sale-condition {
    display: grid;
    gap: 14px;
}

.sale-condition__row {
    display: grid;
    gap: 6px;
}

.sale-condition__row p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.sale-condition__group h3 {
    margin: 10px 0 4px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.sale-condition__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.sale-condition__list li {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--mud-palette-lines-default);
    font-size: 0.92rem;
}

.sale-condition__list small {
    display: block;
    margin-top: 2px;
    color: var(--mud-palette-text-secondary);
}

.sale-condition__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
}

/* The picker on the listing form: one option per light */
.light-choice {
    display: grid;
    gap: 8px;
}

.light-choice__option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    cursor: pointer;
}

.light-choice__option--selected {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.light-choice__option p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
}

/* One announcement on the listing form: tick box, then its description */
.announce-item {
    display: grid;
    gap: 4px;
    padding: 2px 0;
}
