.user_orders {
    max-width: 1180px;
    margin: 34px auto 70px;
    padding: 0 20px;
    color: #222;
}

.user_orders_header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8e8e4;
    padding-bottom: 18px;
}

.user_orders_eyebrow {
    color: #b5a0d8;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.user_orders_title {
    color: #488ca7;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

.user_orders_counter {
    min-width: 112px;
    text-align: right;
    color: #777;
}

.user_orders_counter strong {
    display: block;
    color: #b5a0d8;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.user_orders_counter span {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.user_orders_back {
    display: inline-block;
    color: #488ca7 !important;
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom:10px;
}

.user_orders_back:hover {
    color: #488ca7 !important;
}

.user_orders_options {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}

.user_orders_options form,
.user_orders_options fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.user_orders_options form {
    margin-right: auto;
}

.user_orders_options label {
    display: block;
    color: #488ca7;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.user_orders_options select,
.user_orders_search_input input[type="text"] {
    border: 1px solid #deded8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 15px;
    height: 40px;
}

.user_orders_options select {
    min-width: 92px;
    padding: 0 12px;
}

.user_orders_options select[name="sort"] {
    min-width: 210px;
}

.user_orders_search_input {
    position: relative;
    width: 320px;
}

.user_orders_search_input input[type="text"] {
    width: 100%;
    padding: 0 78px 0 12px;
}

.user_orders_search_input input[type="submit"],
#user_orders_search_reset {
    position: absolute;
    top: 0;
    width: 38px;
    height: 40px;
    cursor: pointer;
}

.user_orders_search_input input[type="submit"] {
    right: 0;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #b5a0d8;
    background-image: url(../img/icon-search-w.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
}

#user_orders_search_reset {
    right: 38px;
}

#user_orders_search_reset:before,
#user_orders_search_reset:after {
    content: "";
    position: absolute;
    top: 19px;
    left: 12px;
    width: 14px;
    height: 2px;
    background: #999;
}

#user_orders_search_reset:before {
    transform: rotate(45deg);
}

#user_orders_search_reset:after {
    transform: rotate(-45deg);
}

.user_orders_stat {
    color: #777;
    font-size: 14px;
    margin: 0 0 12px;
}

.user_orders_table {
    border: 1px solid #e4e4df;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.user_orders_table_head,
.user_order_row {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr .95fr .65fr .9fr .9fr 1fr;
    gap: 0;
}

.user_orders_table_head {
    background: #f5f5f2;
    color: #488ca7;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.user_orders_table_head span,
.user_order_cell {
    padding: 15px 18px;
}

.user_order_row {
    align-items: center;
    border-top: 1px solid #eeeeea;
    transition: background-color 180ms ease;
}

.user_order_row:hover {
    background: #fbfbfa;
}

.user_order_cell {
    color: #555;
    font-size: 15px;
    line-height: 1.35;
}

.user_order_mobile_label {
    display: none;
}

.user_order_number a {
    color: #222;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.user_order_number a:hover {
    color: #488ca7;
}

.user_order_status {
    display: inline-block;
    border: 1px solid rgba(0, 102, 51, .18);
    border-radius: 4px;
    background: rgba(0, 102, 51, .06);
    color: #006633;
    font-size: 13px;
    line-height: 1.2;
    padding: 6px 10px;
}

.user_order_total {
    color: #222;
    font-weight: 500;
    text-align: right;
}

.user_order_actions {
    text-align: right;
}

.user_order_cart {
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    white-space: nowrap;
}

.user_order_cart[disabled] {
    cursor: default;
    opacity: .55;
}

.user_order_cart_message {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 5px;
}

.user_order_cart_message.info {
    color: #006633;
}

.user_order_cart_message.error {
    color: darkred;
}

.user_orders_empty {
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background: #f5f5f2;
    padding: 36px 28px;
    text-align: center;
}

.user_orders_empty h2 {
    color: #488ca7;
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.user_orders_empty p {
    color: #666;
    margin: 0;
}

.user_orders_footer {
    margin-top: 22px;
    text-align: center;
}

.user_orders_footer .paginator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    top: 0;
    padding-bottom: 0;
}

.user_orders_footer .paginator_page,
.user_orders_footer .paginator_curr,
.user_orders_footer .paginator_sep {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 4px;
    text-align: center;
}

.user_orders_footer .paginator_page {
    border: 1px solid #e4e4df;
    color: #488ca7;
}

.user_orders_footer .paginator_curr {
    background: #b5a0d8;
    color: #fff !important;
}

.user_dashboard {
    max-width: 1180px;
    margin: 34px auto 80px;
    padding: 0 20px;
    color: #15171d;
}

.user_dashboard .user_orders_eyebrow {
    color: #b5a0d8;
}

.user_dashboard_hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background-color: #fff;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 42px;
    padding: 34px 36px;
    position: relative;
    overflow: hidden;
}

.user_dashboard_hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 48%, rgba(255,255,255,.78) 100%);
}

.user_dashboard_hero_content,
.user_dashboard_search {
    position: relative;
    z-index: 1;
}

.user_dashboard_hero h1 {
    color: #222;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.12;
    margin: 0;
}

.user_dashboard_search {
    width: 420px;
    max-width: 45%;
    display: flex;
    align-items: center;
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
    padding: 10px 14px;
}

.user_dashboard_search button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: #488ca7 url(../img/icon-search-w.png) center no-repeat;
    background-size: 15px;
    cursor: pointer;
    flex: 0 0 auto;
}

.user_dashboard_search input {
    width: 100%;
    height: 36px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 18px;
    padding: 0 12px;
    outline: none;
}

.user_dashboard_search input::placeholder {
    color: #777;
}

.user_dashboard_cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.user_dashboard_card {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background: #fff;
    color: #222 !important;
    padding: 34px 26px 28px;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.user_dashboard_card:hover {
    border-color: rgba(181,160,216,.65);
    box-shadow: 0 14px 34px rgba(72,140,167,.12);
    transform: translateY(-2px);
}

.user_dashboard_card_icon {
    width: 46px;
    height: 46px;
    display: block;
}

.user_dashboard_card_icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.user_dashboard_card_title {
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.18;
}

.user_dashboard_categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.user_dashboard_category {
    min-height: 174px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background-color: #f5f5f2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff !important;
    padding: 24px;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.user_dashboard_category:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.62) 100%);
    z-index: 0;
}

.user_dashboard_category:hover {
    border-color: rgba(181,160,216,.75);
    box-shadow: 0 14px 34px rgba(72,140,167,.14);
    transform: translateY(-2px);
}

.user_dashboard_category_title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.16;
}

.user_order_view {
    max-width: 1180px;
    margin: 34px auto 70px;
    padding: 0 20px;
}

.user_order_view_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e8e8e4;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.user_order_view_title {
    text-align: right;
}

.user_order_view_title .user_orders_title {
    margin-bottom: 12px;
}

.user_order_back {
    color: #488ca7 !important;
    font-size: 15px;
    font-weight: 500;
}

.user_order_back:hover {
    color: #006633 !important;
}

.user_order_invoice {
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    overflow-x: auto;
}

.user_order_products {
    margin-top: 26px;
}

.user_order_products h2 {
    color: #488ca7;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.user_order_products .product_table_cont {
    border: 1px solid #e4e4df;
    border-radius: 8px;
    background: #f5f5f2;
    overflow: hidden;
}

.user_order_products .product_table {
    margin: 0;
}

.user_order_products .product_table td.to_cart {
    background-color: #b5a0d8;
}

.user_order_products .product_table td.to_cart:hover {
    background-color: #488ca7;
}

.user_order_view_actions {
    margin-top: 18px;
    text-align: right;
}

.user_order_view_actions .user_order_cart_message {
    text-align: right;
}

@media (max-width: 900px) {
    .user_dashboard {
        margin-top: 24px;
        padding: 0 14px;
    }

    .user_dashboard_hero {
        display: block;
        min-height: 0;
        margin-bottom: 24px;
        padding: 26px 22px;
    }

    .user_dashboard_hero h1 {
        font-size: 32px;
    }

    .user_dashboard_search {
        width: 100%;
        max-width: none;
        margin-top: 22px;
        box-sizing: border-box;
    }

    .user_dashboard_cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .user_dashboard_card {
        min-height: 150px;
        padding: 24px 20px 22px;
    }

    .user_dashboard_categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 24px;
    }

    .user_dashboard_category {
        min-height: 150px;
        padding: 22px;
    }

    .user_orders {
        margin-top: 24px;
        padding: 0 14px;
    }

    .user_orders_header {
        align-items: flex-start;
    }

    .user_orders_options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .user_orders_options form {
        grid-column: 1 / -1;
        margin-right: 0;
    }

    .user_orders_search_input {
        width: 100%;
    }

    .user_orders_options select,
    .user_orders_options select[name="sort"] {
        width: 100%;
        min-width: 0;
    }

    .user_orders_table {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .user_orders_table_head {
        display: none;
    }

    .user_order_row {
        display: block;
        border: 1px solid #e4e4df;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .user_order_cell {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 9px 14px;
        text-align: right;
    }

    .user_order_mobile_label {
        display: block;
        color: #488ca7;
        flex: 0 0 auto;
        font-size: 13px;
        font-weight: 500;
        text-align: left;
        text-transform: uppercase;
    }

    .user_order_total {
        text-align: right;
    }

    .user_order_view_header {
        display: block;
    }

    .user_order_view_header .user_orders_title {
        margin-top: 12px;
    }

    .user_order_view_title {
        text-align: left;
    }

    .user_order_invoice {
        padding: 12px;
    }
}

@media (max-width: 560px) {
    .user_dashboard_hero {
        background-size: auto 100%;
    }

    .user_dashboard_hero:before {
        background: rgba(255,255,255,.9);
    }

    .user_dashboard_cards {
        grid-template-columns: 1fr;
    }

    .user_dashboard_card {
        min-height: 122px;
    }

    .user_dashboard_card_title {
        font-size: 20px;
    }

    .user_dashboard_categories {
        grid-template-columns: 1fr;
    }

    .user_dashboard_category {
        min-height: 126px;
    }

    .user_dashboard_category_title {
        font-size: 21px;
    }

    .user_orders_header {
        display: block;
    }

    .user_orders_title {
        font-size: 25px;
    }

    .user_orders_counter {
        margin-top: 16px;
        text-align: left;
    }

    .user_orders_options {
        grid-template-columns: 1fr;
    }

    .user_order_cell {
        display: block;
        text-align: left;
    }

    .user_order_mobile_label {
        margin-bottom: 3px;
    }
}
