
/* SENSOY24 Update 20: Banner Sichtbarkeit */

.s24-ad-slot {
    display: block !important;
    width: 100%;
    padding: 10px 0;
    background: #fff;
    position: relative;
    z-index: 5;
}

.s24-ad-slot-top {
    border-bottom: 1px solid #e4e7eb;
}

.s24-ad-slot-bottom_1,
.s24-ad-slot-bottom_2 {
    border-top: 1px solid #e4e7eb;
}

.s24-ad-banner {
    min-height: 92px;
    padding: 16px 20px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #d9dde2;
    border-radius: 14px;
    background: #f7f8fa;
    visibility: visible !important;
    opacity: 1 !important;
}

.s24-ad-banner.with-image {
    grid-template-columns: minmax(160px, 260px) minmax(0, 1fr) auto;
}

.s24-ad-image {
    height: 82px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.s24-ad-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.s24-ad-content {
    display: grid;
    gap: 5px;
}

.s24-ad-content strong {
    font-size: 19px;
    color: #111;
}

.s24-ad-content span {
    color: #5f6975;
    line-height: 1.45;
}

.s24-ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.banner-state {
    display: inline-flex;
    margin-top: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.banner-state.is-live {
    background: #edf7ef;
    color: #286236;
}

.banner-state.is-off {
    background: #f1f3f5;
    color: #68717c;
}

.banner-live-preview {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4e7eb;
}

.banner-live-preview > small {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #6b7480;
}

.banner-test-grid {
    display: grid;
    gap: 22px;
}

.banner-test-render .s24-ad-slot {
    padding-left: 0;
    padding-right: 0;
}

.banner-test-render .s24-ad-slot > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

@media (max-width: 760px) {
    .s24-ad-banner,
    .s24-ad-banner.with-image {
        grid-template-columns: 1fr;
    }

    .s24-ad-image {
        height: 130px;
    }

    .s24-ad-button {
        width: 100%;
    }
}
