/**
* 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: underline;
    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;
}

/* 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 #eee;
}

/* 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-selected,
.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;
}

/* header */
.lffsm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.lffsm-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

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

.lffsm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    font-size: 11px;
    line-height: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef5e1;
    color: #6b8f1a;
    font-weight: 600;
    white-space: nowrap;
}

.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,
.lffsm-selected {
    line-height: 1.35;
}

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

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

.lffsm-progress-inner {
    height: 100%;
    background: #8db524;
    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 {
    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;
}

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

.wk-gift-popup-progress {
    max-width: 520px;
    margin: 0 auto 10px;
}

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

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