/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_FreeGifts
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

/* --------------------- Begin - Common --------------------- */
.mpfreegifts-add-gift-btn {
    margin-bottom: 20px;
}

#mpfreegifts-cart-btn {
    width: 71%;
    display: none;
}

.mpfreegifts-btn:hover {
    opacity: 0.9;
}

.mpfreegifts-modal, .mpfreegifts-option-modal {
    display: none;
}

.modal-title {
    border-bottom: 1px solid #c1c1c1;
    font-weight: 300;
    padding-bottom: 10px;
    font-size: 26px;
    margin-bottom: 0;
    min-height: 1em;
    word-wrap: break-word;
}
.max-h-dialog {
    max-height: 90%;
}


.splide__arrow--next {
    right: -1.5rem;
}
.splide__arrow--prev {
    left:-1.5rem;
}
.mpfreegifts-item-left {
    text-align: right;
    font-size: 0.9rem;
    margin: 30px 0;
    z-index: 10;
}

.mpfreegifts-modal .mpfreegifts-item-left {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
}

.mpfreegifts-action-remove {
    border-color: #ff5501 !important;
    background: #ff5501 !important;
    color: #fff;
}

.mpfreegifts-action-remove:hover {
    background: #e64d00 !important;
    border-color: #e64d00 !important;
}

.mpfreegifts-gift-original-price {
    text-decoration: line-through;
    font-size: 1rem;
}

.mpfreegifts-gift-final-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.mpfreegifts-gift-name {
    font-size: 1.2rem;
    font-weight: 400;
    height: 45px;
}

.mpfreegifts-gift-image {
    display: block;
    margin: auto;
    height: 220px;
    width: auto !important;
}

.text-center {
    text-align: center;
}

.mpfreegifts-rule-grid .gift-item,
.mpfreegifts-rule-slider .gift-item {
    border-radius: 7px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.gift-item:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: 0.2s ease-in-out;
}

.mpfreegifts-gift-name, .mpfreegifts-gift-price, .mpfreegifts-gift-action {
    margin-top: 15px;
}

#mpfreegifts-block-container {
    clear: both !important;
}

.mpfreegifts-block-header {
    margin: 5px 0;
    display: flex;
}

.mpfreegifts-block-header .mpfreegifts-item-left {
    text-align: right;
    font-size: 1.8rem;
}

.mpfreegifts-block-header .mpfreegifts-header-text {
    text-align: left;
    font-size: 2rem;
    font-weight: 500;
}

.mpfreegifts-block-header .mpfreegifts-header-text,
.mpfreegifts-block-header .mpfreegifts-item-left {
    width: 49%;
}

.mpfreegifts-block-icon {
    color: #ffffff;
    font-size: 2rem !important;
}

.mpfreegifts-block-icon span {
    display: block;
    border-radius: 50%;
    font-weight: bolder;
    padding: 0 0.5rem;
    background-color: #d9d9d9;
}

.mpfreegifts-selected-icon span {
    background-color: #4CAF50 !important;
}

.mpfreegifts-update-btn {
    text-align: right;
    position: absolute;
    top: 3.5%;
    right: 5.5%;
}

.mpfreegifts-update-btn button {
    font-size: 1rem;
    background: #EB5202;
    width: auto;
    color: white;
    outline: none;
    border: 0;
    box-shadow: none;

}
.mpfreegifts-update-btn button:focus {
  box-shadow: none;
}
.mpfreegifts-update-btn button:hover {
    background: #BA4000;
}


.mpfreegifts-selected {
    border-radius: 7px;
    border: 2px solid #4CAF50 !important;
    box-sizing: border-box;
}

.mpfreegifts-rule-grid .mpfreegifts-block-icon,
.mpfreegifts-rule-slider .mpfreegifts-block-icon {
    position: absolute;
    top: -10px;
    left: 5px;
}

.mpfreegifts-gift-image-container {
    position: relative
}

.mpfreegifts-block .gift-item:hover,
.mpfreegifts-modal .gift-item:hover {
    cursor: pointer;
}

#mpfreegifts-selected-container {
    display: none;
}

#mpfreegifts-selected-header {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

#mpfreegifts-selected-ul {
    margin-bottom: 0 !important;
}

#mpfreegifts-selected-ul li {
    font-size: 1.5rem;
}

@media only screen and (max-width: 768px) {
    #mpfreegifts_item_cart .mpfreegifts-add-gift-btn {
        width: 100%;
        text-align: center;
    }

    .mpfreegifts-gift-name {
        font-size: 1.2rem;
        height: min-content;
    }

    #mpfreegifts-cart-btn {
        width: 100%;
    }
}


@media only screen and (max-width: 768px) {
    .mpfreegifts-update-btn {
        text-align: right;
        position: absolute;
        top: 2.5%;
        right: 10.5%;
    }
}


/* --------------------- End - Common --------------------- */

/* --------------------- Begin - Item Notice --------------------- */
.mpfreegifts-notice-content {
    background: #fdf0d5;
    color: #6f4400;
    padding: 0.6rem 1.5rem;
    text-shadow: none;
    margin-left: 10px;
}

.mpfreegifts-icon {
    width: 20px;
    height: 20px;
}

.mpfreegifts-image {
    padding-top: 0.5rem;
}

.mpfreegifts-notice {
    display: flex;
}

/* --------------------- End - Item Notice --------------------- */

/* --------------------- Begin - List Layout --------------------- */
.mpfreegifts-rule-list {
    display: inline-block;
    width: 100%;
}

.mpfreegifts-block .mpfreegifts-rule-list {
    margin-top: 10px;
}

.mpfreegifts-gift-image-col {
    width: 20% !important;
}

.mpfreegifts-gift-selected-col {
    width: 3% !important;
}

.mpfreegifts-gift-name-col {
    width: 25% !important;
}

.mpfreegifts-gift-price-col, .mpfreegifts-gift-action-col {
    width: 15% !important;
}

.mpfreegifts-rule-list .mpfreegifts-gift-image {
    width: 80px;
    height: 80px;
}

.mpfreegifts-rule-list .mpfreegifts-gift-name,
.mpfreegifts-rule-list .mpfreegifts-gift-action {
    padding-top: 35px;
}

.mpfreegifts-rule-list .mpfreegifts-gift-price {
    padding-top: 30px;
}

.mpfreegifts-rule-list .mpfreegifts-gift-name,
.mpfreegifts-rule-list .mpfreegifts-gift-price,
.mpfreegifts-rule-list .mpfreegifts-gift-action {
    margin-top: 0;
}

.mpfreegifts-rule-list .mpfreegifts-block-icon span {
    width: 2rem;
}

@media only screen and (max-width: 768px) {
    .mpfreegifts-rule-list td.price {
        display: flex !important;
        flex-direction: column;
    }

    .mpfreegifts-rule-list td.price div {
        padding-right: 20px;
    }

    .mpfreegifts-rule-list .mpfreegifts-gift-name,
    .mpfreegifts-rule-list .mpfreegifts-gift-action,
    .mpfreegifts-rule-list .mpfreegifts-gift-price {
        padding-top: 0;
    }
}

/* --------------------- End - List Layout --------------------- */

/* --------------------- Begin - Grid Layout --------------------- */
.mpfreegifts-rule-grid {
    margin-top: 30px;
    display: inline-block;
    width: 100%;
}

.mpfreegifts-rule-grid .gift-item {
    margin-bottom: 30px;
    box-sizing: border-box;
    padding: 15px 0;
}

.mpfreegifts-rule-grid .gift-container {
    padding: 0 35px;
}

@media only screen and (max-width: 768px) {
    .mpfreegifts-rule-grid .gift-container {
        padding: 0;
    }
}

/* --------------------- End - Grid Layout --------------------- */

/* --------------------- Begin - Slider Layout --------------------- */
.mpfreegifts-rule-slider {
    margin: 30px 0;
}

.mpfreegifts-rule-slider .gift-container {
    padding: 20px;
}

.mpfreegifts-rule-slider .gift-item {
    box-sizing: border-box;
    padding: 15px 0;
}

/* --------------------- End - Slider Layout --------------------- */

/* --------------------- Begin - Cart Notification --------------------- */
#mpfreegifts-notification {
    display: none;
}

#mpfreegifts-notification #message-content {
    display: flex;
}

.mpfreegifts-notify-message, .mpfreegifts-notify-hide-btn {
    width: 50%;
}

.mpfreegifts-notify-hide-btn {
    text-align: right;
}

/* --------------------- End - Cart Notification --------------------- */

.mpfreegifts-option-modal table.table.data.grouped span.price {
    text-decoration: line-through;
}

.mpfreegifts-gift-qty {
    margin-bottom: 5%;
    width: 100%;
}

.mpfreegifts-gift-qty .mpfreegifts-gift-input-qty {
    width: 20%;
}

.mpfreegifts-option-modal .mpfreegifts-gift-input-qty {
    width: 5%;
}

.mp-fg-tooltip {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    word-break: break-word;
    width: 50%;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    bottom: 100%;
}


.mp-fg-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.mp-validation-message-box {
    display: none;
    color: #e02b27;
    font-size: 1.2rem;
}

.mpfreegifts-gift-qty {
    height: fit-content
}

.mpfreegifts_modal {
    z-index: 1047 !important;
}

.modals-overlay {
    z-index: 1046 !important;
}

.owl-carousel .owl-nav {
    font-size: 50px !important;
}

.owl-carousel .owl-nav .owl-prev {
    top: 15%;
    left: -2%;
    position: absolute;
}

.owl-carousel .owl-nav .owl-next {
    top: 15%;
    right: -2%;
    position: absolute;
}

.mpfreegifts-gift-input-qty-grouped-update{
    width: 50px !important;
}
.mpfreegifts-gift-input-qty-grouped{
    width: 50px !important;
}

/* --------------------- Begin - Free Gifts Catalog --------------------- */
.mpfreegifts-catalog{
    width: 100%;
    float: left;
    margin: 10px 0 10px 0;
}
.mpfreegifts-catalog .mpfreegifts-image{
    float: left;
    padding: 5px 10px 0 0;
}
.mpfreegifts-catalog .mpfreegifts-icon{
    width: 40px;
    height: 40px;
}
.mpfreegifts-catalog .mpfreegifts-content{
    width: calc(100% - 55px);
    float: left;
    padding-left: 5px;
}
.mpfreegifts-content .mpfreegifts-rule-name{
    font-weight: bold;
    padding-bottom: 7px;
}
.mpfreegifts-content .mpfreegifts-rule-description{
    padding-bottom: 7px;
}
.product-info-main .mpfreegifts-catalog, #wishlist-view-form .mpfreegifts-catalog, .crosssell .mpfreegifts-catalog, .comparison .mpfreegifts-catalog{
    display: none;
}
#mpfreegifts-catalog-selected-container {
    margin-top: 10px;
    display: none;
}

#mpfreegifts-catalog-selected-header {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.mpfreegifts-catalog-selected-ul {
    margin-bottom: 0 !important;
    list-style-type: disc !important;
}

.mpfreegifts-catalog-selected-ul li {
    font-size: 1rem;
    font-weight: 400;
}
.linking_modal:hover {
    text-decoration: underline;
    cursor: pointer;
}
.rating-summary.flex {
    justify-content: center;
}
.modal-popup.confirm {
    z-index: 1070 !important;
}
/* --------------------- End - Free Gifts Catalog --------------------- */
/* --------------------- Begin - Reponsive--------------------- */
@media only screen and (max-width: 768px) {
    .owl-carousel .owl-nav .owl-prev {
        left: 0;
    }

    .owl-carousel .owl-nav .owl-next {
        right: 0;
    }

    .mpfreegifts_modal.modal-popup.modal-slide {
        left: 0;
        height: 65%;
        top: 10%;
    }

    .owl-dots {
        display: none;
    }

    .mpfreegifts-rule-slider .gift-container,.mpfreegifts-rule-slider .gift-item {
        padding: 0;
    }
}
@media only screen and (max-width: 639px) {
    .mpfreegifts_modal .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison) > tbody > tr td, .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison) > tbody > tr th {
        display: inline-grid;
        padding: 0;
        margin: 3px;
    }

    .mpfreegifts-rule-list td.price{
        flex-direction:unset;
    }

    .mpfreegifts_modal td.col.price.mpfreegifts-gift-price {
        display: none !important;
    }

    .mpfreegifts_modal .col.price.mpfreegifts-gift-price{
        display: flex !important;
        font-size: 1.2rem;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        margin-top: 1px;
        width: 130px;
    }

    .mpfreegifts-rule-list .mpfreegifts-gift-image{
        height: 60px;
    }

    .mpfreegifts_modal .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison) > tbody > tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #cccccc;
    }
}
#mpfreegifts-catalog-selected-container {
    color: #006400;
}
@media only screen and (max-width: 480px) {
    .mpfreegifts-gift-name {
        font-size: 1.15rem;
    }
}
@media only screen and (max-width: 768px) {
    .mpfreegifts-modal .mpfreegifts-item-left {
        background: #f4f4f4;
    }

    .mpfreegifts_modal.modal-popup.modal-slide {
        height: 80%;
    }

    .owl-carousel .owl-nav .owl-prev {
        left: -4%;
    }

    .owl-carousel .owl-nav .owl-next {
        right: -4%;
    }
}
.mpfreegifts-rule-slider .splide__arrow--prev {
    left: -1em;
}
.mpfreegifts-rule-slider .splide__arrow--next {
    right: -1em;
}
.mpfreegifts-gift-qty .mpfreegifts-gift-input-qty {
    width: 20%;
}

.mpfreegifts-gift-qty {
    height: fit-content
}

.mpfreegifts-gift-name {
    font-size: 1.2rem;
}

.mpfreegifts-gift-final-price {
    font-size: 1.2rem;
}

.mpfreegifts-gift-original-price {
    font-size: 1rem;
}

.mpfreegifts-item-left {
    font-size: 0.9rem;
    margin: 30px 0;
}

.modal-title {
    border-bottom: 1px solid #c1c1c1;
    font-weight: 300;
    padding-bottom: 10px;
    font-size: 26px;
    margin-bottom: 0;
    min-height: 1em;
    word-wrap: break-word;
}

.max-h-dialog {
    max-height: 90%;
}

.mpfreegifts-rule-list .table > tbody > tr > th, .mpfreegifts-rule-list .table > tbody > tr > td {
    border-top: 1px solid #cccccc;
    padding: 15px 0;
}
.splide__arrow--next {
    right: -1.5rem;
}
.splide__arrow--prev {
    left:-1.5rem;
}
