/**
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.txt
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to CustomizationPolicy.txt file inside our module for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/

#wkfrontaddgiftproduct>.cart-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

#wkfrontaddgiftproduct>.cart-container>.col-sm-6.col-md-4.col-lg-3 {
    border: 1px solid rgb(62, 204, 209);
    border-radius: 5px;
    margin: 5px;
    width: 30%;
}

@media screen and (max-width: 576px) {
    #wkfrontaddgiftproduct>.cart-container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #wkfrontaddgiftproduct>.cart-container>.col-sm-6.col-md-4.col-lg-3 {
        width: 75%;
    }

    /* #wkaddgiftproduct {

        left: 47%;
    } */

    .wkbtn-cnt{
        display: flex;
        align-items: center;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;

    }
}
span.product-name{
    text-align:center;
}

.wk-gift-choice-box {
    margin-top: 12px;
    padding: 20px 20px 16px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 16px;
}

.wkchoosegridbody .card,
.wkchoosegridbody .card-block {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.wk-gift-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
}

.wk-gift-card-col {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 320px;
}

@media (max-width: 991px) {
    .wk-gift-card-col {
        flex-basis: 200px;
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .wk-gift-card-col {
        flex: 1 1 calc(50% - 7px);
        min-width: 160px;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .wk-gift-card-col {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: none;
    }
}

.wk-gift-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px 14px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wk-gift-card:hover {
    border-color: #b7c98a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    transform: translateY(-1px);
}

.wk-gift-card.active {
    border-color: #8db524;
    box-shadow: 0 0 0 2px rgba(141, 181, 36, .16);
}

.wk-gift-card.disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: grayscale(0.4);
}

.wk-gift-card.disabled:hover {
    border-color: #e5e5e5;
    box-shadow: none;
    transform: none;
}

.wk-gift-card__radio {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    height: 18px;
    margin: 0;
}

.wk-gift-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    background: #f5ecd5;
    color: #8e7740;
}

.wk-gift-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 12px;
    padding-top: 12px;
}

.wk-gift-card__image img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.wk-gift-card__name {
    display: block;
    min-height: 52px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    color: #4b4b4b;
    text-decoration: none;
}

.wk-gift-card__name:hover {
    text-decoration: none;
    color: #4b4b4b;
}

.wk-gift-card__locked-note,
.wk-gift-card__status,
.wk-gift-card__variant-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.wk-gift-card__locked-note,
.wk-gift-card__variant-note {
    color: #8a8a8a;
}

.wk-gift-card__status.text-success {
    color: #7ea51f !important;
    font-weight: 600;
}

.wk-gift-card__select {
    margin-top: auto;
    border-color: #dcdcdc;
    border-radius: 4px;
}

.wk-gift-choice-headline {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
}

.wk-gift-choice-subline {
    margin-bottom: 14px;
    color: #7a7a7a;
    font-size: 14px;
    line-height: 1.4;
}

.wk-gift-decline {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    color: #8a8a8a;
    display: flex;
    justify-content: center;
}

.wk-gift-decline label {
    margin: 0;
}

.wk-gift-submit {
    min-width: 180px;
    background: #8db524;
    border-color: #8db524;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 18px;
    text-align: center;
}

.wk-gift-submit:hover,
.wk-gift-submit:focus,
.wk-gift-submit:active {
    background: #7ea51f !important;
    border-color: #7ea51f !important;
    color: #fff !important;
}

.wk-gift-submit[disabled],
.wk-gift-submit.disabled {
    background: #cfd8b5;
    border-color: #cfd8b5;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.wkbtn-cnt {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.wk-gift-mobile-continue {
    display: none;
}

.wk-gift-mobile-continue .wk-gift-mobile-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #8db524;
    border-radius: 4px;
    background: #8db524;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
}

.wk-gift-mobile-continue .wk-gift-mobile-continue-btn:hover,
.wk-gift-mobile-continue .wk-gift-mobile-continue-btn:focus,
.wk-gift-mobile-continue .wk-gift-mobile-continue-btn:active {
    background: #7ea51f;
    border-color: #7ea51f;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .wk-gift-mobile-continue {
        display: block;
        margin: 12px 0 18px;
    }
}

/* společné */
.lffsm-body {
    border-radius: 8px;
    padding: 12px;
}

/* CART verze */
.lffsm-cart .lffsm-body {
    background: #f5f5f5;
}

/* POPUP verze */
.lffsm-popup .lffsm-body {
    background: #ffffff;
    border: 1px solid #24b9d7;
    box-shadow: 0 1px 0 rgba(36, 185, 215, .16);
}

/* Prevent theme success/alert styles from breaking the gift box */
.lffsm-body.message-success,
.lffsm-popup .lffsm-body.message-success,
.lffsm-cart-right .lffsm-body.message-success {
    background: #ffffff;
    border: 1px solid #eee;
    color: #2d2d2d;
}

.lffsm-body.message-success .message-body,
.lffsm-body.message-success .lffsm-title,
.lffsm-body.message-success .lffsm-text,
.lffsm-body.message-success .lffsm-gifts-title,
.lffsm-body.message-success .lffsm-gift-item,
.lffsm-body.message-success .lffsm-gift-item a {
    color: #2d2d2d !important;
}

.lffsm-body.message-success .lffsm-badge {
    background: #eef5e1;
    color: #6b8f1a !important;
}

.lffsm-body.message-success .lffsm-progress {
    background: #e9ecef;
}

.lffsm-body.message-success .lffsm-progress-inner {
    background: #8db524;
}

.wk-free-gift-progress-wrapper.lffsm-cart-right {
    margin-bottom: 12px;
}

.wk-free-gift-progress-wrapper.lffsm-cart-drowpdown {
    margin: 12px 8px 16px;
}

.wk-free-gift-progress-wrapper.lffsm-cart-right .lffsm-body,
.wk-free-gift-progress-wrapper.lffsm-cart-right .lffsm-body.message-success {
    border: 1px solid #333333;
}

/* header */
.lffsm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 8px;
    row-gap: 4px;
    margin-bottom: 4px;
}

.lffsm-title {
    display: inline-flex;
    flex: 1 1 180px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.wk-gift-popup-progress .lffsm-title {
    font-size: 14px;
}

.lffsm-title-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.lffsm-title-text {
    min-width: 0;
}

.lffsm-threshold {
    margin: 2px 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1a8fa7;
}

.lffsm-tier-list {
    display: grid;
    gap: 3px;
    margin: 4px 0 6px;
}

.lffsm-tier {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: #6f6f6f;
}

.lffsm-tier-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: #d8d8d8;
}

.lffsm-tier--done {
    color: #6b8f1a;
}

.lffsm-tier--done .lffsm-tier-dot {
    background: #8db524;
}

.lffsm-tier--next {
    color: #1a8fa7;
    font-weight: 600;
}

.lffsm-tier--next .lffsm-tier-dot {
    background: #24b9d7;
}

.lffsm-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-left: auto;
    min-height: 20px;
    font-size: 11px;
    line-height: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e7f7fb;
    color: #1a8fa7;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.wk-gift-popup-progress .lffsm-badge {
    min-height: 18px;
    font-size: 10px;
    line-height: 1;
    padding: 3px 8px;
}

.lffsm-text,
.lffsm-gifts-title,
.lffsm-tip {
    line-height: 1.35;
}

.wk-gift-popup-progress .lffsm-text,
.wk-gift-popup-progress .lffsm-gifts-title,
.wk-gift-popup-progress .lffsm-tip {
    font-size: 12px;
}

.lffsm-progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.lffsm-progress-inner {
    height: 100%;
    background: #24b9d7;
    border-radius: 4px;
    transition: width .3s ease;
}

.lffsm-gifts-carousel {
    overflow-x: auto;
}

.lffsm-gifts-list {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 8px 0 0;
    list-style: none;
}

.wk-gift-popup-progress .lffsm-gifts-list {
    gap: 6px;
    margin-top: 4px;
}

.lffsm-gift-item {
    flex: 0 0 auto;
}

.wk-gift-popup-progress .lffsm-gift-item {
    margin: 0;
}

.lffsm-gift-thumb {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.wk-gift-popup-progress .lffsm-gift-thumb {
    width: 34px;
    height: 34px;
    border-radius: 5px;
}

.lffsm-gift-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lffsm-gift-more {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #777777;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.wk-gift-popup-progress .lffsm-gift-more {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    font-size: 15px;
}

.lffsm-gift-thumb.is-locked {
    opacity: .55;
    filter: grayscale(.35);
}

.lffsm-selected-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #8db524;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.wk-gift-popup-progress .lffsm-gifts {
    margin-top: 2px;
}

.wk-gift-popup-progress {
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
}

.wk-gift-popup-progress .lffsm-body {
    padding: 12px 14px;
    gap: 6px;
    border-radius: 8px;
}

.wk-gift-popup-progress .lffsm-progress {
    height: 8px;
}

.wk-gift-popup-progress .lffsm-progress-inner {
    background: #24b9d7;
}

.wk-gift-popup-progress .lffsm-body.message-success {
    border-color: #cfe5a4;
    box-shadow: 0 1px 0 rgba(141, 181, 36, .16);
}

.wk-gift-popup-progress .lffsm-body.message-success .lffsm-threshold {
    color: #6b8f1a;
}

.wk-gift-popup-progress .lffsm-body.message-success .lffsm-progress-inner {
    background: #8db524;
}

.wk-gift-card-grid.is-locked {
    position: relative;
}

.wk-gift-card-grid.is-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    /*background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);*/
    border-radius: 10px;
    pointer-events: none;
}

@media (max-width: 575px) {
    .wk-gift-choice-box {
        padding: 12px;
        border-radius: 6px;
    }

    .wk-gift-card-grid {
        gap: 8px;
    }

    .wk-gift-card {
        display: grid;
        grid-template-columns: 24px 68px minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
        min-height: 0;
        padding: 8px 10px;
        border-radius: 7px;
    }

    .wk-gift-card__radio {
        position: static;
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        width: 20px;
        height: 20px;
    }

    .wk-gift-card__badge {
        top: 8px;
        right: 8px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .wk-gift-card__name {
        grid-column: 3;
        grid-row: 1;
        min-height: 0;
        margin: 0;
        padding: 0;
        font-size: 13px;
        line-height: 1.25;
        text-align: left;
    }

    .wk-gift-card__image {
        grid-column: 2;
        grid-row: 1;
        width: 68px;
        min-height: 54px;
        margin: 0;
        padding-top: 0;
    }

    .wk-gift-card__image img {
        max-width: 68px;
        max-height: 54px;
    }

    .wk-gift-card__select,
    .wk-gift-card__locked-note,
    .wk-gift-card__status,
    .wk-gift-card__variant-note {
        grid-column: 2 / 4;
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.3;
        text-align: left;
    }

    .wk-gift-decline {
        margin-top: 10px;
        padding-top: 10px;
        padding-left: 12px;
        justify-content: flex-start;
        box-sizing: border-box;
    }
}
