/* =====================================================
   MRK Dynamic CTA – Frontend Styles
   Plugin by Muhammad Rameez Khalid
   ===================================================== */

/* Base defaults – overridden at runtime via inline styles from plugin settings */

.mrk-dynamic-cta {
    background-color: #2A261F;
    padding: 20px;
    box-sizing: border-box;
}

.mrk-dynamic-cta img.cta-logo {
    display: block;
    max-width: 120px;
    margin-bottom: 12px;
}

.mrk-dynamic-cta .cta-main-image {
    margin-bottom: 12px;
}

.mrk-dynamic-cta .cta-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mrk-dynamic-cta h3 {
    color: #ffffff;
    margin: 10px 0;
    font-weight: 700;
}

.mrk-dynamic-cta p {
    color: #ffffff;
    margin: 10px 0;
    font-weight: 700;
}

/* ── Button ── */

.cta-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mrk-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #ffffff;
    background-color: #D01C00;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    margin-top: 10px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.mrk-cta-btn span {
    margin: -2px 0 0 5px;
    font-size: 20px;
}

/* Default hover – overridden by JS using the data-btn-hover attribute */
.mrk-cta-btn:hover {
    color: #ffffff;
    background-color: #0e926b;
    text-decoration: none;
}

/* ── Loader ── */

#mrk-dynamic-cta > img {
    display: block;
    margin: 20px auto;
}
