/**
 * Plugin Name: Nobs • Share Buttons
 * Plugin URI: https://www.creativejuiz.fr/blog/en/?s=social%20post%20sharer
 *
 * @author: Geoffrey Crofte
 */

.juiz-sps-modal {
    --jsps-modal-background: #FFF;
    --jsps-light-gray: #E3E8ED;
    --jsps-border-color: var(--jsps-light-gray);
    --jsps-error-color: #A04C4C;
    --jsps-success-color: #48864D;
    --jsps-overlay: rgba(255, 255, 255, .9);
    /* Blue Theme */
    --jsps-brand-color: #43AFD2;
    --jsps-brand-color-dark: #176B86;
    --jsps-brand-dark: #0A2933;
    --jsps-brand-code-light: #6CB7D0;
}

.juiz-sps-modal,
.juiz-sps-modal * {
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.juiz-sps-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    background: #fff;
    background: var(--jsps-overlay, var(--jsps-modal-background));
    z-index: 999999;
    opacity: 0;
    transition: opacity .4s;
}

.juiz-sps-modal.jsps-modal-show {
    opacity: 1;
}

.juiz-sps-modal ::selection {
    background: var(--jsps-brand-color);
    color: var(--jsps-modal-background);
}

.juiz-sps-modal ::-moz-selection {
    background: var(--jsps-brand-color);
    color: var(--jsps-modal-background);
}

.juiz-sps-modal .juiz-sps-modal-inside {
    position: relative;
    margin: 0 auto;
    width: 460px;
    max-width: 100%;
    font-size: 1em;
    line-height: 1.7;
    color: var(--jsps-brand-dark);
    background: var(--jsps-modal-background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 3px 8px rgba(0, 0, 0, .09), 0 16px 24px rgba(0, 0, 0, .08);
    border-radius: 8px;
    overflow: auto;
    transform: scale(.95);
    transition: all .4s;
}

.jsps-modal-show .juiz-sps-modal-inside {
    transform: scale(1);
}

.juiz-sps-modal .juiz-sps-modal-inside p {
    line-height: 1.7;
}

.juiz-sps-modal .juiz-sps-modal-content {
    padding: 4px 16px 16px;
}

.juiz-sps-modal .juiz-sps-modal-header {
    padding: 12px 16px 0;
    font-size: 1.3em;
    color: var(--jsps-brand-dark);
}

.juiz-sps-modal .juiz-sps-modal-footer {
    padding: 12px 8px;
    font-size: .75em;
    text-align: center;
    background: var(--jsps-light-gray);
}

.juiz-sps-modal .juiz-sps-modal-footer a {
    color: inherit;
}

.juiz-sps-modal .juiz-sps-modal-footer p {
    margin: 0;
}

.juiz-sps-modal .juiz-sps-modal-footer a {
    text-decoration: underline;
}

.juiz-sps-modal [for="jsps-friend-email"] {
    display: flex;
    justify-content: space-between;
}

.juiz-sps-modal [for="jsps-friend-email"] span {
    padding: 3px 10px;
    font-size: .75em;
    font-weight: bold;
    background: rgba(255, 255, 255, .1);
    border-radius: 24px;
}

@media (min-width: 640px) {
    .juiz-sps-modal .juiz-sps-modal-header,
    .juiz-sps-modal .juiz-sps-modal-content,
    .juiz-sps-modal .juiz-sps-modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.juiz-sps-modal .juiz-sps-modal-title {
    margin: 0;
    font-weight: normal;
    text-align: left;
}

.juiz-sps-modal .juiz-sps-message-info {
    padding: 0;
    font-size: .875em;
}

.juiz-sps-modal label {
    display: block;
    margin-top: 1em;
    margin-bottom: .2em;
    font-size: .925em;
    font-weight: bold;
    text-align: left;
    color: var(--jsps-brand-color-dark);
}

.juiz-sps-modal .juiz-sps-label-info {
    display: block;
    font-size: .925em;
    font-weight: normal;
}

.juiz-sps-modal .juiz-sps-label-info,
.juiz-sps-modal p.juiz-sps-message-info {
    color: var(--jsps-brand-dark);
    opacity: .7;
    line-height: 1.3;
}

.juiz-sps-modal form p {
    margin: .4em 0;
}

.juiz-sps-modal input[type="text"],
.juiz-sps-modal input[type="email"],
.juiz-sps-modal textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 0;
    border: 2px solid var(--jsps-border-color);
    font-size: .825em;
    background: var(--jsps-modal-background);
    border-radius: 4px;
    transition: all .275s;
    color: var(--jsps-brand-dark);
}

.juiz-sps-modal textarea {
    resize: vertical;
    height: 96px;
}

.juiz-sps-modal.juiz-sps-modal input[type="text"]:focus,
.juiz-sps-modal.juiz-sps-modal input[type="email"]:focus,
.juiz-sps-modal.juiz-sps-modal textarea:focus {
    background: var(--jsps-modal-background);
    border-color: var(--jsps-brand-color);
    border-width: 2px;
}

.juiz-sps-modal .juiz-sps-submit-infos {
    display: flex;
    align-items: center;
    padding-top: 16px;
}

.juiz-sps-submit-infos .juiz-sps-message-info {
    margin-top: -.2em;
}

.juiz-sps-modal .juiz-sps-submit-line {
    order: -1;
    margin: 0 8px .5em 0;
}

.juiz-sps-modal .juiz-sps-submit-line button,
.juiz-sps-modal .juiz-sps-submit-line input {
    border: 0!important;
    padding: 8px 16px!important;
    font-size: 12px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--jsps-modal-background)!important;
    background: var(--jsps-brand-color)!important;
    white-space: nowrap;
    transition: all .275s;
}

.juiz-sps-modal .juiz-sps-submit-line button:focus-visible,
.juiz-sps-modal .juiz-sps-submit-line input:focus-visible,
.juiz-sps-modal .juiz-sps-submit-line button:hover,
.juiz-sps-modal .juiz-sps-submit-line input:hover {
    background: var(--jsps-brand-color-dark)!important;
}

.juiz-sps-modal .juiz-sps-message {
    margin-top: 8px;
    padding: 24px;
    text-align: center;
    color: var(--jsps-modal-background);
    border-radius: 6px;
}

.juiz-sps-modal .juiz-sps-message svg {
    width: 80px;
}

.juiz-sps-modal .juiz-sps-message p {
    font-size: 1.3em;
    margin: 0;
}

.juiz-sps-modal .juiz-sps-error {
    background: var(--jsps-error-color);
}

.juiz-sps-modal .juiz-sps-success {
    background: var(--jsps-success-color);
}

.juiz-sps-modal .juiz-sps-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 1.4em;
    line-height: 18px;
    text-align: center;
    background: transparent;
    color: #444;
    color: var(--jsps-brand-dark);
    opacity: .5;
    border: 0;
}

.juiz-sps-modal .juiz-sps-hidden {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.juiz-sps-modal .juiz-sps-submit-txt,
.juiz-sps-modal .juiz-sps-loader {
    display: inline-block;
    vertical-align: middle;
}

.juiz-sps-modal .juiz-sps-loader {
    width: 0;
    opacity: 0;
    margin-right: 0;
    height: 22px;
    transition: all .275s;
}

.juiz-sps-modal .juiz-sps-loader.is-active {
    width: 22px;
    opacity: 1;
    margin-right: 6px;
}


/* On small screens */

@media (max-width: 640px) {
    .juiz-sps-modal {
        --jsps-overlay: #FFF;
        justify-content: flex-start;
        ;
        padding: 0;
    }
    .juiz-sps-modal .juiz-sps-modal-inside {
        border-radius: 0;
        box-shadow: none;
    }
    .juiz-sps-modal .juiz-sps-submit-infos {
        flex-direction: column;
    }
    .juiz-sps-modal .juiz-sps-message-info {
        order: 2;
    }
}

@media (prefers-color-scheme: dark) {
    .juiz-sps-modal {
        --jsps-overlay: var(--jsps-brand-dark);
        --jsps-modal-background: var(--jsps-brand-dark);
        --jsps-brand-color-dark: var(--jsps-brand-color);
        --jsps-border-color: rgba(255, 255, 255, .2);
        --jsps-brand-color-dark: rgba(255, 255, 255, .75);
    }
    .juiz-sps-modal .juiz-sps-label-info,
    .juiz-sps-modal p.juiz-sps-message-info {
        color: var(--jsps-brand-code-light);
    }
    .juiz-sps-modal .juiz-sps-modal-header,
    .juiz-sps-modal .juiz-sps-close {
        color: var(--jsps-brand-color-dark);
        opacity: 1;
    }
    .juiz-sps-modal .juiz-sps-modal-footer {
        background: rgba(255, 255, 255, .1);
        color: white;
    }
    .juiz-sps-modal.juiz-sps-modal input:focus,
    .juiz-sps-modal.juiz-sps-modal textarea:focus {
        color: white;
    }
    .juiz-sps-modal.juiz-sps-modal input,
    .juiz-sps-modal.juiz-sps-modal textarea {
        color: rgba(255, 255, 255, .8);
    }
    @media (min-width: 640px) {
        .juiz-sps-modal {
            --jsps-overlay: rgba(10, 41, 51, .8);
        }
    }
}

@media print {
    .juiz-sps-modal {
        display: none;
        margin: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
    }
}