/* Woocommerce alert */
.woocommerce-message,
.cart-popup .total {
    color: var(--porto-heading-color);
}
.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;
    &:focus-visible {
        outline: none;
    }
    #main > .container > & {
        margin-top: 10px;
    }
    #main > .container-fluid > & {
        margin-top: 20px;
    }
    &:before {
        position: relative;
        top: 2px;
        margin-#{$right}: 5px;
        font-size: 20px;
        font-family: var(--fa-style-family-classic, "Font Awesome 6 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: var(--fa-style-family-classic, "Font Awesome 6 Free");
        font-weight: 900;
        vertical-align: middle;
    }
}

.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);
    }
}
.woocommerce-info.yith-wcan-loading:before {
    content: none;
}
dl.variation {
    margin-bottom: 0;
    font-size: .625rem;
    text-transform: uppercase;
    p {
        font-size: inherit
    }
}
.text-v-dark {
    color: var(--porto-heading-color) !important;
}

html .btn-v-dark, .cart-popup .button.checkout {
    background: var(--porto-heading-color);
    color: var(--porto-light-1);
    border: none;

    &:focus {
        outline: none;
        box-shadow: none;
        color: var(--porto-light-1);
    }

    &:hover {
        background: var(--porto-heading-light-8);
        color: var(--porto-light-1);
    }
}

.featured-box .cart-actions {
    margin-top: 8px;
    margin-bottom: 20px;
}
.success-message,
.woocommerce-thankyou-order-received {
    i {
        color: #0cc485;
    }
}

.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%;
        background-color: var(--porto-normal-bg);
        color: var(--porto-body-color);
        /*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;
        background-color: var(--porto-normal-bg);
    }
}

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
    }
}

.account-text-user {
    color: var(--porto-heading-color);
}

/* 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; }

/* header */

#header .header-top .top-links:last-child > li.menu-item:last-child > a {
    padding-#{$right}: 0;
}
#header .header-top .top-links:last-child > li.menu-item:last-child:after {
    display: none;
}

.porto-wide-sub-menu li.menu-item li.menu-item > a:hover {
    background: none; color: var(--porto-mainmenu-popup-text-color-hover, var(--porto-mainmenu-popup-text-color-regular, var(--porto-body-color))) 
}
#header .porto-wide-sub-menu .menu-item > a:hover {
    text-decoration: underline;
}
.porto-wide-sub-menu > li.sub {
    --porto-wide-subitem-pd: 15px 10px 0;
}

#header .main-menu .popup {
    left: -15px; right: auto;
}
#header .main-menu .narrow.pos-right .popup {
    right: -15px; left: auto;
}

.sidebar-menu .wide .popup {
    border-#{$left}: none;
}
.right-sidebar .sidebar-menu .wide .popup {
    border-#{$right}: none;
}

.sidebar-menu .wide .popup >.inner {
    margin-#{$left}: 0;
}
.sidebar-menu .popup:before {
    content: '';
    position: absolute;
    border-#{$right}: 12px solid var(--porto-body-bg);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    #{$left}: -12px;
    top: calc( 13px + ( -1 * var(--porto-sd-menu-popup-top, 0px) ) );
    z-index: 112;
    .side-nav-right &,
    .right-sidebar & {
        #{$right}: -12px;
        #{$left}: auto;
        border-#{$left}: 12px solid var(--porto-body-bg);
        border-#{$right}: none;
    }
}
