/* Public Banner Styles */
.abm-banner-group {
    margin: 10px 0;
    max-width: var(--abm-group-width, 100%);
    min-height: var(--abm-group-height, auto);
}

.abm-banner {
    display: inline-block;
    margin: 5px;
}

.abm-banner-link {
    display: block;
    text-decoration: none;
    border: none;
    outline: none;
}

.abm-banner-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: none;
    outline: none;
}

.abm-banner-item {
    display: inline-block;
    vertical-align: top;
}

/* Responsive Banners */
@media (max-width: 768px) {
    .abm-banner-group {
        text-align: center;
    }
    
    .abm-banner-item {
        display: block;
        margin: 10px auto;
    }
}

/* Animation for banner rotation */
.abm-banner-group {
    position: relative;
}

.abm-auto-location {
    clear: both;
    max-width: 100%;
    margin: 18px 0;
}

.abm-auto-location-body-open {
    margin-top: 0;
}

.abm-auto-location-footer {
    margin-bottom: 0;
}

.abm-banner-item {
    transition: opacity 0.3s ease;
}

/* Square sidebar widget */
.abm-square-banner {
    width: min(100%, var(--abm-square-size, 300px));
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.abm-square-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border: 0;
}

.abm-square-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Error States */
.abm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Loading States */
.abm-loading {
    opacity: 0.7;
    pointer-events: none;
}
