.iande-appointment {
    padding: 0;

    &__summary {
        background: var(--iande-lighter-color);
        border-radius: var(--iande-border-radius) var(--iande-border-radius) 0 0;
        display: flex;
        line-height: 1.2;
        padding: 20px;

        &.collapsed {
            border-radius: var(--iande-border-radius);
        }

        @media screen and (max-width: 400px) {
            flex-direction: column;
        }

        & > :nth-child(2) {
            width: 100%;

            @media screen and (max-width: 800px) {
                flex-direction: column;
            }
        }
    }

    &__date {
        align-items: center;
        color: var(--iande-secondary-color);
        display: flex;
        flex-direction: column;
        font-family: var(--iande-title-font);
        justify-content: center;
        text-align: center;

        @media screen and (max-width: 400px) {
            border-bottom: 1px solid var(--iande-medium-color);
            padding-bottom: 10px;
        }

        @media screen and (min-width: 401px) {
            border-right: 1px solid var(--iande-medium-color);
            margin-right: 20px;
            padding-right: 20px;
        }
    }

    &__from {
        font-size: 0.875em;
    }

    &__day {
        font-size: 2em;
    }

    &__month {
        font-size: 1.5em;
    }

    &__summary-row {
        align-items: center;
        display: flex;
        justify-content: space-between;

        & > :nth-child(2) {
            align-items: center;
            display: flex;
            flex: 1;
            justify-content: flex-end;
        }

        @media screen and (max-width: 900px) {
            align-items: flex-start;
            flex-direction: column;

            & > :nth-child(2) {
                width: 100%;
            }
        }

        @media screen and (max-width: 400px) {
            & > :nth-child(1) {
                width: 100%;
            }
        }
    }

    h2 {
        color: var(--iande-secondary-color);
        font-size: 1.5em;
        font-weight: bold;
        margin: 0;
    }

    &__summary-main {

        @media screen and (max-width: 400px) {
            padding-top: 10px;
            text-align: center;
        }
    }

    &__info {
        margin-top: 10px;

        svg[data-icon] {
            color: var(--iande-tertiary-color);
            margin-right: 5px;
        }
    }

    &__toggle {
        color: var(--iande-secondary-color);
        font-size: 1.5em;
        margin-left: 20px;

        @media screen and (max-width: 600px) {
            display: none;
        }
    }

    &__toggle-button {
        align-items: center;
        background-color: var(--iande-secondary-color);
        border-radius: 0 0 var(--iande-border-radius) var(--iande-border-radius);
        color: white;
        display: none;
        font-size: 0.75em;
        font-weight: bold;
        justify-content: center;
        padding: 5px;
        text-transform: lowercase;

        @media screen and (max-width: 600px) {
            display: flex;
        }
    }

    &__details {
        background-color: var(--iande-lighter-color);
        padding: 20px;

        @media screen and (min-width: 601px) {
            border-radius: 0 0 var(--iande-border-radius) var(--iande-border-radius);
        }
    }

    &__boxes {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(24em, 1fr));

        @media screen and (max-width: 30em) {
            grid-template-columns: 1fr;
        }
    }

    &__box {
        font-size: 0.875em;

        & > * {
            padding: 10px;
        }

        & > * + * {
            border-top: 1px solid var(--iande-light-color);
        }

        &-title {
            align-items: flex-end;
            border-bottom: 3px solid var(--iande-tertiary-color);
            display: flex;
            justify-content: space-between;

            h3 {
                color: var(--iande-secondary-color);
                font-size: 1.25em;
                margin: 0;

                svg[data-icon] {
                    color: var(--iande-tertiary-color);
                    margin-right: 10px;
                }
            }
        }
    }

    &__edit {
        color: var(--iande-medium-color);
        font-size: 0.75em;
        margin-left: 10px;

        a {
            color: inherit;
        }
    }

    &__feedback-link {
        border-top: none;
        padding: 0;

        a {
            background-color: var(--iande-primary-color);
            border-radius: var(--iande-border-radius);
            color: var(--iande-secondary-color);
            display: block;
            font-weight: bold;
            line-height: 1;
            padding: 10px;
            text-align: center;
            text-decoration: none;
        }
    }

    &__buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 10px;

        .iande-button {
            margin-top: 1em;
            width: auto;

            & + .iande-button {
                margin-left: 20px;
            }

            svg[data-icon] {
                margin-left: 10px;
            }
        }
    }
}