/**
 * AIEO Product Needs — front-end styling.
 * Mirror of PPE's product-needs block so the visual stays identical
 * when the admin flips AIEO's frontend gate on.
 *
 * CSS variables (--aieo-pn-*) are emitted per page load by the PHP
 * side from the saved display settings — see build_css_vars() in
 * class-aieo-dmm-product-needs.php.
 */

.aieo-product-needs {
    display: flex;
    flex-direction: column;
    align-items: var(--aieo-pn-align, flex-start);
    margin-top: var(--aieo-pn-mt, 20px);
    margin-bottom: var(--aieo-pn-mb, 20px);
    padding: 15px 20px;
    background-color: var(--aieo-pn-bg, #f8f9fa);
    border: var(--aieo-pn-border-w, 1px) solid var(--aieo-pn-border, #e9ecef);
    border-radius: var(--aieo-pn-border-r, 0);
}

.aieo-product-needs-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--aieo-pn-text, #333333);
}

.aieo-product-needs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.aieo-product-needs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--aieo-pn-text, #333333);
    cursor: default;
}
.aieo-product-needs-item[title] { cursor: help; }

.aieo-product-needs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--aieo-pn-icon, #27ae60);
}
.aieo-product-needs-icon svg { width: 16px; height: 16px; }

.aieo-product-needs-text { color: var(--aieo-pn-text, #333333); }
.aieo-product-needs-link {
    color: var(--aieo-pn-link, #0073aa);
    text-decoration: none;
    transition: color 0.2s ease;
}
.aieo-product-needs-link:hover {
    color: var(--aieo-pn-text, #333333);
    text-decoration: underline;
}

/* Follow alignment for inner list items too. Flex box's align-items
 * was set on the outer block; the inner list needs its own rule so
 * list items center / right-align when the setting asks for it. */
.aieo-product-needs[style*="--aieo-pn-align: center"] .aieo-product-needs-list,
.aieo-product-needs[style*="--aieo-pn-align:center"] .aieo-product-needs-list {
    align-items: center;
}
.aieo-product-needs[style*="--aieo-pn-align: flex-end"] .aieo-product-needs-list,
.aieo-product-needs[style*="--aieo-pn-align:flex-end"] .aieo-product-needs-list {
    align-items: flex-end;
}

/* Tab variant — drop the box chrome since the WC tab panel frames us. */
.aieo-product-needs--tab {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}
.aieo-product-needs--tab .aieo-product-needs-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 15px;
}
.aieo-product-needs--tab .aieo-product-needs-item { gap: 6px; }
