[data-donation-placement] {
    box-sizing: border-box;
}

[data-donation-placement].is-ad-empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.donation-custom-slot {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    place-items: center;
}

.donation-custom-link {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 8px 12px;
    place-items: center;
    border: 1px dashed rgba(199, 168, 255, .45);
    border-radius: 10px;
    color: #d8c8ff;
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.donation-custom-link:hover {
    border-color: rgba(213, 190, 255, .78);
    color: #fff;
    background: rgba(143, 70, 255, .16);
}

.side-ad-adsense-box {
    height: 300px;
    padding: 9px;
}

.donation-home-square {
    display: grid;
    width: 280px;
    height: 280px;
    max-width: 100%;
    overflow: hidden;
    place-items: center;
    margin: 0 auto;
}

.donation-detail-banner,
.donation-auto-banner {
    position: relative;
    width: 100%;
    max-width: 960px;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.donation-detail-banner {
    min-height: 120px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.donation-detail-banner.is-ad-loading {
    border-radius: 12px;
    background:
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .62) 42%, transparent 64%),
        linear-gradient(135deg, rgba(255, 240, 248, .72), rgba(237, 248, 255, .78));
}

.donation-detail-banner.is-ad-loading::before {
    content: "广告加载中";
    position: absolute;
    z-index: 0;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8b96ad;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.donation-detail-banner > .adsbygoogle {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.donation-auto-banner {
    min-height: 90px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.donation-auto-banner > .adsbygoogle {
    width: 100%;
    min-width: 0;
}

.donation-left-rail {
    display: none;
}

html.theme-light .donation-custom-link {
    border-color: rgba(124, 44, 255, .28);
    color: #6f46b5;
    background: rgba(255, 255, 255, .72);
}

@media (min-width: 1580px) and (min-height: 820px) {
    .donation-left-rail {
        position: fixed;
        z-index: 80;
        top: max(84px, calc(50vh - 360px));
        left: max(8px, calc(50% - 786px));
        display: block;
        width: 180px;
        height: 720px;
        overflow: hidden;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .donation-detail-banner {
        min-height: 120px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .donation-auto-banner {
        min-height: 60px;
        margin-top: 14px;
        margin-bottom: 14px;
    }
}
