/**
 * Custom Order Widget Styles
 */

.custom-order-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.custom-order-widget .order-header:after {
    display: none !important;
}

.custom-order-widget .order-header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.custom-order-widget .order-number {
    font-size: 1.4em;
    margin: 0 0 5px;
    color: #23282d;
}

.custom-order-widget .order-date,
.custom-order-widget .order-status {
    font-size: 0.9em;
    color: #5e5e5e;
    margin-bottom: 5px;
}

.custom-order-widget .order-status {
    font-weight: bold;
}

.custom-order-widget h4 {
    font-size: 1.1em;
    margin: 15px 0 10px;
    color: #23282d;
}

.custom-order-widget table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.custom-order-widget th {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    color: #464646;
}

.custom-order-widget td {
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
    color: #555;
}

.custom-order-widget .order-items-table th,
.custom-order-widget .order-items-table td {
    vertical-align: top;
}

.custom-order-widget .order-totals-table {
    margin-top: 15px;
}

.custom-order-widget .order-totals-table th {
    width: 40%;
}

.custom-order-widget .order-totals-table td {
    text-align: right;
}

.custom-order-widget .order-total th,
.custom-order-widget .order-total td {
    font-weight: bold;
    font-size: 1.1em;
    border-top: 2px solid #e5e5e5;
    border-bottom: none;
}

.custom-order-widget address {
    font-style: normal;
    line-height: 1.5;
    margin: 5px 0 15px;
    color: #555;
}

.custom-order-widget .no-order-found,
.custom-order-widget .order-not-found {
    padding: 15px;
    text-align: center;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 3px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .custom-order-widget table,
    .custom-order-widget thead,
    .custom-order-widget tbody,
    .custom-order-widget th,
    .custom-order-widget td,
    .custom-order-widget tr {
        display: block;
    }
    
    .custom-order-widget thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .custom-order-widget tr {
        margin-bottom: 15px;
        border: 1px solid #e5e5e5;
    }
    
    .custom-order-widget td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .custom-order-widget .order-items-table td:before {
        position: absolute;
        left: 8px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
    }
    
    .custom-order-widget .order-items-table td:nth-of-type(1):before { content: "Product"; }
    .custom-order-widget .order-items-table td:nth-of-type(2):before { content: "Quantity"; }
    .custom-order-widget .order-items-table td:nth-of-type(3):before { content: "Price"; }
    
    .custom-order-widget .order-totals-table th,
    .custom-order-widget .order-totals-table td {
        text-align: left;
        padding-left: 8px;
    }
}