/* Condition badge — colors come from the theme DS condition tokens
   (--cond-*-bg/fg, defined in the Elvaro child theme tokens.css).
   Distinct hues for human scannability.
   Hex fallbacks mirror the token values for token-less contexts. */
.elvaro-condition-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    background: var(--surface-1, #13171A);
    color: var(--fg-2, rgba(255, 255, 255, 0.72));
}

/* Vivid azure — new / новый */
.elvaro-condition-badge[data-condition="новый"],
.elvaro-condition-badge[data-condition="new"] {
    background: var(--cond-new-bg, #1B2F44);
    color: var(--cond-new-fg, #4DA3FF);
}

/* Brand-family amber — tested / checked / проверенный */
.elvaro-condition-badge[data-condition="проверенный"],
.elvaro-condition-badge[data-condition="checked"],
.elvaro-condition-badge[data-condition="tested"] {
    background: var(--cond-tested-bg, #3E361C);
    color: var(--cond-tested-fg, #FFC838);
}

/* Emerald — refurbished / восстановленный */
.elvaro-condition-badge[data-condition="восстановленный"],
.elvaro-condition-badge[data-condition="refurbished"] {
    background: var(--cond-refurb-bg, #163629);
    color: var(--cond-refurb-fg, #34C77B);
}

/* Violet — excellent condition / отличное */
.elvaro-condition-badge[data-condition="отличное"],
.elvaro-condition-badge[data-condition="excellent"],
.elvaro-condition-badge[data-condition="excellent condition"] {
    background: var(--cond-excellent-bg, #2A2744);
    color: var(--cond-excellent-fg, #9B7BFF);
}

/* Warm orange — good condition / хорошее */
.elvaro-condition-badge[data-condition="хорошее"],
.elvaro-condition-badge[data-condition="good"],
.elvaro-condition-badge[data-condition="good condition"] {
    background: var(--cond-good-bg, #3E2A1D);
    color: var(--cond-good-fg, #FF8A3D);
}

/* Signal red — for parts / не работает / needs service / требует ТО */
.elvaro-condition-badge[data-condition*="требует"],
.elvaro-condition-badge[data-condition="не работает"],
.elvaro-condition-badge[data-condition="needs service"],
.elvaro-condition-badge[data-condition="non-functional"],
.elvaro-condition-badge[data-condition="for parts"] {
    background: var(--cond-broken-bg, #3E2123);
    color: var(--cond-broken-fg, #FF5D5D);
}

/* Display text on single product page */
.elvaro-condition-text {
    font-size: 13px;
    color: var(--fg-3, #8B949E);
    margin: 0 0 8px;
    font-style: italic;
}

/* Warranty line derived from the product's condition (always shown on the single
   product page when the condition carries a warranty text). Green = protection;
   distinct from the muted, italic condition text above. */
.elvaro-condition-warranty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cond-refurb-fg, #34C77B);
    margin: 0 0 10px;
}
.elvaro-condition-warranty__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
