
/* NANNY JEWELS – DARKY V KOSIKU */

#cart-wrapper .nj-gift-box {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin: 18px 0 !important;
    padding: 18px !important;
    background: #FBF6F7;
    border: 1px solid #E4CDD5;
    border-radius: 14px;
    color: #493D42;
}

.nj-gift-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.nj-gift-heading svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: #804961;
}

.nj-gift-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: #804961;
    margin-bottom: 5px;
}

.nj-gift-subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: #493D42;
}

#cart-wrapper .nj-gift-box .free-gifts-wrapper {
    display: block !important;
    width: 100% !important;
}

#cart-wrapper .nj-gift-box .free-gifts {
    display: grid !important;
    grid-template-columns: repeat(
        var(--nj-gift-count, 1),
        minmax(0, 1fr)
    );
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#cart-wrapper .nj-gift-box .free-gifts > li {
    display: block !important;
    position: relative;
    min-width: 0;
    width: 100% !important;
    padding: 12px !important;
    margin: 0 !important;
    background: #FFFFFF;
    border: 1px solid #E4CDD5;
    border-radius: 10px;
    cursor: pointer;
}

#cart-wrapper .nj-gift-box .free-gifts > li.active {
    background: #F3E3E8;
    border-color: #804961;
    box-shadow: inset 0 0 0 1px #804961;
}

#cart-wrapper .nj-gift-box .free-gifts > li label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

#cart-wrapper .nj-gift-box .free-gifts-img {
    display: block !important;
    width: 100% !important;
    max-width: 150px;
    margin: 0 !important;
    padding: 0 !important;
}

#cart-wrapper .nj-gift-box .free-gifts-img img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 7px;
}

#cart-wrapper .nj-gift-box .free-gift-label {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

#cart-wrapper .nj-gift-box .free-gift-name {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #493D42;
}

.nj-gift-price {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #96878D;
    text-decoration: line-through;
}

.nj-gift-free {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 700;
    color: #804961;
}

.nj-gift-choice {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    font-size: 13px;
    color: #804961;
}

.nj-gift-choice::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1px solid #E4CDD5;
    border-radius: 50%;
    background: #FFFFFF;
}

.nj-gift-box li.active .nj-gift-choice::before {
    content: "\2713";
    color: #FFFFFF;
    background: #804961;
    border-color: #804961;
}

/* Jeden dostupny darek */

.nj-gift-box[data-count="1"] .free-gifts > li label {
    flex-direction: row !important;
    text-align: left;
}

.nj-gift-box[data-count="1"] .free-gifts-img {
    max-width: 90px !important;
}

.nj-gift-box[data-count="1"] .free-gift-label {
    text-align: left !important;
}

.nj-gift-box[data-count="1"] .nj-gift-choice {
    justify-content: flex-start;
}

.nj-gift-message {
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 7px;
    background: #F3E3E8;
    color: #804961;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

/* Puvodni tlacitko Shoptetu – zalozni vyber */

.nj-gift-box .free-gift-trigger {
    display: block;
    margin: 12px auto 0 !important;
    background: transparent !important;
    color: #804961 !important;
    border: 0 !important;
    font-size: 12px !important;
    text-decoration: underline;
}

/* Slevovy kupon */

#cart-wrapper .nj-coupon {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
}

.nj-coupon-toggle {
    display: block;
    width: fit-content;
    margin: 8px 0 12px auto;
    padding: 10px 15px;
    background: #FFFFFF;
    border: 1px solid #E4CDD5;
    border-radius: 8px;
    color: #804961;
    font-size: 14px;
    cursor: pointer;
}

.nj-coupon-toggle::after {
    content: "\2304";
    margin-left: 10px;
}

#cart-wrapper .nj-coupon form[hidden] {
    display: none !important;
}

/* Mobilni verze */

@media (max-width: 767px) {

    #cart-wrapper .nj-gift-box {
        margin: 12px 0 !important;
        padding: 10px !important;
        border-radius: 11px;
    }

    .nj-gift-heading {
        gap: 8px;
        margin-bottom: 12px;
    }

    .nj-gift-heading svg {
        width: 26px;
        height: 26px;
    }

    .nj-gift-title {
        font-size: 18px;
    }

    .nj-gift-subtitle {
        font-size: 12px;
    }

    #cart-wrapper .nj-gift-box .free-gifts {
        gap: 6px;
    }

    #cart-wrapper .nj-gift-box .free-gifts > li {
        padding: 6px !important;
        border-radius: 8px;
    }

    #cart-wrapper .nj-gift-box .free-gifts > li label {
        gap: 5px;
    }

    #cart-wrapper .nj-gift-box .free-gift-name {
        font-size: 11px !important;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .nj-gift-price {
        font-size: 11px;
        margin-top: 5px;
    }

    .nj-gift-free {
        font-size: 12px;
    }

    .nj-gift-choice {
        font-size: 10px;
        gap: 3px;
        margin-top: 6px;
    }

    .nj-gift-choice::before {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .nj-gift-message {
        font-size: 11px;
        margin-top: 9px;
        padding: 7px;
    }

    .nj-coupon-toggle {
        font-size: 12px;
    }
}
