/* ZZZippy Shop — Donation Form block */
.zzz-donation-form-bleed {
    --zdf-bg: transparent;
    --zdf-text: #1a1a1a;
    --zdf-heading: #1e3a5f;
    --zdf-accent: #000;
    --zdf-btn-bg: #000;
    --zdf-btn-text: #fff;
    --zdf-radius: 24px;
    --zdf-content-w: 80%;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 1.5rem 1.25rem 2rem;
    background: var(--zdf-bg);
    color: var(--zdf-text);
    /* no font-family declaration: the theme's .font1/.font2/.font3 class on
       this wrapper must win (same specificity, so any declaration here could
       override it depending on stylesheet order) */
}

/* Form controls don't inherit fonts by default; make the whole form follow
   the font class on the wrapper. */
.zzz-donation-form button,
.zzz-donation-form input,
.zzz-donation-form select,
.zzz-donation-form textarea {
    font-family: inherit;
}

.zzz-donation-form {
    box-sizing: border-box;
    width: var(--zdf-content-w);
    max-width: var(--zdf-content-w);
    margin: 0 auto;
}

.zzz-donation-form *,
.zzz-donation-form *::before,
.zzz-donation-form *::after {
    box-sizing: border-box;
}

.zzz-donation-form .zdf-title {
    margin: 0 0 1.25rem;
    font-size: var(--zdf-heading-size, clamp(1.75rem, 4vw, 2.25rem));
    font-weight: 700;
    color: var(--zdf-heading);
    line-height: 1.2;
}

.zzz-donation-form .zdf-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
}

.zzz-donation-form .zdf-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.zzz-donation-form .zdf-amount input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--zdf-accent);
    border-radius: 3px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.zzz-donation-form .zdf-amount input[type="radio"]:checked {
    background: var(--zdf-accent);
}

.zzz-donation-form .zdf-amount input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: 1px;
}

.zzz-donation-form .zdf-custom-wrap {
    margin-bottom: 1rem;
}

.zzz-donation-form .zdf-custom-input {
    width: 100%;
    max-width: 12rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--zdf-accent);
    border-radius: calc(var(--zdf-radius) * 0.5);
    font-size: 1rem;
    background: #fff;
    color: var(--zdf-text);
}

.zzz-donation-form .zdf-frequency {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.65rem 2rem 0.65rem 1rem;
    border: 1px solid var(--zdf-accent);
    border-radius: var(--zdf-radius);
    font-size: 1rem;
    font-weight: 500;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
    appearance: none;
    -webkit-appearance: none;
    color: var(--zdf-text);
    cursor: pointer;
}

.zzz-donation-form .zdf-fee-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
    cursor: pointer;
}

.zzz-donation-form .zdf-fee-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--zdf-accent);
    border-radius: 3px;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.zzz-donation-form .zdf-fee-check input[type="checkbox"]:checked {
    background: var(--zdf-accent);
}

.zzz-donation-form .zdf-fee-check input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
}

.zzz-donation-form .zdf-summary {
    margin-bottom: 1.25rem;
}

.zzz-donation-form .zdf-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.zzz-donation-form .zdf-row--total {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

.zzz-donation-form .zdf-submit {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--zdf-radius);
    background: var(--zdf-btn-bg);
    color: var(--zdf-btn-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.zzz-donation-form .zdf-submit:hover {
    opacity: 0.88;
}

.zzz-donation-form .zdf-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.zzz-donation-form .zdf-msg--admin {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}

.zzz-donation-form .zdf-msg {
    margin: 0;
    padding: 1rem;
    text-align: center;
}

.zzz-donation-form .zdf-msg--error {
    color: #b00020;
    margin-bottom: 1rem;
    font-weight: 600;
}

.zzz-donation-form .zdf-msg--admin {
    font-size: 0.85rem;
    opacity: 0.85;
}

.zzz-donation-form .zdf-error {
    color: #b00020;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.zzz-donation-form .zdf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
