/**
 * Webkul Software.
 *
 * @category  Webkul
 * @package   Webkul_Marketplace
 * @author    Webkul Software Private Limited
 * @copyright Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */
//
//  Common (styles-m.css)
//
@import '_variables.less';
@import '_icons.less';

& when (@media-common =true) {
    .wk-card {
        display: flex;
        gap: 10px;
        margin: 10px 0;

        & > a {
            background: @wk-card-background;
            color: @wk-default-color;
            padding: 16px;
            padding-top: 20px;
            text-decoration: none;
            width: 100%;

            &.active {
                color: @wk-hover-color;
                border: 2px solid @wk-hover-color;
            }
        }

        .wk-product-count {
            font-size: 20px;
            font-weight: 400;
        }

        div {
            &:hover {
                cursor: pointer;
            }
        }
    }
    .wk-remark-preview {
        max-height: 400px;
        & > div {
            padding: 10px;
            .wk-date {
                font-weight: 600;
            }
        }
    }
    .admin__data-grid-header-row {
        div {
            &.admin__data-grid-filters-wrap {
                border: 1px solid @wk-admin-header;
                padding: 15px 15px;
            }
        }
    }
    .wk-remark-list {
        margin-bottom: 1rem;
    }

    .wk-news-popup-container {
        align-items: flex-end;
        bottom: 15px;
        display: flex;
        gap: 15px;
        position: fixed;
        right: 15px;
        z-index: 99;

        .wk-news-popup {
            background: @wk-block-color;
            border-radius: 8px;
            box-shadow: 0 30px 50px 0 @wk-card-header-color;
            max-height: 403px;
            width: 350px;
            z-index: 99;

            .wk-news-header {
                align-items: center;
                border-bottom: 1px solid @wk-card-background;
                display: flex;
                flex-flow: row nowrap;
                font-size: 16px;
                font-weight: 600;
                padding: 15px 15px;

                .wk-news-header-label {
                    margin-left: 5px;
                    width: 260px;
                }
            }

            .wk-news-content {
                max-height: 250px;
                overflow-y: auto;
                padding: 15px;
            }

            .wk-news-footer {
                display: flex;
                justify-content: space-between;
                padding: 15px 15px;
            }
        }
    }

    .wk-more-news {
        height: 38px;
        width: 120px;
        z-index: 99;
    }

    .wk-more-news-link {
        background: @wk-block-color;
        border-radius: 8px;
        box-shadow: 0 30px 50px 0 @wk-card-header-color;
        padding: 9px;
        text-align: center;
    }
    .modal-popup {
        &._remark-box {
            .modal-inner-wrap {
                padding-bottom: 30px;
            }
            .modal-title {
                font-size: 20px;
                font-weight: 600;
            }
        }
    }
    .mark-as-read-container {
        display: flex;
        justify-content: flex-end;
        margin: 10px 0;
    }

    .page-layout-2columns-left {
        .mark-as-read-container {
            position: absolute;
            right: 0;
            top: 0;
        }
    }

    .wk-all-news {
        padding-top: 5px;
    }

    .wk-news-date {
        color: @wk-news-date-color;
    }

    .marketplace-account-dashboard {
        .column.main {
            position: relative;
        }
    }

    .marketplace-account-adminnews {
        .column.main {
            position: relative;
        }
    }

    .wk-news-items {
        list-style-type: none;
        padding: unset;
        position: relative;
        li {
            &:before {
                color: @wk-indent-content-color;
                content: '>';
                font-weight: 900;
                left: 17px;
                position: absolute;
                top: 30px;
            }
        }
     
        .wk-news-item {
            border-bottom: 1px solid @wk-card-background;
            margin-bottom: 0;
            padding: 25px 25px 25px 40px;
            position: relative;

            [data-content-type='row'][data-appearance='contained'] {
                max-width: unset;
            }

            &.active {
                background: @wk-news-item-active;

                p {
                    font-weight: 600;
                }
            }

            & > p {
                margin-bottom: 5px;
            }
        }
    }

    .marketplace-account-dashboard.page-layout-seller-2columns-left {
        .wk-mp-main {
            .ask-que-to-admin-style {
                display: none;
            }
        }

        .wk-report-filter {
            right: 2rem;
            top: 14px;
        }
    }

    .marketplace-account-dashboard.page-layout-2columns-left {
        .wk-ask-question {
            button {
                display: none;
            }
        }
    }

    .wk-dashboard-container {
        display: grid;
        gap: 2rem;

        div.active {
            a.switch {
                background: @wk-activity-background-color !important;
            }
        }

        a.switch {
            background: @wk-page-main-background-color !important;
            border: unset !important;
        }

        .wk-border {
            border: 1px solid @wk-border-bottom-color;
            border-radius: 5px;
        }

        .wk-stats,
        .wk-order-block,
        .wk-customer-block {
            display: grid;
            grid-gap: 2rem;
            grid-template-columns: 1fr 1fr;
        }

        .wk-ask-question {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;

            .wk-daterange {
                left: 50%;
                position: absolute;
                top: 50%;
                transform: translate(-50%, -50%);
            }

            .wk-daterange-container {
                display: flex;
                display: none;
                position: relative;
                width: 200px;

                & > input {
                    &:first-child {
                        border-right: unset;
                    }

                    &:last-child {
                        border-left: unset;
                    }
                }
            }
        }

        .wk-sales-filter {
            width: 150px;
        }

        .wk-total-container {
            align-items: center;
            display: flex;
            grid-gap: 2rem;
            justify-content: space-between;
        }

        .wk-earning {
            display: grid;
            grid-gap: 2rem;
            grid-template-columns: 1fr 1fr 1fr;
            justify-items: left;
        }

        .wk-graph-heading {
            color: @wk-card-header-color;
            font-size: 14px;
            font-weight: 600;
        }

        .product.data.items {
            & > .item.title {
                & > .switch {
                    font-size: 18px;
                    font-weight: 600;
                    padding: 10px 20px !important;
                }
            }
        }

        .wk-heading {
            color: @wk-default-color;
            font-size: 16px;
            font-weight: 600;
        }

        .wk-grand-sale {
            color: @wk-text-color;
            font-size: 32px;
            font-weight: 700;
        }

        .wk-date,
        .wk-customer-identity {
            color: @wk-text-color;
            font-size: 14px;
            font-weight: 400;
        }

        .wk-info-heading {
            color: @wk-default-color;
            font-size: 18px;
            font-weight: 700;
        }

        .wk-info-label {
            color: @wk-default-color;
            font-size: 14px;
            font-weight: 600;
        }

        .wk-block-height {
            max-height: 479px;
            overflow-y: auto;
        }

        .wk-activities {
            display: grid;
            grid-auto-rows: max-content;
            grid-gap: 2rem;
            position: relative;

            & > div {
                &:before {
                    color: @wk-indent-content-color;
                    content: '>';
                    font-weight: 900;
                    left: 17px;
                    position: absolute;
                }
            }
        }

        .wk-activity-head,
        .wk-latest-orders,
        .wk-latest-comment-head {
            align-items: center;
            display: flex;
            justify-content: space-between;
        }

        .wk-activity {
            background: @wk-activity-background-color;
            padding: 2rem 2rem 2rem 4rem;
            position: relative;
        }

        .wk-arrow-up {
            color: @wk-arrow-up-color;
        }

        .wk-arrow-down {
            color: @wk-arrow-down-color;
        }

        .wk-dashboard-block {
            background: @wk-block-color;
            display: grid;
            grid-gap: 2rem;
            padding: 2rem;

            .wk-comment-n-review-item {
                border-bottom: 1px solid @wk-border-bottom-color;
                display: grid;
                grid-gap: 2rem;
                grid-template-columns: 5fr 1px 162px 1px 1fr;
                padding: 2rem 0;

                span {
                    background: @wk-card-background;
                }

                &:last-of-type {
                    border-bottom: unset;
                }

                .wk-comment-rating {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    justify-items: center;
                }
            }

            .wk-rating-container {
                background-color: @wk-div-background-color;
                height: 6px;
                width: 100%;

                .wk-rating {
                    background-color: @wk-rating-color;
                    color: @wk-block-color;
                    height: 6px;
                }
            }
        }

        .wk-calculation {
            display: flex;
            gap: 6px;
        }

        .wk-order-sale-container {
            background: @wk-block-color;
            display: grid;
            grid-gap: 2rem;
            padding: 24px;
        }

        .wk-order-img {
            border-radius: 8px;
            height: 75px;
            width: 75px;
        }

        .wk-category-block,
        .wk-top-product-block {
            align-items: center;
            display: flex;
            gap: 20px;
            padding: 1rem 0;
        }
    }

    .page-layout-seller-2columns-left.marketplace-account-dashboard {
        .wk-mp-page-main {
            background-color: @wk-block-color;
            margin-top: 14px;
            padding: unset;
        }
    }

    .wk-order-date,
    .wk-order-address.wk-order-detail,
    .wk-category-label,
    .wk-comment-label {
        color: @wk-text-color;
        font-size: 16px;
        font-weight: 400;
    }

    .wk-order-items {
        display: grid;
        grid-row-gap: .5rem;

        a {
            text-decoration: none;
        }
        .wk-order-item {
            border-bottom: 1px solid @wk-border-bottom-color;
            cursor: pointer;
            display: grid;
            gap: 2rem;
            grid-template-columns: 1fr 2fr 1fr;
            padding: 1rem 2rem;
            
            .wk-order-pending {
                background: @wk-rating-color;
            }
            .wk-order-closed,
            .wk-order-canceled {
                background: @wk-order-closed-status;
            }
            .wk-order-processing {
                background: @wk-hover-color;
            }

            .wk-order-complete {
                background: @wk-arrow-up-color;
            }

            .wk-order-status {
                border-radius: 21px;
                color: @wk-block-color;
                padding: 2px 11px;
                width: fit-content;
            }

            .wk-order-detail {
                &:nth-child(2) {
                    width: 90%;
                }
            }

            &:last-of-type {
                border-bottom: unset;
            }
            &:hover {
                background-color: @wk-page-main-background-color;
            }
        }
    }

    .wk-top-product-container {
        & > .wk-top-product-block {
            &:last-of-type {
                border-bottom: unset;
            }
        }
    }

    .wk-category-circle {
        align-items: center;
        border-radius: 39px;
        display: flex;
        font-size: 24px;
        font-weight: 700;
        height: 75px;
        justify-content: center;
        min-width: 75px;
    }

    .wk-category-container {
        & > .wk-category-block {
            &:nth-child(3n + 1) {
                & > .wk-category-circle {
                    background: @wk-category-circle-first;
                    color: @wk-order-product-count-bg-color;
                }
            }

            &:nth-child(3n + 2) {
                & > .wk-category-circle {
                    background: @wk-category-circle-second-bg;
                    color: @wk-category-circle-second-color;
                }
            }

            &:nth-child(3n + 3) {
                & > .wk-category-circle {
                    background: @wk-category-circle-third-bg;
                    color: @wk-category-circle-third-color;
                }
            }

            &:last-of-type {
                border-bottom: unset;
            }
        }
    }

    .wk-order-detail {
        display: grid;
        gap: .5rem;
    }

    .small-gap {
        gap: .5rem;
    }

    .disp-grid {
        display: grid;
    }

    .grid-a-r {
        grid-auto-rows: max-content;
    }

    .text-upper {
        text-transform: uppercase;
    }

    .wk-order-image-container {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .wk-order-image-wrap {
        position: relative;
    }

    .wk-order-product-count {
        background: @wk-order-product-count-bg-color;
        border-radius: 100%;
        bottom: 6px;
        color: @wk-block-color;
        font-size: 1.2rem;
        font-weight: bold;
        left: 1px;
        padding-left: .475rem;
        padding-right: .475rem;
        position: absolute;
    }

    .wk-tab-content {
        background: @wk-activity-background-color !important;
        display: grid !important;
        gap: 2rem !important;
        padding: 2rem !important;

        .wk-rating-main-block {
            display: grid;
            gap: 2rem;
            grid-template-columns: 1fr 1fr 1fr;

            .wk-rating-detail-container {
                align-items: center;
                display: grid;
                grid-template-columns: 40px 1fr 50px;
                justify-items: center;
            }
        }

        .wk-rating-icon-small {
            display: inline-block;
            padding-left: 20px;
            position: relative;
        }
    }

    .wk-report-filter {
        position: absolute;
        right: 0;
        top: 0;
    }

    .padding-unset {
        padding: unset !important;
    }

    .border-unset {
        border: unset !important;
    }

    .wk-mp-page-header {
        background: @wk-div-background-color;
    }

    .marketplace-account-dashboard {
        .page.messages,
        div.messages {
            margin-bottom: unset;
        }
    }

    hr.border-bottom {
        border-top: 1px solid @wk-border-bottom-color;
        margin: 1px 0;
    }

    .page-layout-seller-2columns-left {
        .marketplace-account-dashboard {
            .wk-mp-page-main {
                background-color: @wk-page-main-background-color;
                padding: 1rem 0 !important;
            }
        }
    }

    .wk-mp-page-header {
        display: block !important;
    }

    .product.data.items {
        .item.title {
            a {
                &:after {
                    right: 2rem;
                }
            }
        }
    }
}

@import '_responsive.less';
