.lunch_run {
    box-shadow: none;
}

.lunch_event {
    border: 1px solid var(--pico-muted-border-color);
    overflow: hidden;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0 1rem 0 0;
    margin: 0;
    height: 60px;
    position: relative;

    & > iconify-icon {
        flex: 0 0 max-content;
        font-size: 2.5rem;
        color: var(--fg);
        background: var(--bg);
        display: block;
        padding: 1rem;
    }

    h3, p {
        margin: 0 !important;
    }

    p {
        flex: 1 1 auto;
        text-align: right;
        padding: 0.35rem 0 0.35rem 1rem;
    }

    .button_to {
        height: 100%;
        display: block;
        flex: 0 0 max-content;

        &:last-child {
            margin-right: -1rem;
        }

        button {
            margin-bottom: 0;
            height: 100%;
            display: block;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }

    &.lunch_event--outcome {
        border: 1px solid var(--pico-primary-border);
        background: var(--pico-primary-background);
        color: var(--pico-contrast);
        max-width: fit-content;
        margin: 1rem auto 0;

        h3 {
            color: inherit;
        }
    }
}

.lunch_run__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0 !important;
}

.lunch_run__score {
    display: flex;
    align-items: center;
    padding: 0.4em 0.6em;
    border: 1px solid var(--pico-color-amber-150);
    background: var(--pico-color-amber-300);
    color: var(--pico-color-amber-950);
    border-radius: var(--pico-border-radius);
    font-size: 0.8em;
    font-weight: bolder;
    gap: 0.4em;
    box-shadow: 0 0 8px inset var(--pico-color-amber-500);

    & > img {
        aspect-ratio: 1 / 1;
        display: inline-block;
        height: 2cap;
        filter: drop-shadow(0 0 8px var(--pico-color-grey-900));
    }
}

.lunch_event__edit-container, .lunch_run__events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.lunch_event__edit-container .lunch_event {
    cursor: grab;

    &:active {
        cursor: grabbing;
    }
}

form#new_lunch_event {
    border: 1px solid var(--pico-muted-border-color);
    padding: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    background: var(--pico-form-element-background-color);
    margin: 1rem auto 0;
}

#lunch_runs {
    table {
        font-size: 1.3em;

        tr {
            td:first-of-type {
                width: 4ch;
            }

            td:nth-of-type(3) {
                a {
                    color: var(--pico-blockquote-footer-color);
                    text-decoration-color: currentColor;
                }
            }

            td {
                a {
                    display: block;
                }
            }
        }

        td.lunch_run__score {
            border-radius: initial;
            display: table-cell;
            width: min-content;
            white-space: nowrap;
            padding-right: 0;
        }
    }
}

.final_outcome {
    border: 1px solid var(--pico-muted-border-color);
    padding: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    background: var(--pico-form-element-background-color);
    margin: 1rem auto 0;
    max-width: 500px;
}