.mx-web-ad {
    position: relative;
    width: 100%;
    max-width: 1060px;
    overflow: hidden;
    margin: 2.25rem auto;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 14px;
    background: #080808;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.mx-web-ad.is-test {
    border: 2px dashed #ffca2c;
    box-shadow: 0 0 0 4px rgba(255, 202, 44, .16), 0 12px 30px rgba(0, 0, 0, .14);
}

.mx-web-ad-label {
    position: absolute;
    z-index: 2;
    top: .65rem;
    left: .65rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .76);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.mx-web-ad.is-test .mx-web-ad-label {
    color: #171717;
    background: #ffca2c;
}

.mx-web-ad > a,
.mx-web-ad-creative {
    display: block;
}

.mx-web-ad > a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.mx-web-ad > a img,
.mx-web-ad-creative img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    background: #080808;
}

.mx-web-ad--web_sidebar {
    margin: 0 0 1.5rem;
    border-radius: 12px;
}

.mx-web-ad--web_sidebar > a img,
.mx-web-ad--web_sidebar .mx-web-ad-creative img {
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.mx-ad-test-bar {
    position: fixed;
    z-index: 1090;
    right: 18px;
    bottom: 18px;
    display: flex;
    max-width: min(680px, calc(100vw - 36px));
    align-items: center;
    gap: 1rem;
    padding: .8rem .9rem .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    color: #fff;
    background: rgba(8, 8, 8, .96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    font-family: Arial, Helvetica, sans-serif;
    backdrop-filter: blur(12px);
}

.mx-ad-test-bar > div {
    display: grid;
    min-width: 0;
}

.mx-ad-test-bar strong {
    color: #ffca2c;
    font-size: .78rem;
    text-transform: uppercase;
}

.mx-ad-test-bar span {
    overflow: hidden;
    color: rgba(255, 255, 255, .76);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mx-ad-test-bar nav {
    display: flex;
    gap: .35rem;
}

.mx-ad-test-bar a,
.mx-ad-test-bar button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.mx-ad-test-bar form {
    margin: 0;
}

.mx-ad-test-bar button {
    border-color: #f20d16;
    background: #f20d16;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .mx-web-ad {
        margin: 1.5rem auto;
        border-radius: 10px;
    }

    .mx-web-ad-label {
        top: .45rem;
        left: .45rem;
        font-size: .56rem;
    }

    .mx-ad-test-bar {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
        flex-wrap: wrap;
        gap: .55rem .75rem;
    }

    .mx-ad-test-bar > div {
        flex: 1 1 calc(100% - 145px);
    }

    .mx-ad-test-bar nav {
        order: 3;
        width: 100%;
    }

    .mx-ad-test-bar nav a {
        flex: 1;
    }
}
