/* {C} Voxel Custom Fields - smart match breakdown / details
   @post(c_smart_match.breakdown) and @post(c_smart_match.details) */

.c-smart-match.c-smart-match {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #141D26;
}

/* One field: name and status on top, the post's answers underneath. */
.c-smart-match .c-smart-match__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label status"
        "values values";
    align-items: start;
    gap: 6px 10px;
    padding: 9px 12px;
    background: #FBF9F6;
    border: 1px solid #DCDCDA;
    border-left: 3px solid #DCDCDA;
    border-radius: 10px;
}

.c-smart-match .c-smart-match__label {
    grid-area: label;
    font-weight: 600;
    color: #163E32;
}

/* The plain-text separators are only for pages without this CSS. */
.c-smart-match .c-smart-match__label-sep,
.c-smart-match .c-smart-match__value-sep,
.c-smart-match .c-smart-match__status-sep {
    display: none;
}

.c-smart-match .c-smart-match__values {
    grid-area: values;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.c-smart-match .c-smart-match__value {
    max-width: 100%;
    padding: 2px 9px;
    background: #FFFFFF;
    border: 1px solid #DCDCDA;
    border-radius: 12px;
    font-size: 12px;
    color: #141D26;
    overflow-wrap: anywhere;
}

/* An answer the visitor shares. */
.c-smart-match .c-smart-match__value--match {
    background: #DFF2EC;
    border-color: #90A841;
    color: #163E32;
    font-weight: 600;
}

.c-smart-match .c-smart-match__value--match::before {
    content: "\2713\00a0";
}

.c-smart-match .c-smart-match__status {
    grid-area: status;
    padding: 2px 9px;
    border-radius: 999px;
    background: #F5F5F5;
    color: #5F6368;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Matched */
.c-smart-match .c-smart-match__row--matched {
    border-left-color: #90A841;
}
.c-smart-match .c-smart-match__row--matched .c-smart-match__status {
    background: #DFF2EC;
    color: #163E32;
}

/* Unmatched: the post answered differently. */
.c-smart-match .c-smart-match__row--unmatched {
    border-left-color: #EE8422;
}
.c-smart-match .c-smart-match__row--unmatched .c-smart-match__status {
    background: #FDEEDC;
    color: #A34E02;
}

/* Empty: the post left this field blank. */
.c-smart-match .c-smart-match__row--empty {
    background: #FFFFFF;
}
.c-smart-match .c-smart-match__row--empty .c-smart-match__label {
    color: #6B7280;
    font-weight: 500;
}

/* Not answered: the visitor skipped this one, so it does not count. */
.c-smart-match .c-smart-match__row--unanswered {
    background: #FFFFFF;
    border-left-style: dashed;
}
.c-smart-match .c-smart-match__row--unanswered .c-smart-match__label {
    color: #6B7280;
    font-weight: 500;
}
.c-smart-match .c-smart-match__row--unanswered .c-smart-match__value {
    color: #6B7280;
    background: #F5F5F5;
    border-color: #F5F5F5;
}
.c-smart-match .c-smart-match__row--unanswered .c-smart-match__status {
    background: transparent;
    border: 1px dashed #B3B3B3;
}
