.progress-bar-funds {
    height: 2em !important;
    background: #e0e0e0 !important;
    padding: 3px !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2) !important;
}

.progress-bar-fill {
    display: block;
    height: 2em;
    border-radius: 3px;
}

g#scale path {
    stroke: white;
    stroke-width: 0.7;
}

.progress-percentage {
    color: black;
    font-size: 20px;
    position: absolute;
    left: 0px;
    right: 50%;
    top: 35%;
    bottom: 0px;
    z-index: 1;
    width: 100%;
}

.float-end{
    float:right
}
.float-start{
    float:left
}

.custom-give-online {
    z-index: 1;
}

.relative-z1 {
    position:relative;
    z-index: 1;
}

/* Class just for links generated by Quill */
.ql-link {
    /*color: #007bff !important; */
    text-decoration: none;
}

.ql-link:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Fund target panel (campaigns_panel_target_button) */
.fund-target-section {
    /* Keeps the card and share menu layers inside this panel next to other panels */
    isolation: isolate;
}

.fund-target-panel {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 44px 56px;
    border-radius: 12px;
}

.fund-target-panel.has-card {
    border: 1px solid #dbe7f3;
    box-shadow: 0 1px 4px rgba(20, 60, 110, .06);
}

.fund-target-panel .fund-target-title {
    margin: 28px 0 12px 0;
}

.fund-target-panel .fund-target-title > * {
    margin: 0;
}

.fund-target-description {
    margin: 0 0 16px 0;
    text-align: center;
}

.fund-target-sentence {
    margin: 0 0 36px 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.fund-target-bar {
    position: relative;
    margin: 0 0 30px 0;
}

.fund-target-track {
    position: relative;
    height: 18px;
    border-radius: 999px;
    background: rgba(20, 60, 110, .13);
    overflow: hidden;
}

.fund-target-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
}

.fund-target-bubble {
    position: absolute;
    top: 50%;
    left: 4%;
    min-width: 60px;
    height: 60px;
    padding: 0 10px;
    border: 3px solid #ffffff;
    /* A circle, stretching into a pill for long labels such as 1250% */
    border-radius: 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(51, 51, 51, .18);
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.fund-target-labels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}

.fund-target-labels .fund-target-start {
    grid-column: 1;
    opacity: .85;
}

.fund-target-labels .fund-target-status {
    grid-column: 2;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.fund-target-panel .fund-target-labels .fund-target-status.is-over {
    color: #28a745 !important;
}

.fund-target-labels .fund-target-end {
    grid-column: 3;
    text-align: right;
    opacity: .85;
}

.fund-target-divider {
    margin-top: 32px;
    border-top: 1px solid rgba(20, 60, 110, .09);
}

.fund-target-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.fund-target-stat {
    flex: 1;
    min-width: 200px;
    padding: 28px 20px;
    border: 1px solid rgba(20, 60, 110, .09);
    border-radius: 10px;
    background: rgba(20, 60, 110, .035);
    text-align: center;
}

.fund-target-stat-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.fund-target-stat-label {
    margin-top: 10px;
    font-size: 14px;
    opacity: .85;
}

.fund-target-closed {
    margin: 20px 0 0 0;
    font-size: 12px;
    text-align: center;
    opacity: .75;
}

.fund-target-actions {
    margin-top: 32px;
}

.fund-target-panel .fund-target-donate {
    padding: 10px 56px;
    border-radius: 4px;
}

/* Share (admins only) */
.fund-target-share {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.fund-target-share-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d8dbe0;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fund-target-share-menu {
    position: absolute;
    top: 44px;
    right: 0;
    width: 210px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.fund-target-share-heading {
    padding: 8px 10px 4px 10px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fund-target-share-menu .fund-target-share-link {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.fund-target-share-menu .fund-target-share-link:hover,
.fund-target-share-menu .fund-target-share-link:focus {
    background: #f5f5f5;
    color: #333333;
    text-decoration: none;
}

/* Share dialog: snapshot preview, link and message, then the platform's own share window */
.fund-target-share-dialog {
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    color: #333333;
    font-size: 14px;
    text-align: left;
}

.fund-target-share-dialog::backdrop {
    background: rgba(0, 0, 0, .5);
}

.fund-target-share-dialog-form {
    margin: 0;
    padding: 28px;
}

.fund-target-share-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fund-target-share-dialog .fund-target-share-dialog-title {
    margin: 0;
    color: #333333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.fund-target-share-dialog-close {
    padding: 0 4px;
    border: none;
    background: none;
    color: #777777;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.fund-target-share-dialog .fund-target-share-dialog-label {
    display: block;
    margin: 16px 0 6px 0;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.fund-target-share-dialog-body > .fund-target-share-dialog-label:first-child {
    margin-top: 0;
}

.fund-target-share-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1200 / 630;
    border: 2px dashed #d8dde3;
    border-radius: 8px;
    background: #f7f8fa;
    text-align: center;
}

.fund-target-share-preview.is-ready {
    border: 1px solid #e5e7eb;
}

.fund-target-share-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fund-target-share-preview-loading,
.fund-target-share-preview-error p {
    margin: 0 16px;
    color: #777777;
    font-size: 13px;
}

.fund-target-share-retry {
    margin-top: 10px;
    padding: 6px 14px;
    border: 1px solid #d8dbe0;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fund-target-share-link-row {
    display: flex;
    gap: 8px;
}

.fund-target-share-dialog .fund-target-share-link-input,
.fund-target-share-dialog .fund-target-share-message {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
}

.fund-target-share-dialog .fund-target-share-link-input {
    background: #f7f8fa;
    color: #555555;
}

.fund-target-share-dialog .fund-target-share-message {
    resize: vertical;
}

.fund-target-share-copy {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid #d8dbe0;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fund-target-share-dialog .fund-target-share-counter,
.fund-target-share-dialog .fund-target-share-hint,
.fund-target-share-dialog .fund-target-share-blocked {
    margin: 6px 0 0 0;
    color: #777777;
    font-size: 12px;
}

.fund-target-share-dialog .fund-target-share-counter.is-over,
.fund-target-share-dialog .fund-target-share-blocked {
    color: #dc3545;
}

.fund-target-share-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.fund-target-share-cancel,
.fund-target-share-submit {
    padding: 9px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fund-target-share-cancel {
    border: 1px solid #d8dbe0;
    background: #ffffff;
    color: #333333;
}

.fund-target-share-submit {
    border: 1px solid #006ec9;
    background: #006ec9;
    color: #ffffff;
}

.fund-target-share-submit:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.fund-target-share-dialog [hidden] {
    display: none !important;
}

@media (max-width: 575px) {
    .fund-target-share-dialog-form {
        padding: 20px;
    }

    .fund-target-share-dialog-footer > button {
        flex: 1 1 0;
    }
}

/* The panel's content stacks above its own layers (the share menu has its own) */
.fund-target-panel > :not(.fund-target-share) {
    position: relative;
    z-index: 1;
}

/* Confetti burst once the goal is reached: one canvas over the page, removed when the last piece has fallen */
.fund-target-burst {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

/* Live updates ease in once the first count up is done */
.fund-target-panel.is-live .fund-target-fill {
    transition: width .6s ease;
}

.fund-target-panel.is-live .fund-target-bubble {
    transition: left .6s ease;
}

@media (max-width: 575px) {
    /* Too narrow for three labels in a line - the "X to go" text moves under the ends of the bar */
    .fund-target-labels {
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
    }

    .fund-target-labels .fund-target-end {
        grid-column: 2;
        grid-row: 1;
    }

    .fund-target-labels .fund-target-status {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 767px) {
    .fund-target-panel {
        padding: 32px 24px;
    }

    .fund-target-panel.has-share .fund-target-title {
        margin-top: 44px;
    }

    .fund-target-bubble {
        min-width: 48px;
        height: 48px;
        padding: 0 8px;
        border-radius: 24px;
        font-size: 14px;
    }

    .fund-target-labels {
        font-size: 12px;
    }

    .fund-target-stat {
        flex-basis: 100%;
    }

    .fund-target-panel .fund-target-donate {
        padding: 10px 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fund-target-panel.is-live .fund-target-fill,
    .fund-target-panel.is-live .fund-target-bubble {
        transition: none;
    }
}
