
/* Icon Box RTL */

.rtl .iconbox_icon {
    float: right;
    margin: 2px 0 0 10px;
}

.rtl .iconbox_left .iconbox_icon {
    left: auto;
    right: -5px;
}

/* Boxed "icon on top": absolute icon is mirrored with right:50% */
.rtl .iconbox_top .iconbox_icon {
    float: none;
    left: auto;
    right: 50%;
    margin: 0 -26px 0 0;
    text-align: center;
}

/*
 * Keep icon, title and text stacked on one axis.
 * Generic RTL rules force .entry-content-header { text-align: right },
 * which otherwise pulls the title (and the glyph inside the circle) off-center.
 */
#top .rtl .iconbox_top,
#top .rtl .iconbox_top .entry-content-header,
#top .rtl .iconbox_top .iconbox_content_title,
#top .rtl .iconbox_top .iconbox_content_container {
    text-align: center;
}

/*
 * av-no-box uses in-flow + margin:auto centering (position:relative).
 * The boxed-style right:50% offset must NOT apply here: in RTL, `right`
 * wins over `left` on a relatively positioned box and shifts the circle.
 */
#top .rtl .iconbox.av-no-box .iconbox_icon {
    float: none;
    position: relative;
    left: auto;
    right: auto;
    margin: 0 auto 20px auto;
    text-align: center;
}

#top .rtl .iconbox_left_content .iconbox_icon,
#top .rtl .iconbox_right_content .iconbox_icon {
    margin-right: 0;
    margin-left: 22px;
    text-align: center;
}

#top .rtl .iconbox_right_content {
    text-align: left;
}

#top .rtl .iconbox_right_content .iconbox_icon {
    float: left;
    margin-left: 0;
    margin-right: 22px;
}
