/* SVG Pro for Elementor — Frontend Styles v7.3 */

/* ── Widget outer wrapper — always row, SVG left, text right ── */
.esp-widget-wrap,
.elementor-widget-esp_svg .esp-widget-wrap,
.elementor .esp-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0;
    width: auto !important;
}

/* ── SVG outer alignment container ── */
.esp-svg-outer,
.elementor-widget-esp_svg .esp-svg-outer,
.elementor .esp-svg-outer {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: fit-content !important;
    align-self: center;
    justify-content: flex-start;
}

/* ── SVG wrap ── */
.esp-svg-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
    box-sizing: border-box;
    transition: all 300ms ease;
    width: auto;
    flex-shrink: 0;
}

.esp-svg-wrap svg {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.esp-svg-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.esp-svg-wrap svg * {
    transition: fill 300ms ease, stroke 300ms ease;
}

/* ── Fallback image wrap ── */
.esp-fallback-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Link wrapper ── */
.esp-svg-link {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

/* ── Text block ── */
.esp-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.esp-title,
.esp-subtitle {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ── Color mode: currentColor passthrough ── */
.esp-svg-wrap.esp-color-current svg,
.esp-svg-wrap.esp-color-current svg * {
    fill: currentColor;
}

/* ── Ensure SVG fills its container ── */
.esp-svg-wrap > svg {
    width: 100%;
    height: 100%;
}

/* ── Placeholder (editor only) ── */
.esp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    background: #f0f4ff;
    border: 2px dashed #6366f1;
    border-radius: 8px;
    color: #6366f1;
    font-size: 14px;
    text-align: center;
    padding: 16px;
    font-family: sans-serif;
}
