
/* Woocommerce alert */
.dokan-message, .dokan-info, .dokan-error {
    border: none;
    background: none;
    border-radius: 0;
    &:before {
        #{$left}: 0;
        background: none;
        font-style: normal;
        padding: 0;
        width: auto;
        border-radius: 0;
    }
}
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.dokan-message, .dokan-info, .dokan-error {
    padding: 10px 3px;
    list-style-position: inside;
    text-align: $left;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    #main > .container > & {
        margin-top: 10px;
    }
    #main > .container-fluid > & {
        margin-top: 20px;
    }
    &:before {
        position: relative;
        top: 2px;
        margin-#{$right}: 5px;
        font-size: 20px;
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    }
}

.woocommerce-error {
    color: #6d1a17;
    list-style: none;
    li {
        padding: 5px 0;
    }
    li:before {
        content: "\f071";
        margin-#{$right}: 0.5rem;
        color: var(--bs-danger);
        font-size: 23px;
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        vertical-align: middle;
    }
}
.dokan-error {
    color: #6d1a17;
    &:before {
        content: "\f071";
        color: var(--bs-danger);
    }
}
.woocommerce-message, .dokan-message {
    .wc-forward {
        margin-#{$right}: 10px;
    }
    &:before {
        content: "\f00c";
        color: #0cc485;
    }
}
.woocommerce-info, .dokan-info {
    color: #2f6473;
    &:before {
        content: "\f05a";
        color: var(--info);
    }
}

/* Shop Table */
dl.variation {
    margin-bottom: 0;
    font-size: .625rem;
    text-transform: uppercase;
    p {
        font-size: inherit
    }
}
.shop_table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1em;

    a { 
        color: inherit; /*#777; */
        text-decoration: none;
    }

    a:not(.button):hover { 
        color: var(--bs-primary);
    }

    dt, dd {
        display: inline-block;
        margin: side-values(0 5px 0 0);
        font-weight: 400;
    }

    dd p {
        font-size: inherit
    }

    th {
        text-align: $left;
        padding: 10px;
    }

    td {
        text-align: $left;
        padding: 20px 10px;
    }

    tbody td.product-name {
        font-weight: 500;
        word-break: break-word;
    }

    tfoot tr:first-child th, tfoot tr:first-child td {
        padding: 28px 10px 10px;
    }

    tbody th,
    tfoot th {
        &:first-child {
            border-#{$left}: none;
        }
    }

    td.actions {
        padding: 20px 0;
        @media #{$screen-small} {
            .coupon > * {
                margin-bottom: 1rem
            }
        }
    }

    &.shop_table_responsive,
    &.responsive {
        @media #{$screen-medium} {
            border: 1px solid #e7e7e7;
            border-top: 4px solid var(--bs-primary);
            box-shadow: 0 2px 4px 0px rgba(0,0,0,0.05);
            thead {
                display: none;
            }
            tr {
                display: block;
                padding: 20px 0;
                position: relative;
                &:first-child {
                    border-top: none;
                }
            }
            tfoot {
                th {
                    border: none;
                }
            }
            td,
            th {
                background: transparent;
                text-align: center;
                display: block;
                padding: 5px 10px;
                border: none;

                &.product-remove {
                    position: absolute;
                    #{$right}: 0;
                    top: 12px;
                }
                &.product-thumbnail {
                    padding-top: 10px;
                }
            }

        }
    }

    .featured-box & {
        box-shadow: none;
        border: none;

        th {
            background: transparent;
            border-bottom: none;
            font-weight: 600;

            &:first-child,
            &:last-child,
            &:only-child {
                border-radius: 0;
            }
        }

        td {
            border-#{$left}: none;
        }

        tr {
            &:last-child {
                td {
                    &:first-child,
                    &:last-child,
                    &:only-child {
                        border-radius: 0;
                    }
                }
            }
        }

        .product-remove {
            .remove {
                font-size: 30px;
                font-weight: 800;
                text-decoration: none;
            }
        }

        .quantity {
            margin: 0;
            width: auto;

            input.qty {
                border-radius: 0;
                width: 38px;
                height: 30px;
                padding: 0 4px;
            }

            .minus,
            .plus {
                width: 30px;
                height: 30px;
            }
        }

        .coupon {
            margin-top: 16px;
            width: 50%;
            label {
                display: none;
            }
            #coupon_code {
                max-width: 280px;
            }
        }

        .actions,
        .cart-actions {
            margin-top: 8px;
            padding-bottom: 10px;
            input, button {
                margin-bottom: 15px;
            }
        }

        @media #{$screen-normal} {
            .coupon {
                width: 100%;
            }
            .pt-left,
            .pt-right {
                float: none !important;
                text-align: center;
            }
        }
    }
}

.order-again .button {
    padding: 0 1.5rem; 
}

.btn-go-shop { 
    min-width: 200px;
    padding: 16px 0; 
    font-size: 15px; 
    letter-spacing: -.015em;
    text-align: center;
}

.wc-action-btn.wc-action-sm {
    font-size: 13px;
    letter-spacing: -.015em;
}

.wc-action-btn.button, .order-again .button, .btn-v-dark {
    font-weight: 700;
    text-transform: uppercase;
}

/* Order detail*/
@media(min-width: 992px) {
    .order-info,
    .woocommerce-order-details {
        width: 90%;
    }
}

.order-info {
    .order-item { 
        width: 20%;
        font-size: 13px;
        line-height: 24px;
        text-align: center;
        @media #{$screen-medium} {
            width: 33.3333%;
            margin-bottom: 2rem;
        }
        @media #{$screen-small} {
            width: 50%;
        }
    }
}

.order_details tbody .amount,
.checkout-order-review tbody .amount,
.checkout-order-review .cart-subtotal {
    color: #777;
    font-weight: 500;
}

.order_details tr td:last-child,
.checkout-order-review tr td:last-child {
    text-align: right;
}

.order_details {
    tbody {
        tr.order_item { 
            line-height: 20px;
            border-bottom-width: 0;
            td {
                padding-top: 9px;
                padding-bottom: 0;
            }
        }
        td.product-name {
            padding-top: 9px;
        }
    }

   tfoot {
        tr {
            padding: 5px 0;
            td {
                color: #777;
                font-weight: 500;
            }
            &:last-child {
                h4 {
                    font-size: 16px;
                }
                .amount {
                    font-size: 22px;
                    font-weight: 700;
                }
            }
        }
    }

    .wc-item-meta { 
        padding-left: 5px;
        margin-bottom: 0;
        li {
            display: flex;
            font-size: 12px;
            color: #999;
        }
        strong {
            margin-right: 10px; 
        }
        strong,
        p {
            font-weight: 500;
        }
    }
}

.featured-box .cart-actions {
    margin-top: 8px;
    margin-bottom: 20px;
}

/*Order Complete*/
.woocommerce-thankyou-order-received {
    padding: 36px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
    border: 2px solid #0cc485;
}

.success-message,
.woocommerce-thankyou-order-received {
    i {
        color: #0cc485;
    }
}

.woocommerce-thankyou .woocommerce-order-details {
    width: 100%;
}
.woocommerce-account,
.woocommerce-thankyou,
.woocommerce-checkout,
#login-form-popup {
    .account-sub-title {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -.01em;
        i {
            font-size: 35px;     
        }
    }
    .featured-boxes {
        border: 2px solid #e7e7e7;
    }
}
.woocommerce-checkout,
.woocommerce-cart,
.woocommerce-order-details {
    h4 {
        letter-spacing: -.01em; 
        font-size: 14px;
        font-weight: 600;
    }

    .card-sub-title {
        font-weight: 700;
    }
}
/* Product Thumbnail Remove*/

.woocommerce #content table.shop_table.wishlist_table.cart a.remove,
.product_list_widget .product-details a {
    color: #474747;
}

/* Layout */
.u-column1.col-1 { max-width: none; -webkit-flex: none; -ms-flex: none; flex: none; padding-left: 0; padding-right: 0; }
.col2-set {
    @include clearfix;
    margin: 0 -15px;

    .col-1, .col-2 {
        width: 50%;
        padding: 0 15px;
        max-width: none;
        -webkit-flex: none; -ms-flex: none; flex: none;
    }

    .col-1 {
        float: $left;
    }

    .col-2 {
        float: $right;
    }

    @media #{$screen-normal} {
        .col-1,
        .col-2 {
            float: none;
            width: 100%;
        }
    }
}

.chosen-container-single .chosen-single,
.woocommerce-checkout .form-row .chosen-container-single .chosen-single {
    background-image: none;
    height: 34px;
    line-height: 28px;
    padding: 3px 8px;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;
}

.chosen-container-single .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;
}

.chosen-container-single .chosen-single div b,
.woocommerce-checkout .form-row .chosen-container-single .chosen-single div b {
    background-position: 0 7px !important;
}

.chosen-container-active.chosen-with-drop .chosen-single div b,
.woocommerce-checkout .form-row .chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 7px !important;
}

.select2-container .select2-choice {
    background-image: none;
    height: 34px;
    line-height: 28px;
    padding: 3px 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;
}

.select2-container-active .select2-choice {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;
}

.select2-container .select2-choice .select2-arrow b:after,
.select2-dropdown-open .select2-choice .select2-arrow b:after {
    @if $rtl == 1 {
        margin-right: -7px;
    }
}

.select2-drop,
.select2-drop-active {
    margin-top: -2px;

    .select2-search {
        padding-top: 4px;
    }

    .select2-results {
        font-size: .9em;

        li {
            line-height: 20px;
        }
    }
}

.form-row {
    &:not(.row) {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    margin-bottom: 15px;
    vertical-align: top;
    label {
        display: block;

        &.checkbox {
            display: inline-block;
        }

        &.inline {
            display: inline;
        }
    }
    .required {
        border: none;
        cursor: default;
        color: #c10000;
    }
    input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select, textarea {
        width: 100%;
        /*box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset;*/
    }
}

.form-row-wide {
    width: 100%;
}

.form-row-first {
    float: $left;
    width: 50%;
    padding-right: 10px;
    @media #{$screen-medium} {
        float: none;
        width: 100%;
        padding-right: 0;
    }
}
.form-row-last {
    float: $right;
    width: 50%;
    padding-left: 10px;
    @media #{$screen-medium} {
        float: none;
        width: 100%;
        padding-left: 0;
    }
}

/* Header Title */
header.title {
    position: relative;
    @include clearfix();

    h3 {
        float: $left;
        margin-bottom: 15px;
    }

    .edit {
        float: $right;
        margin-bottom: 15px;
    }
}

form.global-login {
    label.inline {
        display: inline-block;
        margin: 0;
        vertical-align: middle;
    }
    #rememberme {
        margin-#{$left}: 10px;
    }
}

.wcml-switcher {
    position: relative;
    h5 {
        cursor: pointer !important;
    }
    li.loading {
        display: inline-block !important;
        position: absolute !important;
        z-index: 1;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        opacity: .3;
        cursor: wait;
    }
}

p.demo_store {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    font-size: 1em;
    padding: 1em 0;
    text-align: center;
    background-color: #000;
    color: #fff;
    z-index: 99998;
    box-shadow: 0 1px 1em rgba(0,0,0,.2);
}

body.woocommerce-page {
    .main-content {
        .featured-box {
            margin-top: 0;
            margin-bottom: 30px;
        }
    }
    .card-body .featured-box {
        margin-bottom: 0
    }
}

/* wc vendors */
.overlay-vendor-effect {
    background: rgba(0, 0, 0, .4);
    padding-bottom: 1px;
}
.vendor-profile-bg {
    background: #d41b1b;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    h1 {
        a {
            text-align: center;
            color: #fff;
            font-size: 26px;
            font-weight: bold;
            text-transform: capitalize;
        }
    }
    p {
        font-weight: 700;
        text-align: center;
        font-size: 14px;
        margin: 10px;
    }
}
.vendor_userimg {
    img {
        border-radius: 100px;
        margin: 20px 0px;
    }
}

/* footer */
#footer form { opacity: 1; }