/**
 * WP Process Steps for Elementor - Frontend Styles
 * Version: 1.0.0
 */

/* ===========================
   VERTICAL LAYOUT (default)
   =========================== */
.wps-process-steps.wps-layout-vertical {
    display: flex;
    flex-direction: column;
}

.wps-layout-vertical .wps-process-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.wps-layout-vertical .wps-item-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    /* stretch so the connecting line fills the full item height including the spacing padding below */
    align-self: stretch;
}

.wps-layout-vertical .wps-item-holder {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background-color: #f0ecf8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.wps-layout-vertical .wps-item-line {
    flex: 1;
    border-left: 2px dotted #cccccc;
    margin: 4px 0 0 0;
}

.wps-layout-vertical .wps-item-content {
    flex: 1;
    padding-top: 12px;
    /* spacing between items lives here so the icon-wrap line stretches through it */
    padding-bottom: 30px;
}

.wps-layout-vertical .wps-process-item:last-child .wps-item-content {
    padding-bottom: 0;
}

/* ===========================
   HORIZONTAL LAYOUT
   =========================== */
.wps-process-steps.wps-layout-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.wps-layout-horizontal .wps-process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    flex: 0 0 calc((100% - (var(--wps-columns, 1) - 1) * var(--wps-gap, 0px)) / var(--wps-columns, 1));
    max-width: calc((100% - (var(--wps-columns, 1) - 1) * var(--wps-gap, 0px)) / var(--wps-columns, 1));
}

.wps-layout-horizontal .wps-item-icon-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.wps-layout-horizontal .wps-item-holder {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background-color: #f0ecf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wps-layout-horizontal .wps-item-line {
    flex: 1;
    height: 0;
    border-top: 2px dotted #cccccc;
    margin: 0 4px;
}

.wps-layout-horizontal .wps-item-content {
    text-align: center;
    padding-top: 12px;
    width: 100%;
}

/* ===========================
   SHARED STYLES
   =========================== */
.wps-item-holder i,
.wps-item-holder svg {
    color: #5b3f8e;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wps-item-title {
    margin: 0 0 0 0;
    font-weight: 700;
    color: #2d2d2d;
}

.wps-item-text {
    margin: 8px 0 0 0;
    color: #555555;
    line-height: 1.6;
}

/* ===========================
   APPEAR ANIMATION
   =========================== */
.wps-animate .wps-process-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.wps-animate .wps-process-item.wps-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   DEVELOPER TOOLS
   =========================== */
.wps-shortcode-snippet {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    margin-top: 16px;
    border-radius: 4px;
    display: inline-block;
}

.wps-shortcode-snippet code {
    font-family: monospace;
    font-size: 13px;
    color: #333;
}
