/* Wrapper uses theme fonts/colors; only layout & light borders are custom */
.node-abt-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

/* Let each panel be responsive, no heavy styling */
.node-abt-main-panel,
.node-abt-results-panel {
    flex: 1 1 320px;
}

/* Main inputs panel */
.node-abt-main-panel {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    background-color: #ffffff;
}

/* If the theme uses a colored page background, keep things subtle */
body.has-background .node-abt-main-panel {
    background-color: inherit;
}

/* Header row above the two variants */
.node-abt-header-row,
.node-abt-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
}

.node-abt-header-row {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.node-abt-header-label {
    line-height: 1.4;
}

/* Variant rows */
.node-abt-row {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.node-abt-col-rate {
    text-align: right;
}

/* Inputs – inherit theme font & text color */
.node-abt-input {
    width: 100%;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    font: inherit;
    color: inherit;
    outline: none;
}

.node-abt-input:focus {
    border-bottom-color: var(--wp--preset--color--primary, currentColor);
}

/* Displayed conversion rates */
.node-abt-rate {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Results panel – mostly theme defaults, light structure only */
.node-abt-results-panel {
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background-color: #ffffff;
}

body.has-background .node-abt-results-panel {
    background-color: inherit;
}

.node-abt-results-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Paragraphs inherit body typography */
.node-abt-results-line {
    margin: 0 0 0.5rem;
}

/* Highlight the “Test B” label & key numbers using theme primary if available */
.node-abt-winner-label,
.node-abt-uplift-value,
.node-abt-confidence-value {
    font-weight: 600;
    color: var(--wp--preset--color--primary, inherit);
}

/* Significance messages */
.node-abt-significance {
    margin-top: 0.75rem;
}

.node-abt-significance-yes {
    display: none;
    color: var(--wp--preset--color--primary, inherit);
    font-weight: 600;
}

.node-abt-significance-not {
    color: inherit;
    opacity: 0.8;
}

/* Footnote */
.node-abt-footnote {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive: stack panels on small screens */
@media (max-width: 768px) {
    .node-abt-wrapper {
        flex-direction: column;
    }

    .node-abt-header-row,
    .node-abt-row {
        grid-template-columns: 1fr 1fr auto;
    }
}
