/* 
 * Style for RM Ads Banners
 * Author: Mauro Alejandro Hernández Santiago
 */

.rm-ads-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.rm-ads-banner-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    outline: none;
}

.rm-ads-banner-img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Layout Modes */
.rm-ads-placeholder {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.rm-ads-placeholder.rm-ads-loaded {
    opacity: 1;
}

.rm-ads-layout-horizontal {
    max-width: 100%;
    width: 100%;
}

.rm-ads-layout-vertical {
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Admin Styles */
.rm-ads-meta-preview {
    margin-top: 15px;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px;
    background: #fff;
    display: none;
}

.rm-ads-meta-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rm-ads-meta-row {
    margin-bottom: 15px;
}

.rm-ads-meta-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.rm-ads-meta-row input[type="text"] {
    width: 100%;
    max-width: 500px;
}

/* Taxonomy field styles */
.form-field.rm-ads-tax-field {
    margin-bottom: 15px;
}
.form-field.rm-ads-tax-field label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}
.form-field.rm-ads-tax-field select {
    max-width: 300px;
    width: 100%;
}
