@-webkit-keyframes wcboost-spin {
    0% {
        -webkit-transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes wcboost-spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.wcboost-products-compare-button {
    text-decoration: none;
    display: inline-block;
    margin: 10px 0
}

.wcboost-products-compare-button.loading .wcboost-products-compare-button__icon svg {
    animation: wcboost-spin .75s linear infinite
}

.wcboost-products-compare-button__icon {
    margin-right: 6px
}

.wcboost-products-compare-button__icon svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor
}

ul.products li.product .wcboost-products-compare-button {
    margin: 10px
}

.wcboost-products-compare__table {
    overflow-x: auto;
    margin: 1em 0
}

.wcboost-products-compare__table::-webkit-scrollbar {
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    width: 6px
}

.wcboost-products-compare__table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px
}

.wcboost-products-compare__table::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(0,0,0,.5)
}

table.compare_table {
    table-layout: fixed
}

table.compare_table td {
    width: 220px
}

table.compare_table th {
    width: 160px;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 9
}

@media(max-width: 767px) {
    table.compare_table th {
        display:none
    }

    table.compare_table td {
        padding: 30px 10px 10px 10px
    }

    table.compare_table tr::before {
        content: attr(data-title);
        display: block;
        position: sticky;
        left: 0;
        white-space: nowrap;
        padding: 0 1em;
        font-size: 80%;
        opacity: .8;
        font-weight: 600
    }
}

.wcboost-products-compare-popup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999
}

.admin-bar .wcboost-products-compare-popup {
    top: 32px
}

.wcboost-products-compare-popup .wcboost-products-compare>:first-child {
    margin-top: 0
}

.wcboost-products-compare-popup .wcboost-products-compare>:last-child {
    margin-bottom: 0
}

.wcboost-products-compare-popup .wcboost-products-compare__tools {
    overflow: hidden;
    padding: 1rem 0
}

@media screen and (max-width: 782px) {
    .admin-bar .wcboost-products-compare-popup {
        top:48px
    }
}

.wcboost-products-compare-popup__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    z-index: 1;
    cursor: pointer
}

.wcboost-products-compare-popup__header {
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.wcboost-products-compare-popup__close {
    float: right;
    font-size: 20px;
    text-decoration: none;
    display: block;
    padding: .5em
}

.wcboost-products-compare-popup__close svg {
    vertical-align: middle
}

.wcboost-products-compare-popup__title {
    font-weight: 700
}

.wcboost-products-compare-popup__body {
    position: relative;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    margin: 40px;
    background-color: #fff;
    z-index: 2
}

.wcboost-products-compare-popup__body .woocommerce-message,.wcboost-products-compare-popup__body .is-success {
    display: none
}

.wcboost-products-compare-popup__body .wcboost-products-compare-clear {
    margin-right: 20px;
    float: right
}

.wcboost-products-compare-popup__content {
    padding-bottom: 20px;
    overflow-y: auto;
    max-height: calc(100% - 60px);
    padding: 0 20px
}

.wcboost-products-compare-popup__content::after {
    content: "";
    display: table;
    clear: both
}

@media(max-width: 767px) {
    .wcboost-products-compare-popup__body {
        width:100%;
        height: 100%;
        margin: 0
    }
}

.wcboost-products-compare-widget-item {
    font-size: .875em;
    position: relative;
    margin: 1em 0
}

.wcboost-products-compare-widget-item::after {
    content: "";
    display: block;
    clear: both
}

.wcboost-products-compare-widget-item img {
    max-width: 60px;
    margin-right: 1em;
    float: left
}

.wcboost-products-compare-widget-item .price {
    display: block
}

.wcboost-products-compare-widget-item .star-rating {
    font-size: .875em
}

.wcboost-products-compare-widget-item a.remove {
    line-height: 1;
    text-decoration: none;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 1em;
    min-height: 1em;
    border-radius: 50%;
    transform: translate(-50%, -50%)
}

.wcboost-products-compare-widget-item a.remove:hover {
    color: #111
}

.wcboost-products-compare-widget-item a.remove:hover::before {
    color: inherit
}

.wcboost-products-compare-widget__buttons .button {
    text-align: center;
    display: block;
    margin-top: 10px
}

.wcboost-products-compare-bar {
    position: fixed;
    background-color: #f9f9f9;
    transition: transform 250ms ease-out;
    z-index: 99
}

.wcboost-products-compare-bar .wcboost-products-compare-widget__products {
    list-style: none;
    margin: 0;
    padding: 0
}

.wcboost-products-compare-bar .wcboost-products-compare-widget__empty-message {
    margin: 20px 0
}

.wcboost-products-compare-bar.wcboost-products-compare-bar--open {
    transform: none
}

.wcboost-products-compare-bar .wcboost-products-compare-widget__buttons {
    margin: 10px 0 20px 0
}

.wcboost-products-compare-bar__toggle-button {
    display: block;
    padding: 5px 10px;
    background: #f9f9f9;
    border-radius: 3px 3px 0 0;
    user-select: none;
    cursor: pointer
}

.wcboost-products-compare-bar__toggle-button svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 6px
}

.wcboost-products-compare-bar--open .wcboost-products-compare-bar__toggle-button svg {
    transform: rotate(180deg)
}

.wcboost-products-compare-bar__content {
    padding-left: 30px;
    padding-right: 30px
}

.wcboost-products-compare-bar--bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    border-top: 1px solid rgba(0,0,0,.1)
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-bar__toggle {
    position: absolute;
    top: 0;
    right: 30px;
    transform: translateY(-100%)
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-bar__toggle-button {
    border-radius: 3px 3px 0 0;
    border: 1px solid rgba(0,0,0,.1);
    border-bottom-width: 0
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget__products {
    padding: 20px 10px 10px 10px;
    margin: 10px 0;
    display: flex;
    gap: 30px;
    overflow-x: auto
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget__products::-webkit-scrollbar {
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    width: 6px
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget__products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget__products::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(0,0,0,.5)
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget-item {
    flex-shrink: 0;
    flex-basis: 200px;
    margin: 0
}

.wcboost-products-compare-bar--bottom .wcboost-products-compare-widget__buttons .button {
    margin: 0 10px;
    display: inline-block;
    width: auto
}
