.rdv-section {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: .5rem;
    border-width: 1px;
    border: 1px solid #eef0f2;
}
.rdv-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.rdv-section .appointment-card {
    margin-bottom: 20px;
    height: 100%;
}

.appointment-card .appointment-inner-card {
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #c7cfd7;
    border-radius: 20px;
}

.appointment-card .appointment-inner-card .appointment-wrapper {
    display: grid;
    grid: 1fr / auto 1fr;
    gap: 20px;
    min-width: 0;
    align-items: start;
}

.appointment-card .appointment-wrapper .wrapper-image {
    margin-top: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.appointment-card .appointment-wrapper .appointment-image {
    border-radius: 8px;
    background-color: #eef0f2;
    width: 120px;
    height: 120px;
}

.appointment-card .appointment-image .appointment-picture {
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    transition-property: transform;
    float: left;
    position: relative;
    border: 0px solid;
}

.appointment-card .appointment-wrapper .appointment-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.appointment-card .appointment-content .wrapper-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.appointment-card .wrapper-date .appointment-date {
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: capitalize;
}

.appointment-card .wrapper-date .badge-cancelled,
.appointment-card .wrapper-date .blr-package-badge {
    margin-bottom: 8px;
    font-weight: 500;
    background: #000;
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 15px;
}

.appointment-card .wrapper-date .blr-package-badge {
    background: #b89b65;
}

.appointment-card .appointment-content .appointment-company {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}


.appointment-card .appointment-content .wrapper-info {
    color: #4e5860;
    font-size: 0.8rem;
}

.appointment-card .appointment-content .wrapper-info i {
    margin-right: 0.5rem;
}

.appointment-card .wrapper-info .appointment-address {
    display: flex;
    cursor: pointer;
    align-items: center;
    margin-bottom: 8px;
    color: #4e5860!important;
}

.appointment-card .appointment-address span {
    border-bottom: 1px solid #4e5860;
}

.appointment-card .appointment-title {
    display: block;
    width: 100%;
    margin-bottom: 6px;
}

.appointment-card .wrapper-info .appointment-description,
.appointment-card .appointment-description .wrapper-time,
.appointment-card .appointment-description .wrapper-price,
.appointment-card .appointment-description .wrapper-owner {
    display: inline-flex;
    align-items: center;
}

.appointment-card .wrapper-info .wrapper-price::before,
.appointment-card .wrapper-info .wrapper-owner::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    background-color: #c7cfd7;
    border-radius: 100%;
    margin-left: 8px;
    margin-right: 8px;
}

.appointment-card .appointment-inner-card .button-wrapper {
    display: flex;
    margin-left: 140px;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.appointment-card .button-wrapper .button-booking,
.appointment-card .button-wrapper .button-cancel {
    font-size: 0.8rem!important;
    border-radius: 8px!important;
    padding: 5px 12px!important;
    min-height: 35px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    height: fit-content;
    transition: 0.4s;
}

.appointment-card .button-wrapper .button-booking {
    background-color: #202020!important;
    color: #ffffff!important;
}

.appointment-card .button-wrapper .button-cancel{
    border: 1px solid var(--color-content-primary);
    color: var(--color-content-primary);
}

.appointment-card .button-wrapper .button-booking:hover {
    background-color: var(--color-content-primary)!important;
    color: #ffffff!important;
}

.appointment-card .button-wrapper .button-cancel:hover {
    background-color: var(--color-content-primary);
    color: #ffffff;
}

.blr-training-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: #f3f4f6;
    color: #374151;
}

.blr-training-status--confirmed {
    background: #ecfdf3;
    color: #027a48;
}

.blr-training-status--pending_payment {
    background: #fff7ed;
    color: #c2410c;
}

.blr-training-status--cancelled {
    background: #fef2f2;
    color: #b42318;
}

.blr-training-status--refund_pending {
    background: #fffbeb;
    color: #b54708;
}

.blr-training-status--refunded {
    background: #eff6ff;
    color: #175cd3;
}

.blr-training-status--refund_failed {
    background: #fef2f2;
    color: #b42318;
}


/* Mobile */
@media (max-width: 768px) {
    .rdv-section {
        padding: 0;
        border: none;
    }

    .appointment-card .appointment-inner-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 0 20px 20px 20px;
    }

    .appointment-card .appointment-inner-card .appointment-wrapper {
        display: block;
        grid: unset;
        gap: 0;
        min-width: 0;
        align-items: unset;
    }

    .appointment-card .appointment-wrapper .appointment-image {
        display: none;
    }

    .appointment-wrapper .appointment-content .wrapper-company-picture {
        width: 100%;
        margin-top: 12px;
        float: left;
        display: flex;
        flex-direction: row;
        gap: 8px;
        border-radius: 0;
        margin-bottom: 12px;
        align-items: flex-start;
    }

    .appointment-card .appointment-content .container-mobile-picture {
        height: 48px;
        width: 48px;
        flex-shrink: 0;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
    }

    .appointment-card .container-mobile-picture .appointment-picture-mobile {
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 50% 50%;
        transition-property: transform;
        float: left;
        position: relative;
        border: 0px solid;
    }

    .appointment-card .wrapper-info .appointment-description {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .appointment-card .wrapper-info .wrapper-price::before,
    .appointment-card .wrapper-info .wrapper-owner::before {
        display:none;
    }

    .appointment-card .appointment-inner-card .button-wrapper {
        display: flex;
        margin-left: 0;
        margin-top: 20px;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;
    }
}

.blr-training-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.blr-training-status.is-confirmed {
    background: #ecfdf5;
    color: #047857;
}

.blr-training-status.is-pending {
    background: #fffbeb;
    color: #92400e;
}

.blr-training-status.is-expired,
.blr-training-status.is-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.training-days-list {
    align-items: flex-start;
}

.training-payment-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
}

.training-payment-summary strong {
    color: #111827;
}