/* Shared editorial support dialog for novel and chapter pages. */
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation {
    padding: clamp(1rem, 3vw, 3rem);
    font-family: var(--kol-font-ui), sans-serif;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__backdrop {
    background: color-mix(in oklch, var(--background) 78%, transparent);
    backdrop-filter: blur(7px) saturate(0.85);
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation .kol-novel-donation__panel {
    width: min(100%, 42rem);
    max-height: min(46rem, calc(100vh - 3rem));
    max-height: min(46rem, calc(100svh - 3rem));
    max-height: min(46rem, calc(100dvh - 3rem));
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 2rem 6rem color-mix(in oklch, black 42%, transparent);
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__header {
    align-items: end;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-block-end: 1px solid color-mix(in oklch, var(--border) 88%, transparent);
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__eyebrow {
    margin-block-end: 0.55rem;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__title {
    color: var(--foreground);
    font-family: var(--kol-font-ui), Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__close {
    width: 2.65rem;
    height: 2.65rem;
    flex-basis: 2.65rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
    font-size: 1.5rem;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__close:hover,
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__close:focus-visible {
    border-color: var(--primary);
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    color: var(--primary);
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__balance {
    justify-content: space-between;
    margin-block-end: 1.5rem;
    padding-block: 0.8rem;
    border-block: 1px solid color-mix(in oklch, var(--border) 88%, transparent);
    color: var(--muted-foreground);
    font-size: 0.78rem;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__balance .mycred-my-balance-wrapper {
    color: var(--primary);
    font-size: 1.25rem;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__state {
    justify-items: stretch;
    gap: 1.25rem;
    padding: 1rem 0 0.25rem;
    color: var(--muted-foreground);
    text-align: start;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__state--notice {
    padding: 1rem 1.1rem;
    border: 0;
    border-inline-start: 2px solid var(--primary);
    border-radius: 0;
    background: color-mix(in oklch, var(--primary) 7%, transparent);
    color: var(--foreground);
    font-weight: 700;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form .mycred-transfer-form {
    gap: 1.35rem;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form label {
    margin-block-end: 0.45rem;
    color: var(--muted-foreground);
    font-size: 0.72rem;
    font-weight: 800;
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form input:not([type="hidden"]),
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form select,
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form textarea {
    min-height: 3rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--background);
    color: var(--foreground);
}

body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form input:not([type="hidden"]):focus,
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form select:focus,
body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__form textarea:focus {
    border-color: var(--primary);
    outline: 2px solid color-mix(in oklch, var(--ring) 35%, transparent);
}

@media (max-width: 480px) {
    body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation {
        padding: 0.75rem;
    }

    body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation .kol-novel-donation__panel {
        max-height: calc(100vh - 1.5rem);
        max-height: calc(100svh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
    }

    body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__header,
    body:is(.kol-series-editorial-page, .single-post) .kol-novel-donation__body {
        padding: 1.15rem;
    }
}
