/**
 * Distribution Model Widget Styles
 * BEM: .eb-distribution-model, .eb-dist-column, .eb-dist-step, .eb-dist-arrow
 */

.eb-distribution-model {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Single column when one side is empty */
.eb-distribution-model--no-d2d,
.eb-distribution-model--no-d2c {
    grid-template-columns: 1fr;
}

/* Column */
.eb-dist-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    border-radius: 12px;
}

.eb-dist-column--d2d {
    background-color: #f0f4ff;
    color: #1a1a2e;
}

.eb-dist-column--d2c {
    background-color: #fff8f0;
    color: #1a1a2e;
}

/* Column Title */
.eb-dist-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.3;
}

/* Divider between columns */
.eb-dist-divider {
    width: 2px;
    background-color: #e0e0e0;
    margin: 32px 16px;
    align-self: stretch;
    border-radius: 1px;
}

/* Step card */
.eb-dist-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 16px 20px;
    width: 100%;
    max-width: 280px;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.eb-dist-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Step icon */
.eb-dist-step__icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-dist-step__icon i,
.eb-dist-step__icon svg {
    width: 24px;
    height: 24px;
}

/* Step content */
.eb-dist-step__content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.eb-dist-step__title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.eb-dist-step__desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin: 4px 0 0;
    opacity: 0.8;
}

/* Arrow connector between steps */
.eb-dist-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    color: currentColor;
    opacity: 0.6;
}

.eb-dist-arrow svg {
    display: block;
}

/* =============================================
   Mobile: ≤768px
   Stack D2D above D2C with 32px divider
   ============================================= */
@media (max-width: 768px) {
    .eb-distribution-model {
        grid-template-columns: 1fr;
    }

    .eb-dist-divider {
        width: 100%;
        height: 2px;
        margin: 32px 0;
    }

    .eb-dist-column {
        padding: 24px 16px;
    }

    .eb-dist-step {
        max-width: 100%;
    }
}
