.fad-ad {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #faf9f7;
    text-align: center;
}

.fad-ad[hidden] {
    display: none !important;
}

.fad-ad-label {
    display: block;
    margin-bottom: 4px;
    color: #928b82;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fad-ad-leaderboard {
    width: min(100% - 24px, 1100px);
    min-height: 90px;
    margin: 12px auto;
    padding: 8px;
}

.fad-ad-in-content {
    width: min(100% - 24px, 720px);
    min-height: 120px;
    margin: 26px auto;
    padding: 10px;
}

.fad-ad-sidebar {
    position: fixed;
    z-index: 20;
    top: 160px;
    right: 12px;
    display: none;
    width: 300px;
    min-height: 250px;
    padding: 8px;
    border: 1px solid #eee9e2;
    border-radius: 10px;
    background: #fff;
}

.fad-ad-mobile-sticky {
    display: none;
}

.fad-consent {
    position: fixed;
    z-index: 1055;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(
        calc(100% - 32px),
        760px
    );
    margin: auto;
    gap: 18px;
    padding: 16px;
    border: 1px solid #ddd7ce;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(
        22,
        30,
        47,
        0.18
    );
}

.fad-consent[hidden] {
    display: none !important;
}

.fad-consent-copy {
    min-width: 0;
}

.fad-consent-copy strong {
    display: block;
    color: #192846;
    font-size: 13px;
}

.fad-consent-copy p {
    margin: 4px 0 0;
    color: #6f6860;
    font-size: 11px;
    line-height: 1.55;
}

.fad-consent-copy a {
    color: #192846;
    font-weight: 700;
    text-decoration: underline;
}

.fad-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 7px;
}

.fad-consent-actions button {
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.fad-consent-decline {
    border: 1px solid #d7d1c9;
    background: #fff;
    color: #192846;
}

.fad-consent-accept {
    border: 1px solid #192846;
    background: #192846;
    color: #fff;
}

@media (min-width: 1600px) {
    .fad-ad-sidebar:not([hidden]) {
        display: block;
    }
}

@media (max-width: 767px) {
    body.fad-ads-active {
        padding-bottom:
            calc(
                62px
                + env(safe-area-inset-bottom)
            );
    }

    .fad-ad-leaderboard,
    .fad-ad-sidebar {
        display: none !important;
    }

    .fad-ad-in-content {
        min-height: 100px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .fad-ad-mobile-sticky:not([hidden]) {
        position: fixed;
        z-index: 1030;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        min-height: 50px;
        padding:
            3px
            max(
                8px,
                env(safe-area-inset-right)
            )
            calc(
                3px
                + env(safe-area-inset-bottom)
            )
            max(
                8px,
                env(safe-area-inset-left)
            );
        border-top: 1px solid #e3ded7;
        background: #fff;
        box-shadow: 0 -5px 20px rgba(
            20,
            28,
            42,
            0.08
        );
    }

    .fad-consent {
        align-items: stretch;
        flex-direction: column;
    }

    .fad-consent-actions {
        width: 100%;
    }

    .fad-consent-actions button {
        flex: 1;
    }
}
