/* WC Volume Discount v6.0 - #0067ff */
/* Two states: wcvd-recommended (admin-set hint) and wcvd-active (user clicked) */

.wcvd-widget {
    margin: 20px 0 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcvd-title-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.wcvd-title-line::before,
.wcvd-title-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}
.wcvd-title-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    white-space: nowrap;
    text-transform: uppercase;
}

.wcvd-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Base tier — neutral */
.wcvd-tier {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
}
.wcvd-tier:hover {
    border-color: #bbb;
}

/* RECOMMENDED — admin-set highlight. Visual hint, NOT selected.
   Shows blue border as "hey, this is popular" */
.wcvd-tier.wcvd-recommended {
    border-color: #0067ff;
    background: rgba(0, 103, 255, 0.02);
}

/* ACTIVE — user clicked this tier. Stronger visual. */
.wcvd-tier.wcvd-active {
    border-color: #0067ff;
    background: rgba(0, 103, 255, 0.05);
    box-shadow: 0 0 0 1px #0067ff;
}

/* When a tier is both recommended AND active */
.wcvd-tier.wcvd-recommended.wcvd-active {
    border-color: #0067ff;
    background: rgba(0, 103, 255, 0.05);
    box-shadow: 0 0 0 1px #0067ff;
}

/* Radio */
.wcvd-radio {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
}
.wcvd-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}
.wcvd-dot {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}
.wcvd-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0067ff;
    transition: transform 0.2s ease;
}

/* Radio dot only fills when ACTIVE (user clicked) */
.wcvd-tier.wcvd-active .wcvd-dot {
    border-color: #0067ff;
}
.wcvd-tier.wcvd-active .wcvd-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Info */
.wcvd-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.wcvd-qty-text {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Discount badge */
.wcvd-disc-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #0067ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Prices */
.wcvd-prices {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* Label badge (CEL MAI VANDUT etc) — always visible, not affected by selection */
.wcvd-label-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #0067ff;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-bottom: 2px;
}

.wcvd-total {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.wcvd-orig {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 480px) {
    .wcvd-tier { padding: 12px 14px; gap: 10px; }
    .wcvd-qty-text { font-size: 12px; }
    .wcvd-total { font-size: 14px; }
    .wcvd-disc-badge { font-size: 10px; padding: 2px 7px; }
    .wcvd-title-text { font-size: 11px; }
}
