.wfg-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 648px;
    min-width: 320px;
    height: auto;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 0 10px 0 #222;
}

.wfg-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
}

.wfg-popup {
    border: 1px solid #ccc;
    max-width: 648px;
    position: fixed;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 0 10px 0 #222;
    margin-top: .5em;
    margin-bottom: .5em;
    margin-left: auto;
    margin-right: auto;
    border-radius: .25em;
    padding-top: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #002395 0%, #002395 50%, #ffffff 50%, #ffffff 100%);
}

.wfg-popup h2 {
    font: 18px sans-serif;
    text-align: center;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.04em;
    padding: 16px 0;
    margin-top: 0;
    color: #6772e5;
    text-shadow: 0 1px rgba(255, 255, 255, 0.7);
    background: #ffffff;
    border-bottom: 1px solid #d1d1d1;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .07), 0 7px 17px 0 rgba(0, 0, 0, .1);

}

.wfg-popup label {
    display: inline-block;
    margin-bottom: 0;
}

.wfg-gifts {
    padding: 15px;
    text-align: center;
}

.wfg-heading {
    cursor: pointer;
}

.wfg-gift-item {
    display: inline-block;
    text-align: center;
    position: relative;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 150px;
    transition: box-shadow .2s ease-in-out;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .07), 0 7px 17px 0 rgba(0, 0, 0, .1);
}

.wfg-gift-item h3 {
    background: rgb(225, 225, 225);
    padding: 4px 8px;
    color: #494848;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    overflow: hidden;
}

.wfg-gift-item .wfg-checkbox {
    position: absolute;
    top: 2px;
    left: 5px;
}

.wfg-gifts .wfg-actions {
    text-align: center;
    margin-top: 35px;
}

.wfg-title > img {
    display: inline-block;
}

.wfg-gifts .wfg-items-wrap {
    margin: 11px 0 0 0px;
    overflow-y: auto;
    max-height: 60vh;
}

.wfg-pop-up-wrapper {
    -webkit-box-shadow: -45px 49px 83px 1px rgba(0, 0, 0, 0.45);
    -moz-box-shadow: -45px 49px 83px 1px rgba(0, 0, 0, 0.45);
    box-shadow: -45px 49px 83px 1px rgba(0, 0, 0, 0.45);
    display: block;
    margin: 20px auto;
    width: auto;
    position: relative;
}

.wfg-gift-item input[type="checkbox"] {
    display: none;
}

.wfg-gift-item input[type="checkbox"] + label {
    cursor: pointer;
}

/*input[type="checkbox"]:checked + label img{
    border:solid 4px #0080FF;
    background:#000;
}*/

.wfg-gift-item input[type="checkbox"]:checked + label {
    background: #0080FF;
}

.wfg-gift-item input[type="checkbox"]:checked + label:before {
    position: absolute;
    content: '';
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    max-width: 60px;
    max-height: 60px;
    background: url("img/tick-dark-green.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.8;
}

.wfg-actions .wfg-button {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 10px;
}

.wfg-actions .wfg-button {
    white-space: nowrap;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
    background: #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: #6772e5;
    text-decoration: none;
    transition: all .15s ease;
    border: none;
}

.wfg-actions .wfg-add-gifts {
    color: #fff;
    background: #6772e5;
}

.wfg-actions .wfg-button:hover {
    color: #7795f8;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
}

.wfg-actions .wfg-add-gifts:hover {
    color: #fff;
    background-color: #7795f8;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 600px) and (-webkit-min-device-pixel-ratio: 2) {
    .wfg-gift-item {
        width: 140px;
    }
}
