.price-info-card {
    margin-bottom:30px;
    border-radius:8px;
    padding:30px 30px 30px;
    background:var(--white);
    box-shadow: 1px 3px 5px #dbdbdb;
}

.price-info-card h4 {
    margin-bottom: 15px;
}

.chekout-coupon {
    margin: 45px auto 5px;
    text-align: center
}

.checkout-charge {
    margin: 0 auto
}

.checkout-charge ul {

}

.checkout-charge ul li {
    padding: 15px 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid var(--border)
}

.checkout-charge ul li:last-child {
    border-bottom: none
}

.checkout-charge ul li:last-child span {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary)
}

.checkout-charge ul li span {
    font-weight: 500;
    color: var(--heading);
    text-transform: capitalize
}

.checkout-charge ul li span small {
    font-size: 14px;
    font-weight: 400;
    margin-left: 3px
}

.checkout-check {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 25px;
    margin-top: 50px
}

.checkout-check input {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    margin-top: 4px;
    cursor: pointer
}

.checkout-check label {
    line-height: 22px
}

.checkout-check label a {
    color: var(--primary)
}

.checkout-check label a:hover {
    text-decoration: underline
}

.checkout-proced .btn {
    width: 100%
}

.table-action .view i,
.table-action .trash i {
    background: var(--chalk)
}

@media (max-width: 767px) {

    .chekout-coupon,
    .checkout-charge {
        width: 100%
    }

    .checkout-check {
        margin-top: 15px
    }
}

/*
 * Phase 14 — mobile checkout summary
 * (customer/pages/checkout.blade.php, page markers: .checkout-items on the
 * Order Items card and .checkout-form on the whole checkout form).
 *
 * Desktop and tablet (>= 768px) keep the existing .table-list table exactly
 * as it was. Below 768px the SAME server-rendered row is re-flowed into a
 * self-contained summary card with CSS grid only — no cell is dropped and
 * the DOM the order form relies on (input names, ids, classes) is untouched.
 * This stylesheet is also loaded by the shared customer header, so every
 * rule below is scoped to markers that exist only on the checkout page.
 * The only new markup hook is the .qty-prefix label inside the quantity
 * cell, which the card layout needs once the table headers are hidden.
 */
.checkout-items .qty-prefix {
    display: none;
}

@media (max-width: 767px) {

    /* Release main.css's horizontal scroll container (overflow-x: scroll
       at <=1199px) — nothing overflows in card layout, so any future
       overflow stays visible instead of hiding behind a scrollbar. */
    .checkout-items .table-scroll,
    .checkout-items .table-list {
        overflow: visible;
    }

    .checkout-items .table-list,
    .checkout-items .table-list tbody {
        display: block;
        width: 100%;
    }

    /* Column headers are superseded by the per-card content. */
    .checkout-items .table-list thead {
        display: none;
    }

    /* Each <tr> becomes one summary card:
         [image + serial]  product name
                           price / package                 qty */
    .checkout-items .table-list tbody tr {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        grid-template-areas:
            "img  name  qty"
            "img  price qty";
        column-gap: 12px;
        row-gap: 8px;
        padding: 12px;
        margin-bottom: 12px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .checkout-items .table-list tbody tr td {
        display: block;
        min-width: 0;
        padding: 0;
        text-align: left;
        border: none;
    }

    /* Row number rides on the product image corner. */
    .checkout-items .table-list td.table-serial {
        grid-area: img;
        align-self: start;
        justify-self: start;
        position: relative;
        z-index: 1;
        margin: 4px;
    }

    .checkout-items .table-list td.table-serial h6 {
        margin: 0;
        padding: 3px 8px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--heading);
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .checkout-items .table-list td.table-serial h6::before {
        content: "#";
    }

    .checkout-items .table-list td.table-image {
        grid-area: img;
        align-self: start;
        text-align: left;
    }

    .checkout-items .table-list td.table-image img {
        display: block;
        width: 70px;
        height: auto;
        border-radius: 6px;
    }

    /* Long product names wrap inside the card, never clip. */
    .checkout-items .table-list td.table-name {
        grid-area: name;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Price / package strings wrap the same way. */
    .checkout-items .table-list td.table-price {
        grid-area: price;
    }

    .checkout-items .table-list td.table-price h6 {
        margin-bottom: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .checkout-items .table-list td.table-quantity {
        grid-area: qty;
        align-self: center;
        justify-self: end;
        text-align: right;
    }

    /* Quantity rendered as a labelled chip (the table header is gone). */
    .checkout-items .table-list td.table-quantity .cart-quantity {
        padding: 6px 12px;
        background: var(--chalk);
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .checkout-items .qty-prefix {
        display: inline;
        font-weight: 500;
        margin-right: 2px;
    }

    /* Comfortable (~44px) touch targets for the checkout actions. */
    .checkout-form .btn,
    .modal-form .btn {
        min-height: 44px;
    }

    /* main.css sizes .modal-form at a fixed 500px and only releases it at
       <=400px — between 401px and 767px the address modals were wider than
       the viewport and their fields clipped. Keep both checkout modals
       inside the screen. */
    #address-add .modal-dialog,
    #address-change-modal .modal-dialog {
        width: 100%;
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    #address-add .modal-form,
    #address-change-modal .modal-form {
        width: 100%;
        padding: 20px;
    }

    /* Keyboard focus stays clearly visible on checkout controls. */
    .checkout-form .btn:focus-visible,
    .checkout-form .account-card input:focus-visible,
    .modal-form .btn:focus-visible,
    #address-add .modal-close:focus-visible,
    #address-change-modal .modal-close:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
}
