/* Donate Widget — Floating tab + expandable panel */

.donate-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    align-items: flex-start;
}

/* Tab */
.donate-widget__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    width: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    animation: donate-pulse 3s ease-in-out infinite;
}

.donate-widget__tab:hover {
    background: #a0545a;
}

.donate-widget__label {
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

@keyframes donate-pulse {
    0%, 100% { box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 2px 2px 18px rgba(181, 100, 106, 0.45); }
}

/* Panel */
.donate-widget__panel {
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12);
    padding: 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.donate-widget.is-open .donate-widget__panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Close button */
.donate-widget__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.donate-widget__close:hover {
    color: var(--primary);
}

/* Heading */
.donate-widget__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text);
    margin: 0 0 20px;
}

/* CTA text */
.donate-widget__cta {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 20px;
}

/* Donate link button */
.donate-widget__button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.donate-widget__button:hover {
    background: #a0545a;
    color: #fff;
}

/* ─── Mobile (<=768px) ─── */
@media (max-width: 768px) {
    .donate-widget {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .donate-widget__tab {
        flex-direction: row;
        width: auto;
        border-radius: 0 10px 0 0;
        padding: 10px 14px;
        gap: 8px;
    }

    .donate-widget__label {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }

    .donate-widget__panel {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: none;
        transform: translateY(20px);
    }

    .donate-widget.is-open .donate-widget__panel {
        transform: translateY(0);
    }
}
