/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


/* ===========================================
   WooCommerce — Orders list
   =========================================== */

.symp-orders-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    border: 1px solid #e8e8e8;

    overflow: hidden;
}

.symp-orders-list__header,
.symp-orders-list__row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1.2fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
}

.symp-orders-list__header {
    background: #f7f7f7;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.symp-orders-list__row {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.symp-orders-list__row:last-child { border-bottom: none; }
.symp-orders-list__row:hover { background: #fafafa; }

.symp-orders-list__number a {
    font-weight: 600;
    color: var(--nectar-accent-color);
    text-decoration: none;
}
.symp-orders-list__date { font-size: 0.88em; color: #666; }
.symp-orders-list__total { font-size: 0.92em; }

.symp-orders-list__status {
    display: inline-flex;
    padding: 3px 10px;

    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f0f0f0;
    color: #555;
    white-space: nowrap;
}
.symp-orders-list__status--completed  { background: #e6f4ea; color: #2d7a3a; }
.symp-orders-list__status--processing { background: #fff3e0; color: #b45309; }
.symp-orders-list__status--on-hold    { background: #fef9c3; color: #854d0e; }
.symp-orders-list__status--cancelled,
.symp-orders-list__status--failed     { background: #fde8e8; color: #b91c1c; }
.symp-orders-list__status--refunded   { background: #ede9fe; color: #6d28d9; }

.symp-orders-list__btn {
    display: inline-block;
    padding: 6px 14px;

    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--nectar-accent-color);
    color: var(--nectar-accent-color);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.symp-orders-list__btn:hover {
    background: var(--nectar-accent-color);
    color: #fff;
}

@media (max-width: 700px) {
    .symp-orders-list__header { display: none; }
    .symp-orders-list__row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .symp-orders-list__number { grid-column: 1; }
    .symp-orders-list__date   { grid-column: 2; text-align: right; font-size: 0.82em; }
    .symp-orders-list__status { grid-column: 1; }
    .symp-orders-list__total  { grid-column: 2; text-align: right; }
    .symp-orders-list__actions { grid-column: 1 / -1; }
}

/* ===========================================
   WooCommerce — Order details
   =========================================== */

.symp-order-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.symp-order-details { flex: 2; min-width: 0; }
.symp-order-address { flex: 1; min-width: 0; }
@media (max-width: 700px) {
    .symp-order-layout { flex-direction: column; }
}

.symp-order-items {
    border: 1px solid #e8e8e8;

    overflow: hidden;
    margin-bottom: 0;
}

.symp-order-items__header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.symp-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.symp-order-item:last-child { border-bottom: none; }

.symp-order-item__image { flex-shrink: 0; width: 72px; }
.symp-order-item__image img { width: 72px; height: 72px; object-fit: cover; display: block; }
.symp-order-item__image a { display: block; }

.symp-order-item__name { flex: 1; font-size: 0.92em; }
.symp-order-item__name a { font-weight: 600; text-decoration: none; }
.symp-order-item__name a:hover { text-decoration: underline; }
.symp-order-item__qty { font-size: 0.85em; color: #888; margin-left: 6px; }
.symp-order-item__note { font-size: 0.82em; color: #888; margin-top: 4px; }
.symp-order-item__total { font-weight: 600; white-space: nowrap; font-size: 0.95em; }

.symp-order-totals {
    margin-top: 16px;
    border-top: 1px solid #e8e8e8;
    padding-top: 4px;
}
.symp-order-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 9px 4px;
    font-size: 0.9em;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
}
.symp-order-totals__row:last-child { border-bottom: none; }
.symp-order-totals__row > span:first-child { font-weight: 600; color: #333; }
.symp-order-totals__row--final {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid #e8e8e8;
    border-bottom: none;
    font-size: 1em;
    font-weight: 700;
    color: var(--nectar-accent-color);
}
.symp-order-totals__row--final > span { font-weight: 700; color: var(--nectar-accent-color); }

.symp-order-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

