/*
 * Fold Certification — Native Challenge Sharing v0.8.397
 * Presentation for the non-native fallback share window only.
 */

html body.fold-share-menu-open {
    overflow: hidden !important;
}

html body:not(.wp-admin) .fold-challenge-share-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0, 4, 12, .84) !important;
    backdrop-filter: blur(8px);
}

html body:not(.wp-admin) .fold-challenge-share-dialog {
    width: min(560px, 100%) !important;
    max-height: min(760px, calc(100vh - 32px)) !important;
    overflow: auto !important;
    position: relative !important;
    padding: 26px !important;
    border: 1px solid #d6b85a !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(214, 184, 90, .12), transparent 34%),
        linear-gradient(145deg, #0d2947, #02070e 72%) !important;
    color: #ffffff !important;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

html body:not(.wp-admin) .fold-challenge-share-dialog h3 {
    margin: 0 44px 8px 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
}

html body:not(.wp-admin) .fold-challenge-share-dialog > p {
    margin: 0 0 18px !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    font-size: 15px !important;
}

html body:not(.wp-admin) .fold-challenge-share-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #315b87 !important;
    border-radius: 50% !important;
    background: #02070e !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

html body:not(.wp-admin) .fold-challenge-share-close:hover,
html body:not(.wp-admin) .fold-challenge-share-close:focus {
    border-color: #22d3ee !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .17) !important;
}

html body:not(.wp-admin) .fold-challenge-share-preview {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 18px !important;
    border: 1px solid #315b87 !important;
    border-radius: 12px !important;
    background: #000000 !important;
}

html body:not(.wp-admin) .fold-challenge-share-options {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html body:not(.wp-admin) .fold-challenge-share-option {
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid #315b87 !important;
    border-radius: 10px !important;
    background: #07182b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

html body:not(.wp-admin) .fold-challenge-share-option:hover,
html body:not(.wp-admin) .fold-challenge-share-option:focus {
    border-color: #d6b85a !important;
    background: #10365f !important;
    outline: none !important;
}

html body:not(.wp-admin) .fold-challenge-share-copy {
    grid-column: 1 / -1 !important;
    border-color: #d6b85a !important;
    background: #10365f !important;
}

@media (max-width: 520px) {
    html body:not(.wp-admin) .fold-challenge-share-overlay {
        align-items: flex-end !important;
        padding: 10px !important;
    }

    html body:not(.wp-admin) .fold-challenge-share-dialog {
        padding: 22px 16px 18px !important;
        border-radius: 18px 18px 10px 10px !important;
    }

    html body:not(.wp-admin) .fold-challenge-share-options {
        grid-template-columns: 1fr !important;
    }

    html body:not(.wp-admin) .fold-challenge-share-copy {
        grid-column: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body:not(.wp-admin) .fold-challenge-share-overlay,
    html body:not(.wp-admin) .fold-challenge-share-dialog {
        scroll-behavior: auto !important;
    }
}
