
/* ==================================================
   SUNRISE GIVING TUESDAY 2026
   ================================================== */

#sunriseGivingPopup:not([open]) {
    display: none !important;
}

#sunriseGivingPopup[open] {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    padding: 0 !important;
    width: 650px !important;
    max-width: calc(100% - 32px) !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    height: fit-content !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #f8f5ef !important;
    box-shadow: 0 25px 100px rgba(0,0,0,.45);
    overflow: auto !important;
    box-sizing: border-box;
    animation: gtEntrance .45s ease-out;
}

/* Dark background */

#sunriseGivingPopup::backdrop {
    background: rgba(5, 15, 35, .78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Campaign image */

#sunriseGivingPopup .gt-image {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
}

/* Close button */

#sunriseGivingPopup .gt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #102c53;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0,0,0,.2);
    transition: transform .25s ease;
}

#sunriseGivingPopup .gt-close:hover {
    transform: rotate(90deg);
}

/* Donation button container */

#sunriseGivingPopup .gt-actions {
    padding: 5px 25px 25px;
    margin: 0;
    text-align: center;
    background: #f8f5ef;
}

/* Give Today button */

#sunriseGivingPopup .gt-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    padding: 16px 30px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(
        135deg, #ed1737, #c70b28
    );
    color: #ffffff !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 7px 20px rgba(199,11,40,.25);
    transition: transform .25s ease,
                box-shadow .25s ease,
                background .25s ease;
}

#sunriseGivingPopup .gt-donate:hover {
    background: #b90b27;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(199,11,40,.35);
}

#sunriseGivingPopup .gt-arrow {
    transition: transform .25s ease;
}

#sunriseGivingPopup .gt-donate:hover .gt-arrow {
    transform: translateX(5px);
}

#sunriseGivingPopup :focus-visible {
    outline: 3px solid #e5b900;
    outline-offset: 3px;
}

/* Prevent background scrolling */

body.gt-popup-open {
    overflow: hidden !important;
}

/* Animation */

@keyframes gtEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */

@media (max-width: 600px) {

    #sunriseGivingPopup[open] {
        max-width: calc(100% - 24px) !important;
        border-radius: 12px !important;
    }

    #sunriseGivingPopup .gt-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 24px;
    }

    #sunriseGivingPopup .gt-actions {
        padding: 5px 20px 20px;
    }

    #sunriseGivingPopup .gt-donate {
        padding: 13px 20px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #sunriseGivingPopup[open] {
        animation: none;
    }

    #sunriseGivingPopup * {
        transition: none !important;
    }
}

/* Giving Tuesday - Design Refinements */

#sunriseGivingPopup[open] {
    width: 750px !important;
    border-radius: 20px !important;
    max-height: 94dvh !important;
    box-shadow: 0 25px 100px rgba(0,0,0,.35);
}

#sunriseGivingPopup::backdrop {
    background: rgba(5, 15, 35, .65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#sunriseGivingPopup .gt-actions {
    padding: 15px 35px 35px;
    background: #f6f2ec;
}

#sunriseGivingPopup .gt-donate {
    max-width: 420px;
    padding: 18px 35px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(199,11,40,.18);
}

#sunriseGivingPopup .gt-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 25px;
}

@media (max-width: 600px) {

    #sunriseGivingPopup[open] {
        max-width: calc(100% - 24px) !important;
        border-radius: 14px !important;
    }

    #sunriseGivingPopup .gt-actions {
        padding: 10px 20px 25px;
    }

    #sunriseGivingPopup .gt-donate {
        font-size: 20px;
        padding: 14px 25px;
    }

    #sunriseGivingPopup .gt-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}
/* Giving Tuesday Event Date */

.gt-date {
    text-align: center;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    color: #233457;
    background: #ffffff;
    padding: 18px 15px 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
}