/* Give page donation cards (CMD-990). Loaded on the front end and in the block editor. */

.give-inline .pay-buttons {
    justify-content: center;
}

.give-inline .pay-block {
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: 0 0 30px 0 rgba(2, 78, 158, .2);
}

.give-inline .pay-block:hover {
    border: 4px solid #024e9e !important;
}

.give-inline .pay-block figure {
    height: 100px;
    margin-top: 0;
    margin-bottom: 0;
}

.give-inline .pay-buttons p {
    line-height: 1.625;
    font-weight: 400;
}

.copyable-text,
.donation-p {
    position: relative;
}

.donation-p {
    cursor: pointer;
    overflow-wrap: anywhere;
}

/* The email is plain text in the editor; seed-frontend.js adds these spans on the front end. */
.zelle-domain {
    white-space: nowrap;
}

/* Zelle column is narrower than domain + icon here. */
@media (min-width: 782px) and (max-width: 859px) {
    .zelle-domain {
        white-space: normal;
    }
}

.copy-text {
    background-image: url("../images/content_copy.png");
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    background-repeat: no-repeat;
    margin-bottom: -10px;
    width: 24px !important;
    height: 24px !important;
}

.copied {
    background: #414042;
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
    position: absolute;
    top: -28px;
    right: 0;
    white-space: nowrap;
    opacity: 0;
}

.display-span {
    transition: opacity 2s ease-in-out;
    opacity: 1;
}

.donation-desc {
    visibility: hidden;
}

.donation-p:hover + .donation-desc {
    visibility: visible;
}

body.cmddark .pay-block {
    background-color: #fff !important;
}

body.cmddark .copied {
    background-color: #fff !important;
    color: #414042;
}

@media (max-width: 786px) {
    .donation-desc {
        visibility: visible !important;
    }
}

/* Hover-only note: keep it out of flow so its hidden space doesn't pad the section. */
@media (min-width: 787px) {
    .give-inline .wp-block-column:has(> .donation-desc) {
        position: relative;
    }

    .give-inline .donation-desc {
        position: absolute;
        left: 0;
        right: 0;
        margin-top: 8px;
    }
}

/* Block editor: show the hover-only note in place so it can be edited. */
.editor-styles-wrapper .give-inline .donation-desc {
    visibility: visible;
    position: static;
    margin-top: 24px;
}
