/* -------------------------------------------
	My Account Page
---------------------------------------------- */

@import '../config';
@import '../mixins';
@import '../direction';

.yith-wcwl-share-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: .73;
    text-transform: uppercase;
}

.wishlist_table {
    border-collapse: collapse;

    thead th {
        padding-bottom: 1rem;
    }

    th {
        text-transform: capitalize;
    }

    th,
    td {
        padding: 2rem 0;
    }

    .product-add-to-cart,
    .additional-info-wrapper {
        .btn {
            border-width: 1px;
            padding: .84em 2.08em;
            font-weight: 600;

            &.btn-default {
                border: 1px solid var(--alpha-change-color-light-3);

                &:hover,
                &:focus {
                    color: var(--alpha-dark-color);
                    border-color: var(--alpha-change-border-color);
                    background-color: var(--alpha-change-border-color);
                }
            }
        }
    }

    .alpha-rounded-skin & .product-add-to-cart .btn {
        border-radius: var(--alpha-corner-sm);
    }

    .product-add-to-cart {
        .yith-product-actions>* {
            margin: .5rem 0;

            &:not(:last-child) {
                margin-#{$right}: 1rem;
            }
        }
    }

    @include mq(md, 'max') {
        .product-thumbnail {
            width: 30rem;
            max-width: 80%;
        }
    }

    td>* {
        margin-#{$right}: 1rem;

        &:last-child {
            margin-#{$right}: 0;
        }
    }

    td.product-thumbnail {
        min-width: 12rem;
        width: 9.68%;
        padding-#{$right}: 2rem;
    }

    td.product-name {
        width: 31.85%;
        padding-right: 1rem;

        a {
            color: var(--alpha-change-color-dark-1);

            &:hover {
                color: var(--alpha-primary-color);
            }
        }

        &:last-child {
            width: auto;
        }
    }

    .product-price {
        width: 15.32%;
        padding-#{$left}: 1rem;

        >del {
            margin-#{$left}: .8rem;
            margin-#{$right}: 0;
        }

        >* {
            margin: 0;
        }
    }

    .product-stock-status {
        width: 20.16%;
        padding-#{$left}: 1rem;
    }

    .wishlist-empty {
        border-bottom: 0;

        td {
            border: 0;
        }
    }

    .remove {
        top: 10px;
    }

    .amount {
        font-weight: 600;
        color: var(--alpha-change-color-dark-1);
    }

    ins {
        margin: 0;
    }

    del {
        margin-#{$left}: .8rem;
        color: var(--alpha-grey-color-light);

        .amount {
            color: inherit;
            ;
        }
    }
}

.wishlist-empty {
    td {
        padding: 0;
        text-align: center;
    }
}

.wishlist-title {
    padding: 1rem 0 .6rem;

    h2 {
        display: inline-block;
        padding: side-values(1.5rem 1.2rem 1.5rem 0);
        margin-bottom: 0;
        vertical-align: middle;
        margin-#{$right}: 1rem;
        font-size: 2.4rem;
        font-weight: 600;
        transition: color .3s;

        &:hover {
            color: var(--alpha-primary-color);
            // text-decoration: none;
        }
    }

    .show-title-form {
        vertical-align: middle;
    }
}

@include mq(lg) {
    .wishlist-title:not(:hover) .show-title-form {
        opacity: 0;
    }
}

.wishlist-title,
.hidden-title-form {
    margin-bottom: 7px;

    input,
    .btn {
        font-size: 0.9286em;
        padding: 0.7692em 1.3846em;
        margin: side-values(1rem 1rem 1rem 0);
        vertical-align: middle;

        i {
            font-size: 1.3em;
            line-height: .7em;
        }
    }
}

.hidden-title-form .btn {
    padding-top: .94em;
    padding-bottom: .94em;

    i {
        font-size: 1.2em;
        line-height: 0;
    }
}

.hidden-title-form .form-control {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.yes-js #yith-wcwl-form .hidden-title-form {
    display: none;
    max-width: 100%;
}

.hidden-title-form a {
    width: auto;
    height: auto;
    line-height: 1;
}

.wishlist_table span.wishlist-out-of-stock {
    color: var(--alpha-secondary-color);
}

.wishlist_table span.wishlist-in-stock {
    color: var(--alpha-primary-color);
}

.yith_wcwl_wishlist_footer {
    margin-top: 2.5rem;
}

.yith-wcwl-share {
    h4.yith-wcwl-share-title {
        display: inline-block;
        vertical-align: middle;
    }

    .social-icons {
        display: inline-flex;
        margin: 0;
        padding: 0;
        list-style: none;
    }
}

.yith-wcwl-share-title {
    line-height: 3rem;
    margin: side-values(0 1rem 0 0);
    font-size: 1.6rem;
}

.wishlist_table.mobile {
    border: 1px solid var(--alpha-change-border-color);
    text-align: center;

    &.empty-table {
        border: none;
    }

    td.label {
        padding: 5px;
        text-align: $right;
    }

    td.value {
        padding: 5px;
        text-align: $left;
    }

    .product-name h3 {
        font-size: 1.6rem;
        margin: 0 2rem 1rem;
    }

    .product-thumbnail {
        margin-bottom: 1rem;
    }

    li {
        position: relative;
        padding: 4rem 0 3.5rem;
    }

    >li:not(:first-child) {
        border-top: 1px solid var(--alpha-change-border-color);
    }

    .product-remove {
        position: absolute;
        #{$right}: 1.5rem;
        top: 1.5rem;
        font-size: 1.7rem;

        a {
            padding: .5rem;
        }
    }

    td {
        border-top: 0;
        width: 50%;
    }

    .additional-info {
        margin-bottom: 0;
    }

    .product-add-to-cart {
        margin-top: 1rem;
    }

    .remove {
        #{$right}: -9px;
        top: -9px;
    }

    .item-details {
        margin-top: 2rem;
    }

    li .item-wrapper .product-thumbnail {
        width: 30rem;
        max-width: 80%;
    }

    tr {
        display: flex;
        justify-content: center;
    }

    td {
        width: auto;
    }

    .item-details-table {
        margin-bottom: 0;
    }
}

.yith-wcwl-after-share-section {
    margin-top: 2rem;
}

// Comaptibility with YITH Wishlist Premium
.yith-wcwl-popup-content .heading-icon {
    margin-bottom: 0;

    >i {
        font-family: 'FontAwesome';
        font-weight: normal;

        &.fa.fa-heart {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
        }
    }
}

table.wishlist_table {
    font-size: 100%;

    thead th {
        border: none;
    }

    tr td {
        text-align: $left;
    }

    td.product-thumbnail a {
        max-width: none;
        margin: 0;

        &.remove {
            display: flex;
        }
    }

    .product-add-to-cart {
        .dateadded {
            display: inline-block;
        }

        a {
            display: inline-block !important;
        }

        .yith-product-actions>* {
            margin: .5rem !important;
        }

        a.button {
            padding: .9em 2em !important;
        }

        .yith-product-actions {
            margin-#{$right}: -.5rem;
        }
    }
}

.wishlist-page-links {
    margin-top: 2.5rem;
}

.wishlist_table.mobile {
    li .product-checkbox {
        width: 30px;

        input {
            margin: 0 0 1.5rem;
        }
    }

    &.with-checkbox li .additional-info-wrapper {
        padding: 0;
    }

    select.selectBox.change-wishlist {
        margin: 0 auto;
    }
}

.yith_wcwl_wishlist_footer {
    .yith_wcwl_wishlist_bulk_action select {
        display: inline-block;
        width: auto;
    }

    .yith-wcwl-share {
        li a {
            display: flex;
        }
    }
}

.yith-wcwl-wishlist-search-form {
    text-align: $left;
}

.create-wishlist-button,
.yith-wcwl-wishlist-search-form button.wishlist-search-button,
.yith_wcwl_wishlist_footer input[type="submit"] {
    padding: 0.9em 2em;
    background-color: var(--alpha-primary-color);
    color: #fff;
    border: none;
    transition: background-color .3s;

    &:hover {
        cursor: pointer;
        background-color: var(--alpha-primary-color-hover);
    }

    &:active {
        top: auto;
    }
}

.yith_wcwl_wishlist_footer input[type="submit"] {
    padding: .75em 2em;
}

.yith-wcwl-wishlist-search-form button.wishlist-search-button {
    padding: .95em 2em;
}

.wishlist_table {
    .product-add-to-cart .btn {
        display: inline-block !important;
        margin: .5rem;
    }

    h3.product-name {
        font-size: 1.8rem;
    }

    tr th.product-checkbox {
        text-align: $left;
    }

    input[type="number"] {
        max-width: 80px;
    }

    .ui-sortable-helper {
        background: var(--alpha-white-color);
    }
}

ul.wishlist_table {
    .product-quantity .label {
        display: block;
    }

    input[type="number"] {
        margin-#{$left}: auto;
    }
}

.wishlist_table.modern_grid {
    border: none;

    li .item-details {
        font-size: 1.4rem;
    }

    .item-details .item-details-table,
    .product-thumbnail {
        font-size: 1.8rem;
    }
}

.wishlist_table.modern_grid.wishlist_view {
    .product-thumbnail {
        width: 30%;
    }
}

.wishlist_table.images_grid {
    display: flex;
    flex-wrap: wrap;

    .item-wrapper {
        position: relative;
    }

    li .item-details .item-details-table {
        font-size: 1.8rem;
    }
}

.wishlist_table.images_grid li .item-details .product-remove,
.wishlist_table.modern_grid li .item-details .product-remove {
    text-align: center;
}

.wishlist_table.images_grid li.wishlist-empty,
.wishlist_table.modern_grid li.wishlist-empty {
    font-size: var(--alpha-body-font-size);
}