/**
 * Click2Volume Frontend v2.2
 * Visual alinhado à identidade 3D Lab (azul marinho, tipografia compacta)
 * Para customizar a cor da marca, sobrescreva --c2v-brand no seu CSS do tema.
 */

.c2v-volume-card {
    --c2v-brand: #1a2e4c;
    --c2v-brand-soft: rgba(26, 46, 76, 0.06);
    --c2v-brand-strong: rgba(26, 46, 76, 0.18);
    --c2v-brand-border: rgba(26, 46, 76, 0.15);
    --c2v-text-muted: #7b7b7b;
    margin-bottom: 20px;
    max-width: 460px;
}

/* ========== COLLAPSIBLE ========== */
.c2v-collapsible .c2v-toggle {
    width: 100%;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}
.c2v-collapsible .c2v-toggle:hover {
    background: var(--c2v-brand-soft);
}
.c2v-toggle-icon {
    font-size: 18px;
    font-weight: 600;
    color: var(--c2v-brand);
    line-height: 1;
    margin-left: 12px;
    flex-shrink: 0;
}
.c2v-collapsible.c2v-collapsed .c2v-collapsible-body {
    display: none;
}

/* ========== CARD HEADER ========== */
.c2v-card-header-compact {
    padding-top: 12px;
    padding-bottom: 12px;
}
.c2v-card-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c2v-brand);
}

/* ========== TABLE HEADERS ========== */
.c2v-discount-table {
    margin: 0;
}
.c2v-th-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c2v-text-muted) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--c2v-brand-border);
}

/* ========== TIER ROWS ========== */
.c2v-tier-row td {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    transition: background 0.2s ease;
}
.c2v-col-qty {
    color: #333;
    font-weight: 500;
}
.c2v-col-price {
    color: #333;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Linha ativa — destaque sutil */
.c2v-tier-row.c2v-tier-active td {
    background: var(--c2v-brand-strong);
    font-weight: 600;
}
.c2v-tier-row.c2v-tier-active .c2v-col-qty,
.c2v-tier-row.c2v-tier-active .c2v-col-price {
    color: var(--c2v-brand);
    font-weight: 700;
}

/* Última faixa (melhor desconto) */
.c2v-tier-row.c2v-tier-best .c2v-col-qty {
    font-weight: 600;
}

/* ========== BADGE DESCONTO ========== */
.c2v-badge-discount {
    display: inline-block;
    background: var(--c2v-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.3;
    white-space: nowrap;
}
.c2v-tier-row.c2v-tier-active .c2v-badge-discount {
    background: var(--c2v-brand);
    box-shadow: 0 0 0 2px rgba(26, 46, 76, 0.2);
}

/* ========== FEEDBACK BOX ========== */
.c2v-feedback-box {
    --c2v-brand: #1a2e4c;
    --c2v-brand-soft: rgba(26, 46, 76, 0.04);
    --c2v-brand-border: rgba(26, 46, 76, 0.15);
    --c2v-text-muted: #7b7b7b;
    margin: 12px 0;
    max-width: 460px;
}

.c2v-fb-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--c2v-brand-soft);
    border-left: 3px solid var(--c2v-brand);
    padding: 12px 14px;
    border-radius: 2px;
}

.c2v-fb-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c2v-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.c2v-fb-content {
    flex: 1;
    min-width: 0;
}

.c2v-fb-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--c2v-brand);
    line-height: 1.4;
}
.c2v-fb-title strong {
    font-weight: 700;
}

/* Preços "De / Por" */
.c2v-fb-prices {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.c2v-fb-price-old {
    font-size: 13px;
    color: var(--c2v-text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.c2v-fb-price-new {
    font-size: 18px;
    font-weight: 700;
    color: var(--c2v-brand);
    font-variant-numeric: tabular-nums;
}
.c2v-fb-price-label {
    font-size: 11px;
    color: var(--c2v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c2v-fb-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--c2v-text-muted);
}

/* Caixa de "nudge" (falta X unidades) */
.c2v-fb-nudge {
    background: #fafafa;
    border-left-color: var(--c2v-brand-border);
}
.c2v-fb-nudge .c2v-fb-icon {
    background: #fff;
    color: var(--c2v-brand);
    border: 1px solid var(--c2v-brand-border);
}
.c2v-fb-nudge .c2v-fb-title {
    color: #333;
    font-weight: 500;
}
.c2v-fb-nudge .c2v-fb-title strong {
    color: var(--c2v-brand);
    font-weight: 700;
}

/* Upsell abaixo do desconto ativo */
.c2v-fb-upsell {
    margin-top: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--c2v-text-muted);
    background: #fafafa;
    border-radius: 2px;
}
.c2v-fb-upsell strong {
    color: var(--c2v-brand);
    font-weight: 700;
}

/* Upsell box separada (entre botao de comprar e tabela) */
.c2v-upsell-box {
    --c2v-brand: #1a2e4c;
    --c2v-brand-soft: rgba(26, 46, 76, 0.04);
    --c2v-brand-border: rgba(26, 46, 76, 0.15);
    --c2v-text-muted: #7b7b7b;
    margin: 12px 0;
    max-width: 460px;
}
.c2v-upsell-box:empty {
    display: none;
}
.c2v-upsell-box .c2v-fb-upsell {
    margin-top: 0;
}

/* Nota sobre carrinho */
.c2v-fb-cart-note {
    font-size: 12px;
    color: var(--c2v-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #fafafa;
    border-radius: 2px;
}
.c2v-fb-cart-note strong {
    color: #333;
    font-weight: 700;
}

.c2v-cart-savings-row .c2v-cart-savings-value {
    color: #1a2e4c;
    font-weight: 700;
}

/* === v2.5: coluna Pix === */
.c2v-discount-table .c2v-th-pix {
    color: var(--c2v-brand);
}
.c2v-th-pix-meta {
    font-size: 10px;
    font-weight: 400;
    color: var(--c2v-text-muted);
    margin-left: 2px;
}
.c2v-discount-table .c2v-col-price-pix {
    font-weight: 700;
    color: var(--c2v-brand);
    white-space: nowrap;
}
.c2v-discount-table .c2v-col-price,
.c2v-discount-table td.c2v-col-price {
    color: var(--c2v-text-muted);
    white-space: nowrap;
    text-decoration: none !important;
}
.c2v-discount-table .c2v-col-price-pix,
.c2v-discount-table td.c2v-col-price-pix {
    text-decoration: none !important;
}
.c2v-tier-active .c2v-col-price-pix {
    color: var(--c2v-brand);
}
