/*
========================================
Daniel's Holsters Thank You Page
========================================
*/

/* -------------------------------------------------
   Custom Order Summary
------------------------------------------------- */

.dh-order-summary {
    width: 100%;
    margin-top: 40px;
    background: #fff;
    border: 1px solid #e3e3e3;
}

/* -------------------------------------------------
   Header
------------------------------------------------- */

.dh-order-summary-header {
    display: grid;
    grid-template-columns: 1fr 180px;
    padding: 18px 28px;
    background: #f7f7f7;
    border-bottom: 1px solid #e3e3e3;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #222;
}

.dh-order-summary-header div:last-child {
    text-align: right;
}

/* -------------------------------------------------
   Product Row
------------------------------------------------- */

.dh-order-product-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #e9e9e9;
}

.dh-order-product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* -------------------------------------------------
   Product Image
------------------------------------------------- */

.dh-order-product-image {
    flex: 0 0 88px;
}

.dh-order-product-image img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    padding: 7px;
}

/* -------------------------------------------------
   Product Details
------------------------------------------------- */

.dh-order-product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dh-order-product-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.dh-order-product-quantity {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
}

/* -------------------------------------------------
   Product Price
------------------------------------------------- */

.dh-order-product-price {
    text-align: right;
    font-size: 17px;
    font-weight: 600;
    color: #111;
}

/* -------------------------------------------------
   Totals
------------------------------------------------- */

.dh-order-summary-totals {
    padding: 8px 28px 10px;
}

.dh-order-total-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.dh-order-total-label {
    text-align: right;
    padding-right: 35px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.dh-order-total-value {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* -------------------------------------------------
   Final Total
------------------------------------------------- */

.dh-order-total-final {
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: none;
}

.dh-order-total-final .dh-order-total-label,
.dh-order-total-final .dh-order-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* -------------------------------------------------
   Mobile
------------------------------------------------- */

@media (max-width: 768px) {

    .dh-order-summary {
        margin-top: 30px;
    }

    .dh-order-summary-header {
        grid-template-columns: 1fr 100px;
        padding: 15px 18px;
    }

    .dh-order-product-row {
        grid-template-columns: 1fr 100px;
        padding: 18px;
    }

    .dh-order-product-info {
        gap: 14px;
    }

    .dh-order-product-image {
        flex: 0 0 65px;
    }

    .dh-order-product-image img {
        width: 65px;
        height: 65px;
        padding: 5px;
    }

    .dh-order-product-name {
        font-size: 16px;
    }

    .dh-order-product-quantity {
        font-size: 13px;
    }

    .dh-order-product-price {
        font-size: 16px;
    }

    .dh-order-summary-totals {
        padding: 8px 18px 10px;
    }

    .dh-order-total-row {
        grid-template-columns: 1fr 100px;
        padding: 11px 0;
    }

    .dh-order-total-label {
        padding-right: 20px;
        font-size: 14px;
    }

    .dh-order-total-value {
        font-size: 14px;
    }

    .dh-order-total-final .dh-order-total-label,
    .dh-order-total-final .dh-order-total-value {
        font-size: 17px;
    }
}

/* -------------------------------------------------
   Tax Included
------------------------------------------------- */

.dh-order-tax-included {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #777;
}

/* -------------------------------------------------
   Bank Details - Account Name
------------------------------------------------- */

.dh-bank-details h4 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Hide EFT payment details on PayFast orders */
.dh-payfast-order .dh-payment-details-heading,
.dh-payfast-order .dh-bank-details-widget {
    display: none !important;
}

