.wc-cdr-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.wc-cdr-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f6ff;
    border: 1px solid #cfe1ff;
    font-size: 12px;
    color: #0a3d62;
    cursor: default;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wc-cdr-badge.wc-cdr-badge--processed {
    cursor: help;
}

.wc-cdr-badge:focus,
.wc-cdr-badge:hover {
    outline: none;
    background: #e4f0ff;
    border-color: #a9c9ff;
}

.wc-cdr-badge:focus-visible {
    box-shadow: 0 0 0 2px rgba(17, 76, 140, 0.35);
}

.wc-cdr-badge__label {
    line-height: 1.3;
}

.wc-cdr-badge__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: #0a3d62;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    min-width: 160px;
    max-width: 260px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(10, 61, 98, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.wc-cdr-badge__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0a3d62 transparent transparent transparent;
}

.wc-cdr-badge.is-tooltip-visible .wc-cdr-badge__tooltip {
    opacity: 1;
    visibility: visible;
}

.wc-cdr-badge__tooltip p {
    margin: 0 0 0.5em;
}

.wc-cdr-badge__tooltip p:last-child {
    margin-bottom: 0;
}
