/* AudioGuide Advertising footer. All selectors are isolated with ag-ad- prefix. */

.ag-ad-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin: 10px auto 0;
    padding: 2px 10px 0;
    box-sizing: border-box;
    text-align: center;
}

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

.ag-ad-presented {
    display: inline-block;
    color: inherit;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.ag-ad-sponsor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    max-height: 44px;
    text-decoration: none;
}

.ag-ad-sponsor-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 40px;
    object-fit: contain;
}

/* Adjust spacing between sponsor and Powered by */
.ag-ad-footer + #ag-credit {
    margin-top: 4px !important;
}

.ag-ad-footer + #ag-credit br:first-child {
    display: none !important;
}
