.order-details {
    box-shadow: 0px 2px 14px 0px #0000000A;
    padding: 32px 34px;
    border: 1px solid #1A130C2E;
    border-radius: 24px;
    box-sizing: border-box;
}

.order-details h3 {
    font-weight: 700;
    font-size: 26px !important;
    line-height: 31.2px !important;
    letter-spacing: 0.2px !important;
    margin: 0 0 32px 0;
}

.order-details table tbody tr:hover>td,
.order-details table tbody tr:hover>th {
    background-color: transparent;
}

table tbody tr,
table tbody tr,
table tbody>tr:nth-child(odd)>td,
table tbody tr:hover>td,
table tbody tr:hover>th {
    background: transparent !important;
}

.order-details .order_table_container th {
    background-color: #E2EDEB !important;
    color: #000 !important;
    text-align: center;
}

.order-details table thead:first-child tr:first-child th {
    border: 1px solid #CED7E4;
    padding: 16px 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
}

.order-details tbody tr td {
    font-size: 16px;
    line-height: 18px;
}

.bold-text {
    font-weight: 700;
}

.order-details .order_table_container {

    th,
    td {
        border: 1px solid #CED7E4;
        text-align: center;
        padding: 32.5px 10px;
        vertical-align: middle;
    }
}

.order-details tbody tr td:nth-child(2) {
    color: #1A130CCC;
}

.order-details .order_table_container {
    padding: 0;
    max-width: 100%;
}

.order-details .order_table_container table tr,
.order-details .order_table_container table td {
    padding: 10px;
    word-wrap: break-word;
}

.order-details {
    overflow-x: auto;
}

.order-details .view-order-btn {
    width: inherit;
    color: #000;
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: center;
    text-decoration: underline;
}

.order-details .view-order-btn:hover,
.order-details .view-order-btn:focus {
    border: none;
}

.order-details .order_table_container table tr {
    width: 100%;
    display: table;
    table-layout: fixed;
}

.order-details .order_table_container table th,
.order-details .order_table_container table td {
    border: 1px solid #ddd;
    text-align: left;
    width: 162px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.order-details .view-order-btn:focus {
    border: none;
}

#modalOrderDetails td {
    text-align: center;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px gray;
    z-index: 1000;
    width: 60%;
    max-width: 600px;
    display: none;
}

.modal-content table {
    border: 1px solid #ddd;
}

.modal-content {
    position: relative;
}

.modal-content .close-icon {
    top: -10px;
    right: 0;
}

.overlay {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.order_table_container table td[data-label="Customer Address"] {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.form_fields_con .lable_dv {
    margin-top: 10px;
}

.order-details .order_table_container table tr td:nth-child(10) {
    padding: 0;
}


@media (max-width: 768px) {
    .modal {
        width: 100% !important;
        max-width: 90% !important;
        margin: 0;
        height: 95vh;
        overflow: scroll;
    }
    .order-details .view-order-btn {
        text-align: end;
        padding: 0 10px 0 0;
    }

    .order-details .order_table_container table tr td:nth-child(7) {
        text-align: end !important;
    }
    .order-details .order_table_container table tr td:nth-child(7):before {
        text-align: start !important;
    }

    .order-details .order_table_container table,
    .order-details .order_table_container table td[data-label="Customer Address"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .order-details .order_table_container table tr,
    .order-details .order_table_container table td {
        width: 100%;
        padding: 10px;
        align-items: center;
    }

    .order-details {
        padding: 20px;
    }

    .order-details h3 {
        font-size: 22px;
    }

    .order-details .table-container tbody tr td::before {
        width: 60%;
    }

    .order-details .table-container>table td,
    .order-details .table-container>table th,
    .order-details tbody tr td {
        font-size: 16px;
    }

    .order-details th,
    td {
        border: 1px solid #CED7E4;
        text-align: start;
        padding: 20px 10px;
    }

    .order-details h3 {
        font-size: 20px !important;
        margin: 0 0 20px;
        line-height: 24px !important;
    }

    .order-details .order_table_container {

        th,
        td {
            padding: 10px;
            text-align: start !important;
        }
    }

    .modal-content {

        table,
        thead,
        tbody,
        th,
        td,
        tr {
            display: block;
            width: 100%;
        }

        table {
            min-width: unset !important;
            border: none;
        }

        thead {
            display: none;
            /* Hide table headers */
        }

        tr {
            margin-bottom: 15px;
            padding: 10px;
            background: #f8f8f8;
        }

        td {
            display: flex;
            justify-content: space-between;
            padding: 8px;
            border: none;
            border-bottom: 1px solid #ddd;
        }

        td::before {
            content: attr(data-label);
            font-weight: bold;
        }
    }

    .order-details .order_table_container table tr td:nth-child(10):before {
        width: 100%;
        padding: 10px 0 10px 10px;
    }
}