.checkout-success {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.success-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f7f9;
    border-radius: 5px;
}

.success-icon {
    margin-right: 20px;
}

.success-checkmark {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: relative;
}

.success-checkmark:after {
    content: "";
    position: absolute;
    width: 30px;
    height: 15px;
    border-bottom: 4px solid white;
    border-left: 4px solid white;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.success-title h1 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.order-number {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-link {
    color: #1979c3;
    text-decoration: none;
}

.success-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.success-section {
    background-color: #f5f7f9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.success-details .success-section {
    flex: 1 1 300px;
    margin-right: 20px;
}

.section-title h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 8px;
    display: flex;
}

.info-item .label {
    font-weight: bold;
    margin-right: 5px;
    min-width: 140px;
}

.order-items {
    margin-top: 20px;
    margin-bottom: 30px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e6e6e6;
}

.order-items-table thead th {
    background-color: #f5f7f9;
    font-weight: bold;
}

.order-items-table .col-image {
    width: 100px;
}

.order-items-table .product-image {
    max-width: 80px;
    max-height: 80px;
}

.order-items-table .col-price,
.order-items-table .col-qty,
.order-items-table .col-subtotal {
    text-align: right;
}

.order-items-table tfoot tr {
    background-color: #f5f7f9;
}

.order-items-table tfoot th {
    text-align: right;
    font-weight: normal;
}

.order-items-table tfoot td {
    text-align: right;
    font-weight: bold;
}

.order-items-table .grand-total {
    font-size: 16px;
    font-weight: bold;
}

.order-items-table .grand-total th,
.order-items-table .grand-total td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.actions-toolbar {
    margin-top: 30px;
    text-align: center;
}

.action.primary.continue {
    background-color: #1979c3;
    border-color: #1979c3;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
}

.action.primary.continue:hover {
    background-color: #166daf;
    border-color: #166daf;
}

@media (max-width: 767px) {
    .success-header {
        flex-direction: column;
        text-align: center;
    }

    .success-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .success-details {
        flex-direction: column;
    }

    .success-details .success-section {
        margin-right: 0;
    }

    .info-item {
        flex-direction: column;
    }

    .info-item .label {
        margin-bottom: 5px;
    }

    .order-items-table,
    .order-items-table thead,
    .order-items-table tbody,
    .order-items-table tfoot,
    .order-items-table th,
    .order-items-table td,
    .order-items-table tr {
        display: block;
    }

    .order-items-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .order-items-table tr {
        border: 1px solid #e6e6e6;
        margin-bottom: 15px;
    }

    .order-items-table td {
        border: none;
        border-bottom: 1px solid #e6e6e6;
        position: relative;
        padding-left: 50%;
    }

    .order-items-table td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    .order-items-table td:nth-of-type(1):before { content: "Image"; }
    .order-items-table td:nth-of-type(2):before { content: "Product Name"; }
    .order-items-table td:nth-of-type(3):before { content: "SKU"; }
    .order-items-table td:nth-of-type(4):before { content: "Price"; }
    .order-items-table td:nth-of-type(5):before { content: "Qty"; }
    .order-items-table td:nth-of-type(6):before { content: "Subtotal"; }

    .order-items-table tfoot tr {
        margin-bottom: 0;
        border-top: none;
    }

    .order-items-table tfoot th {
        display: none;
    }

    .order-items-table tfoot td {
        text-align: left;
        padding-left: 50%;
    }

    .order-items-table tfoot td:before {
        content: attr(data-th);
    }

    .order-items-table tfoot td:nth-of-type(1):before { content: "Subtotal:"; }
    .order-items-table tfoot td.discount:before { content: "Discount:"; }
    .order-items-table tfoot td.shipping:before { content: "Shipping & Handling:"; }
    .order-items-table tfoot td.tax:before { content: "Tax:"; }
    .order-items-table tfoot td.grand-total:before { content: "Grand Total:"; }
}