.agd-smart-ad {
    width: 100%;
    margin: 32px 0;
    box-sizing: border-box;
    clear: both;
}

.agd-ad-label {
    margin: 0 0 7px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.agd-smart-ad-card-inner {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 28px 34px;
    background: var(--agd-ad-bg, #fffdf3);
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: var(--agd-ad-text, #14213d);
}

.agd-smart-ad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agd-ad-accent, #f4c400);
}

.agd-smart-ad-icon svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.agd-smart-ad-copy {
    min-width: 0;
}

.agd-smart-ad-title {
    display: block;
    margin: 0 0 9px;
    color: var(--agd-ad-text, #14213d);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.agd-smart-ad-description {
    margin: 0;
    color: var(--agd-ad-text, #14213d);
    font-size: 17px;
    line-height: 1.5;
}

.agd-smart-ad-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.agd-smart-ad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 19px;
    background: var(--agd-ad-accent, #f4c400);
    color: #111827 !important;
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.agd-smart-ad-button:hover {
    color: #111827 !important;
    filter: brightness(.94);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0,0,0,.12);
}

.agd-smart-ad-button:focus-visible {
    outline: 3px solid rgba(20,33,61,.35);
    outline-offset: 3px;
}

.agd-smart-ad-banner {
    text-align: center;
}

.agd-smart-ad-banner-link,
.agd-smart-ad-banner-image {
    display: block;
    width: 100%;
}

.agd-smart-ad-banner-image {
    height: auto;
    margin: 0 auto;
}

.agd-smart-ad-html > :last-child {
    margin-bottom: 0;
}

@media (max-width: 780px) {
    .agd-smart-ad-card-inner {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 24px;
    }

    .agd-smart-ad-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 70px;
    }
}

@media (max-width: 520px) {
    .agd-smart-ad-card-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 22px;
    }

    .agd-smart-ad-action {
        width: 100%;
        padding-left: 0;
    }

    .agd-smart-ad-button {
        width: 100%;
        min-height: 48px;
    }

    .agd-smart-ad-title {
        font-size: 19px;
    }

    .agd-smart-ad-description {
        font-size: 16px;
    }
}
