/**
 * 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 {
    display: block;
    float: left;
}

.mpfreegifts-btn:hover {
    background-color: transparent!important;
    color: #E30613!important;
}

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

.mpfreegifts-item-left {
    text-align: right;
    margin: 5px 0;
    z-index: 10;
}

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

.mpfreegifts-gift-final-price {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline;
}

.mpfreegifts-gift-name {
    font-size: 1.8rem;
    font-weight: 400;
    flex: 1 0 auto;
}

.mpfreegifts-gift-image {
    display: block;
    margin: auto;
    width: 100%;
}

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

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

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

.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-rule-grid .row-mp {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.mpfreegifts-rule-grid .col-mp {
    float: none;
}

.mpfreegifts-rule-grid .col-mp,
.mpfreegifts-rule-grid .gift-item {
    display: flex;
    min-height: 1px;
}

.mpfreegifts-rule-grid .gift-item {
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
}

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

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

.mpFreeGiftsList .modal-header {
    text-align: center;
}

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

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

    #mpfreegifts-cart-btn {
        float: none;
    }

    .mpfreegifts-add-gift-btn .action {
        width: 100%;
    }
}

@media only screen and (min-width: 767px) {
    .mpFreeGiftsList .modal-inner-wrap {
        width: 70% !important;
        max-width: 900px;
    }
    .mpFreeGiftsList[class*="-option-modal-"] .modal-inner-wrap {
        max-width: 450px;
    }
}

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

/* --------------------- Begin - Item Notice --------------------- */
.mpfreegifts-notice-content {
    margin: 10px 0 0;
    border: 2px dashed #E30613;
    color: #E30613;
    font-weight: 500;
    padding: .25em .5em;
    font-size: .8em;
}

.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 {
    margin-top: 40px;
    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: 767px) {
    .mpfreegifts-rule-list td.image {
        display: none !important;
    }

    .mpfreegifts-rule-list td.price {
        display: flex !important;
    }

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

@media only screen and (max-width: 767px) {
    .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;
    justify-content: space-between;
}
/* --------------------- End - Cart Notification --------------------- */
