/*
 * The loyalty progress widget (radial segments and the coefficient in the middle).
 *
 * Moved here 2026-10-22 verbatim from snippet 218 "Loyalty progress bar css"; loaded on every page, as it was.
 */

/* === WIDGET SIZE === */
.loyalty-widget {
    width: 40px;
}

/* === RADIAL === */
.radial-progress {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}

.radial-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(10deg);
}

/* Сегменты */
.segment {
    fill: none;
    stroke: #2b2b2b;
    stroke-width: 8;
    stroke-linecap: round; /* закругление */
    transition: 0.4s ease;
}

.segment.filled {
    stroke: var(--active-color);
}

/* Центральный коэффициент */
.coef-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: var(--active-color);
}

/* ==== POPUP ==== */

.loyalty-popup {
    display: none;
    background: #2b2b2b;
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    margin-top: 10px;
}

.loyalty-popup.open {
    display: block;
   min-width: 300px;
}

.loyalty-widget  .popup-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.popup-title.max {
    color: var(--active-color);
}

.popup-sub {
    font-size: 13px;
    margin-bottom: 14px;
    opacity: 0.8;
}

/* ==== LINEAR PROGRESS ==== */

.linear-progress {
    display: flex;
    justify-content: space-between;
}

.step {
    width: 23%;
    text-align: center;
}

.coef {
    margin-bottom: 6px;
    color: #777;
    font-weight: bold;
}

.coef.active {
    color: var(--active-color);
}

.bar {
    height: 8px;
    background: #444;
    border-radius: 6px;
    transition: 0.3s;
}

.bar.filled {
    background: var(--active-color);
}
