.prestation-order-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border-color, var(--border, var(--gray-200)));
    border-radius: 14px;
    background: var(--bg-secondary, var(--card, var(--bg-primary)));
    color: var(--text-primary, var(--text, var(--gray-900)));
}

.prestation-order-heading,
.prestation-order-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.prestation-order-heading h3,
.prestation-order-title {
    margin: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.prestation-order-meta,
.prestation-week-summary {
    color: var(--text-secondary, var(--lou-text-2, var(--gray-600)));
    font-size: 14px;
    line-height: 1.6;
}

.prestation-order-lines {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.prestation-order-row > :first-child {
    overflow-wrap: anywhere;
}

.prestation-order-row > :last-child {
    margin-left: auto;
    white-space: nowrap;
}

.prestation-order-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color, var(--border, var(--gray-200)));
}

.prestation-order-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.prestation-line-description {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.prestation-line-description small {
    font-size: 12px;
}

.prestation-line-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 6px;
}

.prestation-line-price {
    white-space: nowrap;
}

.prestation-order-line[data-state="refunded"] .prestation-line-name,
.prestation-order-line[data-state="refunded"] .prestation-line-price {
    color: var(--text-secondary, var(--gray-600));
}

.prestation-order-badge {
    display: inline-block;
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--success, var(--gite-green));
    background: color-mix(in srgb, currentColor 13%, transparent);
}

.prestation-order-badge[data-state="refunded"] {
    color: var(--danger, var(--error, var(--gite-red)));
}

.prestation-week-summary {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.prestation-week-order {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

#resaPrestationsHead:disabled {
    cursor: default;
}

.resa-prestations-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
    color: var(--mc-text-2);
}

#resaPrestationsHead .resa-accordion__chevron {
    margin-left: 0;
}

#resaPrestationsHead .resa-accordion__chevron[hidden] {
    display: none;
}

#resaPrestationsBody {
    color: var(--mc-text);
}

#resaPrestationsBody > a {
    display: block;
    margin-top: 12px;
    color: var(--mc-accent, var(--text-primary));
    font-size: 13px;
}
