/* ZRS Box v3.4
 * CSS-first frontend. No custom frontend JavaScript.
 * Outside spacing remains in Elementor > Advanced > Margin.
 */
.elementor-widget-zrs-box {
    align-self: center;
}

.zr_box {
    position: relative;
    display: flex;
    width: 100%;
    height: var(--zr-box-height, auto);
    box-sizing: border-box;
    align-items: center;
}

.zr_box_overlay_link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: inherit;
}

.zr_box_media {
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Image media keeps the familiar 70px default and clips to its radius. */
.zr_box_media_image {
    width: 70px;
    overflow: hidden;
}

/* Icon media sizes from the icon itself, so large icons and media padding/borders
 * never get trapped inside a fixed 70px parent. */
.zr_box_media_icon {
    display: inline-flex;
    width: auto;
    height: auto;
    overflow: visible;
}

.zr_box_media_inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zr_box_media_image .zr_box_media_inner {
    width: 100%;
    height: 100%;
}

.zr_box_media_icon .zr_box_media_inner {
    width: auto;
    height: auto;
}

.zr_box_media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.zr_box_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 70px;
    line-height: 1;
}

/* Elementor icons follow the selected icon color through currentColor. */
.zr_box_icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    color: currentColor;
}

.zr_box_content {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: flex-start;
    text-align: center;
}

.zr_box_title,
.zr_box_subtitle,
.zr_box_description {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.elementor-widget-zrs-box .zr_box_title {
    padding: 0;
    font-size: 20px;
    font-weight: 600;
}

.zr_box_subtitle {
    font-size: 18px;
}

.zr_box_description {
    margin-top: 0;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: var(--e-global-typography-text-font-size, inherit);
    font-weight: var(--e-global-typography-text-font-weight, inherit);
    line-height: var(--e-global-typography-text-line-height, inherit);
    letter-spacing: var(--e-global-typography-text-letter-spacing, inherit);
}

/* The final rendered content item never gets trailing space. */
.zr_box_content > .zr_box_title:last-child,
.zr_box_content > .zr_box_subtitle:last-child,
.zr_box_content > .zr_box_description:last-child {
    margin-bottom: 0 !important;
}

.zr_box_button_wrap {
    position: relative;
    z-index: 2;
}

.zr_box_button_wrap.zr_box_button_bottom {
    margin-top: auto;
}

.zr_box_button_wrap.zr_box_button_normal {
    margin-top: 0;
}

/* Uses Elementor's .elementor-button class. No visual defaults are imposed here,
 * so Site Settings > Buttons remains the default source of button styling. */
.zr_box_button {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.zr_box_button_has_icon .elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zr_box_button_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: inherit;
    line-height: 1;
}

.zr_box_button_icon i,
.zr_box_button_icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Keep real interactive children above the full-card overlay link. */
.zr_box a:not(.zr_box_overlay_link),
.zr_box button,
.zr_box input,
.zr_box select,
.zr_box textarea {
    position: relative;
    z-index: 2;
}
