.charitable-wpcode {
    position: relative;
}
.charitable-wpcode-container {
    position: relative
}
.charitable-wpcode-blur {
    filter: blur(6px);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none
}

.charitable-wpcode-popup {
    position: absolute;
    top: 75px;
    left: 50%;
    margin: 0 auto 0 -365px;
    z-index: 100;
    display: flex;
    width: 730px;
    max-width: 90%;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 5px 60px 0 rgba(0, 0, 0, 0.2);
    a {
        margin: 5px auto 0 auto;
        display: inline-block;
        &.button-link {
            background-color: #5AA152;
            color: #ffffff;
            padding: 10px 15px;
            position: relative;
            top: -4px;
            text-decoration: none;
            border-radius: 5px;
            text-shadow: none;
            font-weight: 600;
            font-size: 13px;
            line-height: normal;
            cursor: pointer;
            &:hover,
            &:focus {
                background-color: #4a8b3d;
                color: white;
            }
        }
    }
}

.charitable-wpcode-popup .charitable-wpcode-popup-title {
    color: #1d2327;
    text-align: center;
    width: 100%;
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 15px
}

.charitable-wpcode-popup .charitable-wpcode-popup-description {
    text-align: center;
    width: 100%;
    color: #50575e;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 30px
}

.charitable-wpcode-popup .charitable-wpcode-popup-button {
    margin-bottom: 15px
}

.charitable-wpcode-popup .charitable-wpcode-popup-link {
    color: #646970;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration-line: underline
}

.charitable-wpcode-popup .charitable-wpcode-popup-link:hover {
    color: #2c3338
}

.charitable-wpcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #dcdcde;
    .charitable-wpcode-header-search {
        position: relative;
        margin-left: 30px
    }
    .charitable-wpcode-header-search:before {
        font: normal normal normal 14px/1 FontAwesome;
        content: "\f002";
        color: #a7aaad;
        padding: 12px;
        font-size: 16px;
        left: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%)
    }
    #charitable-wpcode-snippet-search {
        width: 250px;
        height: 36px;
        padding-left: 30px
    }
}

@media (max-width: 599px) {
    .charitable-wpcode-header {
        flex-direction: column;
        align-items: flex-start
    }
}
@media (max-width: 599px) {
    .charitable-wpcode-header .charitable-wpcode-header-search {
        width: 100%;
        margin-top: 20px;
        margin-left: 0
    }
}


@media (max-width: 599px) {
    .charitable-wpcode-header #charitable-wpcode-snippet-search {
        width: 100%
    }
}

#charitable-wpcode-snippets-list {
    .charitable-wpcode-snippets-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        grid-gap: 20px;
        .charitable-wpcode-snippet {
            margin: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            align-items: flex-start;
            border-radius: 6px;
            border: 1px solid #c3c4c7;
            background: #ffffff;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07);
            .charitable-wpcode-snippet-header {
                width: 100%;
                position: relative;
            }
            .charitable-wpcode-snippet-external-link {
                color: #646970;
                padding: 10px;
                font-size: 16px;
                position: absolute;
                right: 0;
                top: 0px;
                text-decoration: none;
                opacity: 0.5;
                display: block;
                z-index: 999;
            }
            .charitable-wpcode-snippet-title {
                margin: 0;
                padding: 20px 20px 5px 20px;
                color: #2c3338;
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: 22px;
                overflow: hidden;
                position: relative;
                text-overflow: ellipsis;
                white-space: nowrap
            }
            .charitable-wpcode-snippet-note {
                color: #646970;
                font-size: 14px;
                font-weight: 400;
                line-height: 18px;
                padding: 0px 20px 15px 20px;
            }
            .charitable-wpcode-snippet-footer {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: #f6f6f6;
            }
            .charitable-wpcode-snippet-badge {
                color: #008a20;
                font-size: 10px;
                font-weight: 700;
                line-height: 10px;
                letter-spacing: 0.5px;
                text-transform: uppercase;
                padding-left: 20px;
            }
            .charitable-wpcode-snippet-badge.charitable-wpcode-installing-in-progress {
                color: #a7aaad;
            }
            .charitable-wpcode-snippet-button {
                text-align: center;
                margin: 10px 10px;
            }
        }
    }
}

/* dashboard overrides */
#charitable-dashboard-report-container #charitable-wpcode-snippets-list {
    .charitable-wpcode-snippets-list {
        grid-template-columns: 1fr;
        margin: 0px;
        .charitable-wpcode-snippet {
            border: 0;
            flex-direction: row;
            align-items: center;
        }
        .charitable-wpcode-snippet-header {
            width: auto;
        }
        .charitable-wpcode-snippet-footer {
            width: auto;
            background: none;
            position: relative;
            .charitable-wpcode-snippet-external-link {
                position: relative;
            }
        }
    }
}

#charitable-wpcode-no-results {
    display: none;
    font-size: 14px
}

.charitable-loading-spinner {
    background-image: url("../../images/charitable-spinner.svg");
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    height: 15px;
    margin: 0 auto;
    vertical-align: -2px;
    width: 15px;
    -webkit-animation: charitable-spinner-rotation 0.8s linear infinite;
    -moz-animation: charitable-spinner-rotation 0.8s linear infinite;
    -ms-animation: charitable-spinner-rotation 0.8s linear infinite;
    -o-animation: charitable-spinner-rotation 0.8s linear infinite;
    animation: charitable-spinner-rotation 0.8s linear infinite;
    background-size: 14px 15px;
}

@media (max-width: 782px) {
    .charitable-wpcode .charitable-wpcode-popup {
        top: 10%
    }
}

@keyframes charitable-spinner-rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }