.checkout-section {
    background: #ffffff;
    padding: 26px 0 64px;
    font-family: "Inter", sans-serif;
}

.checkout-container {
    max-width: 1240px;
    padding: 0 18px;
    margin: 0 auto;
}

.checkout-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.checkout-crumb {
    color: inherit;
    text-decoration: none;
}

.checkout-crumb.active {
    color: #1d4ed8;
    font-weight: 700;
}

.checkout-sep {
    color: #cbd5e1;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.checkout-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    padding: 16px 16px;
    margin-top: 30px;
}

.checkout-course.checkout-card {
    padding: 22px 22px;
}

.checkout-items h2,
.checkout-desc h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.checkout-item-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 210px;
}

.checkout-thumb {
    width: 280px;
    height: 176px;
    border-radius: 18px;
    overflow: hidden;
    flex: 0 0 280px;
    background: #e2e8f0;
}

.checkout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-right: 6px;
}

.checkout-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 16px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.checkout-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-price {
    margin: 0;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 15px;
}

.checkout-desc p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
}

.checkout-richtext {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
    color: #475569;
}

.checkout-richtext,
.checkout-richtext * {
    font-family: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    text-decoration: none;
    background: transparent !important;
}

.checkout-richtext p {
    margin: 0 0 12px;
}

.checkout-richtext p:last-child {
    margin-bottom: 0;
}

.checkout-richtext strong,
.checkout-richtext b {
    color: #0f172a;
    font-weight: 700;
}

.checkout-richtext ul,
.checkout-richtext ol {
    margin: 0 0 12px 20px;
    padding: 0;
}

.checkout-richtext li {
    margin-bottom: 6px;
}

.checkout-richtext h1,
.checkout-richtext h2,
.checkout-richtext h3,
.checkout-richtext h4,
.checkout-richtext h5,
.checkout-richtext h6 {
    margin: 0 0 10px;
    color: #0f172a;
    font-weight: 700;
}

.checkout-course h3,
.checkout-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1d4ed8;
    margin: 0 0 18px 0;
}

.checkout-course-top,
.checkout-course-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 44px;
}

.checkout-course-item {
    display: flex;
    gap: 14px;
    padding: 0;
    align-items: flex-start;
}

.item-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 1px;
}

.item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.item-infos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.item-infos .label {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.item-infos .value {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.35;
}

.item-infos .value.inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.item-infos .value.inline img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.rating .value {
    margin-left: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.checkout-course-divider {
    height: 1px;
    width: 100%;
    background: #e2e8f0;
    margin: 18px 0;
}

.checkout-course-rating {
    grid-column: 1 / span 2;
}

.checkout-sidebar {
    padding: 26px 22px 20px;
    border: 1.5px solid #bcd2f3;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.checkout-sidebar h3 {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #0d2f61;
}

.checkout-sidebar form {
    margin: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 16px;
    border-bottom: 1px solid #d2dceb;
}

.summary-row .label {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #183b73;
}

.summary-row .value {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8edf5;
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 30px 0 18px;
}

.summary-total .label {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #15376b;
}

.summary-total .value {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #2356a8;
}

.checkout-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #2356a8;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    border: 1px solid #2356a8;
    cursor: pointer;
    box-shadow: 0 7px 14px rgba(35, 86, 168, 0.25);
}

.checkout-action:hover {
    background: #1d4b93;
    border-color: #1d4b93;
}

@media (max-width: 960px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .checkout-sidebar {
        padding: 20px 16px 16px;
    }

    .checkout-sidebar h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .summary-row .label,
    .summary-row .value {
        font-size: 14px;
    }

    .summary-total .label {
        font-size: 15px;
    }

    .summary-total .value {
        font-size: 20px;
    }

    .checkout-action {
        height: 48px;
        font-size: 16px;
    }

    .checkout-course-grid {
        grid-template-columns: 1fr;
    }

    .checkout-thumb {
        width: 100%;
        height: 180px;
        flex-basis: auto;
    }

    .checkout-item-card {
        padding: 16px;
        gap: 14px;
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
    }
}
