/*
.czd-popup-wrapper{
    position: absolute;
    display: block;
    padding: .833em 1em;
    opacity: 1;
    z-index: 10000;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    color: #000;
    background: #fff;
    border-radius: .28571429rem;
    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12), 0 2px 10px 0 rgba(34,36,38,.15);
    font-size: 14px;
}


.czd-popup-wrapper.top::after{
    position: absolute;
    content: '';
    width: .71428571em;
    height: .71428571em;
    background: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 0 -1px -1px rgba(34,36,38,.15);
    bottom: -.30714286em;
}

.czd-popup-wrapper.bottom::before{
    position: absolute;
    content: '';
    width: .71428571em;
    height: .71428571em;
    background: #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: -1px -1px 0 0 rgba(34,36,38,.12);
    top: -.30714286em;
}

.czd-popup-wrapper.left::before, .czd-popup-wrapper.left::after{
    right: 0.30714286em;
}

.czd-popup-wrapper.right::before, .czd-popup-wrapper.right::after{
    left: 0.30714286em;
}
*/

/* CSS for popup */
/* Used in exclude grants feature */

.czd-popup-wrapper{
    position: absolute;
    display: block;
    padding: 12px;
    font-size: 14px;
    color: #000;
    background: #fff;
    border: 1px solid #666;
    z-index: 10;
}

/* arrow common attribute */
.czd-popup-wrapper.top:before,
.czd-popup-wrapper.top:after,
.czd-popup-wrapper.left:before,
.czd-popup-wrapper.left:after,
.czd-popup-wrapper.right:before,
.czd-popup-wrapper.right:after,
.czd-popup-wrapper.bottom:before,
.czd-popup-wrapper.bottom:after{
    position: absolute;
    content: '';
    width: 0;
    height: 0;
}

/* before pseudo element will act as the border */
.czd-popup-wrapper.top:before,
.czd-popup-wrapper.left:before,
.czd-popup-wrapper.right:before,
.czd-popup-wrapper.bottom:before{
    z-index: 1;
}

/* after pseudo element will act as the background */
.czd-popup-wrapper.top:after,
.czd-popup-wrapper.left:after,
.czd-popup-wrapper.right:after,
.czd-popup-wrapper.bottom:after{
    z-index: 2;
}

/* arrow at right top */
.czd-popup-wrapper.left.bottom:before{
    right: 7px;
    top: -8px;
    border-bottom: 8px solid #666;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.czd-popup-wrapper.left.bottom:after{
    right: 9px;
    top: -6px;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* arrow at right bottom */
.czd-popup-wrapper.left.top:before{
    right: 7px;
    bottom: -8px;
    border-top: 8px solid #666;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.czd-popup-wrapper.left.top:after{
    right: 9px;
    bottom: -6px;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* arrow at left top */
.czd-popup-wrapper.right.bottom:before{
    left: 7px;
    top: -8px;
    border-bottom: 8px solid #666;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.czd-popup-wrapper.right.bottom:after{
    left: 9px;
    top: -6px;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* arrow at left bottom */
.czd-popup-wrapper.right.top:before{
    left: 7px;
    bottom: -8px;
    border-top: 8px solid #666;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.czd-popup-wrapper.right.top:after{
    left: 9px;
    bottom: -6px;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}