.bookings {
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

.book-list {
    width: 65%;
}

.book-confirmed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-confirmed h2 {
    font-weight: 700;
    font-size: 22px;
    color: var(--muted-foreground);
    margin-top: 30px;
}

.book-item {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: stretch;
}

.book-item.selected {
    border: 2px solid var(--primary);
}

.book-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-content .flex {
    border: none;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.status-confirmado {
    background-color: #221c3d;
    color: #8162ff;
    width: auto;
    display: inline-block;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    border-radius: 100px;
    padding: 5px 10px;

    /* ESSENCIAIS para não esticar */
    width: -moz-fit-content;
    width: fit-content; /* encolhe ao texto */
    flex: 0 0 auto; /* não cresce nem encolhe por flex */
    align-self: flex-start; /* evita “stretch” na cross‑axis */
    white-space: nowrap; /* não quebra linha dentro da pílula */
}

.status-finalizado {
    background-color: var(--border);
    color: var(--muted-foreground);
    padding: 5px 10px;
    width: auto;
    display: inline-block;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    border-radius: 100px;

    /* ESSENCIAIS para não esticar */
    width: -moz-fit-content;
    width: fit-content; /* encolhe ao texto */
    flex: 0 0 auto; /* não cresce nem encolhe por flex */
    align-self: flex-start; /* evita “stretch” na cross‑axis */
    white-space: nowrap; /* não quebra linha dentro da pílula */
}

.book-date {
    padding: 12px 20px;
    text-align: center;
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.book-mes {
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-foreground);
}

.book-dia {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-foreground);
}

.bookings .barbearia-data {
    width: 35%;
}

.book-resumo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    background-color: var(--secondary);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px;
}

.book-service strong {
    font-size: 18px;
    font-weight: 700;
}

.book-service span {
    font-size: 16px;
    font-weight: 700;
}

.book-detail-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted-foreground);
}

.book-detail-value {
    font-size: 14px;
    font-weight: 300;
    color: var(--primary-foreground);
}

/* Grid 2 colunas x 3 linhas para desktop */
.agendamentos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(120px, auto);
    gap: 24px;
    margin-bottom: 24px;
    /* Mostra só 2 linhas por página (4 cards) */
}

/* Paginação desktop */
.paginacao {
    display: flex;
    gap: 8px;
    margin-bottom: 10;
    justify-content: center;
}
.paginacao a {
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--secondary);
    color: var(--primary-foreground);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.2s;
}
.paginacao a.active,
.paginacao a:hover {
    background: #8162ff;
    color: #fff;
}

/* Scroll horizontal mobile */
.agendamentos-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scroll-snap-type: x mandatory;
}
.agendamentos-scroll > * {
    min-width: 320px;
    scroll-snap-align: start;
}

.only-mobile-book {
    display: none;
}
@media (max-width: 900px) {
    .only-desktop-book {
        display: none !important;
    }
    .only-mobile-book {
        display: block !important;
    }
}
