.appointment-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d8dee6;
    border-radius: 0.6rem;
    background: #fff;
}

.appointment-option--full {
    border-color: #e3b6ba;
    background: #f8e8e9;
    color: #742029;
}

.appointment-option__content {
    flex: 1;
    min-width: 0;
}

.appointment-option__date,
.appointment-option__details,
.appointment-option__place {
    display: inline;
}

.appointment-option__date {
    font-weight: 700;
}

.appointment-option__place {
    color: #5f6875;
}

.appointment-option__status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: #e9f6ee;
    color: #146c43;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.appointment-option__status--full {
    background: #b02a37;
    color: #fff;
}

.appointment-capacity-full {
    font-weight: 700;
}

.appointment-list {
    container-name: appointment-list;
    container-type: inline-size;
}

@media (max-width: 767.98px) {
    .appointment-option--structured {
        display: grid;
        grid-template-columns: 0.75rem 2.75rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 0.55rem;
        row-gap: 0.65rem;
        padding: 0.85rem;
    }

    .appointment-option--structured .appointment-option__indicator {
        grid-column: 1;
        grid-row: 1;
        margin-top: 0.35rem;
        font-size: 0.75rem;
    }

    .appointment-option--structured .gothe-switch {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .appointment-option--structured .appointment-option__content {
        grid-column: 3;
        grid-row: 1;
        line-height: 1.45;
    }

    .appointment-option--structured .appointment-option__date,
    .appointment-option--structured .appointment-option__details,
    .appointment-option--structured .appointment-option__place {
        display: block;
    }

    .appointment-option--structured .appointment-option__date {
        margin-bottom: 0.2rem;
    }

    .appointment-option--structured .appointment-option__place {
        margin-top: 0.15rem;
        font-size: 0.88rem;
    }

    .appointment-option--structured .appointment-option__separator {
        display: none;
    }

    .appointment-option--structured .appointment-option__status {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
    }
}

@container appointment-list (max-width: 575px) {
    .appointment-option--structured {
        display: grid;
        grid-template-columns: 0.75rem 2.75rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 0.55rem;
        row-gap: 0.65rem;
        padding: 0.85rem;
    }

    .appointment-option--structured .appointment-option__indicator {
        grid-column: 1;
        grid-row: 1;
        margin-top: 0.35rem;
        font-size: 0.75rem;
    }

    .appointment-option--structured .gothe-switch {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .appointment-option--structured .appointment-option__content {
        grid-column: 3;
        grid-row: 1;
        line-height: 1.45;
    }

    .appointment-option--structured .appointment-option__date,
    .appointment-option--structured .appointment-option__details,
    .appointment-option--structured .appointment-option__place {
        display: block;
    }

    .appointment-option--structured .appointment-option__date {
        margin-bottom: 0.2rem;
    }

    .appointment-option--structured .appointment-option__place {
        margin-top: 0.15rem;
        font-size: 0.88rem;
    }

    .appointment-option--structured .appointment-option__separator {
        display: none;
    }

    .appointment-option--structured .appointment-option__status {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
    }
}

.appointment-empty-state {
    max-width: 720px;
    margin: 1.25rem auto;
    padding: 2rem 1.5rem;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #f7faff;
    color: #25364a;
    text-align: center;
}

.appointment-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: .8rem;
    border-radius: 50%;
    background: #e3edfb;
    color: #2e6ebd;
    font-size: 1.25rem;
}

.appointment-empty-state h2 {
    margin: 0 0 .55rem;
    color: #1f2f43;
    font-size: 1.35rem;
}

.appointment-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: #5b6a7c;
    line-height: 1.55;
}

.appointment-empty-state--compact {
    margin-top: 1.5rem;
    padding: 1.5rem;
}
