/* Royal Compare Page Style ==> Start */

/* Start Head Product Add ==> Start */
.royal-compare-products {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.royal-compare-products .royal-compare-product-holder.royal-sticky-compare-head {
    position: sticky;
    top: 47px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 9999;
}
.royal-compare-product-holder.is-admin-bar-active.royal-sticky-compare-head {
    top: 80px;
}
.product-compare-head-data .royal-remove-from-compare {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 999;
}
.royal-remove-from-compare span.royal-remove-compare-icon {
    background: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    cursor: pointer;
}
.royal-compare-product-holder .compare-product-holder-in {
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    -webkit-transition: all ease .3s;
    transition: all ease .3s;
    top: 0;
    position: relative;
}
.compare-search-box {
    cursor: pointer;
    width: 25%;
}
.compare-search-box,
.product-compare-head-data {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5px;
    justify-content: space-between;
}
.product-compare-head-data {
    border-left: 1px solid #cccccc52;
}
.product-compare-head-data:last-child {
    border-left: none;
}
.compare-serach-box-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 95%;
    height: 170px;
    border: dashed 2px #d2d2d2;
    border-radius: 8px;
    padding: 5px;
    justify-content: center;
    font-size: 14px;
}
.compare-search-box .compare-serach-box-in span.compare-search-box-icon {
    background: #f5f5f5;
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-bottom: 10px;
}
.product-compare-button .compare-product-button {
    display: inline-block;
    padding: 10px 27px;
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    margin-top: 5px;
}
.royal-compare-product-holder.royal-sticky-compare-head .product-compare-button {
    display: none;
}
.product-compare-button .compare-product-button.search-btn{
    background: #7a7a7a;
    cursor: pointer;
}
.product-compare-button .compare-product-button.preview-btn {
    cursor: pointer;
}
.product-compare-head-data .product-compare-title {
    color: #607d8b;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    width: 90%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.product-compare-head-data span.product-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 16px;
}
.product-compare-head-data span.product-price .irava-price-range,
.product-compare-head-data span.product-price del {
    display: none;
}
.product-compare-head-data span.product-price ins {
    text-decoration: none;
    margin-top: 6px;
}
.product-compare-head-data .product-compare-img {
    position: relative;
    width: 100px;
    margin-bottom: 5px;
}
.product-compare-title, .product-compare-price {
    position: relative;  
}
/* Start Head Product Add ==> End */

/* Start Table Style ==> Start */
.royal-compare-attribute-data {
    margin: 5px 0;
}
.royal-compare-attribute-data .royal-attr-item {
    padding: 0;
    margin: 0;
}
.royal-compare-attribute-data ul.royal-attr-item li {
    list-style: none;
}
ul.royal-attr-item li span.royal-attr-row-label {
    display: flex;
    width: 100%;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
}  
.royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-holder {
    position: relative;
    display: flex;
    width: 100%;
}
.royal-compare-products.added-product-col-1 .compare-search-box,
.royal-compare-products.added-product-col-1 .product-compare-head-data,
.royal-compare-products.added-product-col-1 .royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
    width: 50%;
}
.royal-compare-products.added-product-col-2 .compare-search-box,
.royal-compare-products.added-product-col-2 .product-compare-head-data,
.royal-compare-products.added-product-col-2 .royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
    width: 33%;
}
.royal-compare-products.added-product-col-3 .compare-search-box,
.royal-compare-products.added-product-col-3 .product-compare-head-data,
.royal-compare-products.added-product-col-3 .royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
    width: 25%;
}
.royal-compare-products.added-product-col-4 .compare-search-box,
.royal-compare-products.added-product-col-4 .product-compare-head-data,
.royal-compare-products.added-product-col-4 .royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
    width: 25%;
}
.royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-left: 1px solid #eaeaea;
    font-size: 13px;
}
.royal-compare-products .royal-compare-notice {
    background: #ff81001a;
    margin: 5px 0;
    padding: 5px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffb972;
    border-radius: 5px;
}
/* Start Table Style ==> End */

/* Royal Compare Page Style ==> End */



/* Popup Add Product To Compare Style ==> Start */
.royal-compare-selected-product.royal-compare-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    width: 100%;
    height: 100%;
    background: #00000033;
    z-index: 200;
}
.royal-compare-selected-product.royal-compare-popup-overlay ~ .royal-select-product-popup {
    position: fixed;
    max-width: 80vw;
    min-width: 460px;
    width: 900px;
    max-height: 80vh;
    top: 50%;
    right: 50%;
    background-color: #fafafa;
    box-shadow: 0 0 40px 0 #00000026;
    border-radius: 10px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    transform: translate(50%, -50%);
    z-index: 210;
}
.royal-compare-selected-product.royal-compare-popup-overlay.active,
.royal-compare-selected-product.royal-compare-popup-overlay.active ~ .royal-select-product-popup {
    opacity: 1;
    visibility: visible;
}
.royal-select-product-popup .royal-popup-header {
    position: sticky;
    top: -1px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 20px 0px;
    border-bottom: 1px solid #e7e7e7;
    z-index: 110;
}
.royal-popup-header .popup-title p {
    font-weight: bold;
}
.royal-popup-header .close-popup-x {
    display: flex;
    cursor: pointer;
}
.royal-popup-header .close-popup-x i {
    font-size: 20px;
}
.royal-select-product-popup .royal-popup-content {
    display: flex;
    position: relative;
    padding: 10px 15px;
    gap: 10px;
    flex-direction: column;
}
.royal-popup-search .royal-popup-search-box {
    position: relative;
    border: 1px solid #cecece;
    border-radius: 10px;
    z-index: 100;
}
.royal-popup-search-box .royal-serach-icon-popup {
    position: absolute;
    display: flex;
    top: 50%;
    transform: translateY(-50%);
}
.royal-popup-search-box .royal-serach-icon-popup i.fa-search.fas {
    position: relative;
    right: 17px;
    font-size: 18px;
}
.royal-popup-search-box .royal-popup-serach-box input.serach-royal-compare-input {
    width: 100%;
    caret-color: #00c095;
    color: #000;
    border: none;
    padding-right: 50px;
    background: none;
}
.royal-popup-content .royal-add-to-compare-product-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.royal-compare-items ul.royal-compare-selected-list {
    margin: 0;
}
.royal-popup-content.requesting-product .royal-add-to-compare-product-list::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #ffffffa3;
    z-index: 99;
}
.royal-add-to-compare-product-list a.royal-add-to-compare-link {
    width: calc(33% - 4px);
    border: 1px solid #cecece87;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    margin: 3.5px;
    transition: 0.3s;
}
.royal-add-to-compare-product-list a.royal-add-to-compare-link:nth-child(3n) {
    margin-left: 0;
}
.royal-add-to-compare-product-list a.royal-add-to-compare-link:hover {
    box-shadow: 0 0 10px #cecece69;
}
.royal-compare-product-list .product-image-section {
    border-radius: 10px;
    overflow: hidden;
}
.royal-add-to-compare-product-list a.royal-add-to-compare-link .royal-compare-product-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding: 5px 10px;
}
.royal-product-title-section .product-title {
    font-family: inherit;
    height: 55px;
    color: #607d8b;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.product-price-section span.product-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}
.product-price-section span.product-price .irava-price-range,
.product-price-section span.product-price del {
    display: none;
}
.product-price-section span.product-price ins {
    text-decoration: none;
}
.product-price-section .product-compare-img {
    position: relative;
    width: 100px;
}
.royal-popup-search-box .royal-serach-icon-popup svg {
    position: relative;
    right: 10px;
    width: 2em;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}
.royal-popup-search-box .royal-serach-icon-popup svg circle {
    fill: none;
    stroke: #00ad86;
    stroke-width: 2;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}
@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}
/* Popup Add Product To Compare Style ==> End */

/* Responsive Popup And Attributes Table In Mobile/Tablet ===> Start */
@media only screen and (max-width: 1024px) {
    .royal-compare-products .royal-compare-product-holder.royal-sticky-compare-head {
        top: 0px;
        padding-top: 5px;
    }
    .royal-compare-products .royal-compare-product-holder.is-admin-bar-active.royal-sticky-compare-head {
        top: 0px;
        padding-top: 50px;
    }
}
@media only screen and (max-width: 950px) {
    .royal-compare-products .royal-compare-product-holder {
        top: 50px;
    }
    .royal-compare-product-list .product-image-section {
        max-width: 110px;
    }
    .royal-product-title-section .product-title {
        font-size: 10px !important;
        text-align: center;
        height: 32px;
    }
    .product-price-section span.product-price,
    .product-compare-head-data span.product-price {
        font-size: 12px;
    }
    .product-compare-title .product-compare-title.fusion-responsive-typography-calculated {
        font-size: 14px !important;
    }
    .product-compare-head-data span.product-price ins {
        margin: 0;
    }
}
@media only screen and (max-width: 700px) {
    .product-compare-button .compare-product-button.search-btn,
    .product-compare-button .compare-product-button {
        display: none;
    }
}
@media only screen and (max-width: 500px) {

    .compare-search-box .compare-serach-box-in {
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: space-between;
        border: dashed 1px #d2d2d2;
        margin: 0;
    }
    .royal-compare-products:not(.added-product) .compare-search-box {
        width: 70%;
    }
    .royal-add-to-compare-product-list a.royal-add-to-compare-link {
        width: calc(50% - 7px);
    }
    .compare-search-box .compare-serach-box-in span.compare-search-box-icon {
        margin-bottom: 5px;
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    .compare-search-box, .product-compare-head-data {
        padding: 3px;
    }
    ul.royal-attr-item li span.royal-attr-row-label {
        font-size: 11px;
        padding: 5px 10px;
    }
    .product-compare-head-data .royal-remove-from-compare {
        right: 10px;
    }
    .compare-serach-box-in span.compare-serach-box-text {
        font-size: 8px;
    }
    .royal-remove-from-compare span.royal-remove-compare-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    .royal-compare-selected-product.royal-compare-popup-overlay ~ .royal-select-product-popup {
        min-width: 350px;
        width: 460px;
    }
    .royal-compare-attribute-data ul.royal-attr-item span.royal-attr-value-row {
        padding: 5px !important;
        font-size: 10px;
    }
    .royal-compare-product-list .product-image-section {
        max-width: 100px;
    }
    .royal-product-title-section .product-title {
        font-size: 9px !important;
        text-align: center;
        height: 35px;
    }
    .product-price-section span.product-price,
    .product-compare-head-data span.product-price {
        font-size: 9px;
        margin-bottom: 2px;
        margin-top: 0;
    }
    .product-compare-head-data .product-compare-title {
        width: 100%;
    }
    .product-compare-title p {
        font-size: 9px !important;
        line-height: 1.5;
    }
    .product-compare-price .woocommerce-Price-currencySymbol {
        display: none;
    }
    .product-compare-head-data .product-compare-img {
        width: 50px;
    }
}
/* Responsive Popup And Attributes Table In Mobile/Tablet ===> End */