/* ==========================================================================
   MGR Promo Manager — estilos EXTRAS sobre o .curso-card do tema.
   Não redeclara estilos do tema; apenas adiciona badge e timer.
   ========================================================================== */

/* ------------------------------------------------------------------
   Badge de desconto / destaque (overlay na imagem do card)
   ------------------------------------------------------------------ */
.mgr-curso-card .curso-imagem {
    position: relative;
}

.mgr-badge-desconto,
.mgr-badge-destaque {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.mgr-badge-desconto {
    background: #e53935;
    color: #fff;
}

.mgr-badge-destaque {
    background: #AB7903;
    color: #fff;
    left: auto;
    right: 10px;
}

/* ------------------------------------------------------------------
   Timer regressivo
   ------------------------------------------------------------------ */
.mgr-timer-wrapper {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 15px 10px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.mgr-timer-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #666;
    margin-bottom: 6px;
}

.mgr-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.mgr-timer__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
}

.mgr-timer__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #082645;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mgr-timer__text {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    margin-top: 2px;
}

.mgr-timer__sep {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1;
}

/* ------------------------------------------------------------------
   Garante que preço antigo e preço de venda fiquem em linhas
   separadas quando ambos existem no card de promo
   ------------------------------------------------------------------ */
.mgr-curso-card .preco-antigo {
    display: block;
}

.mgr-curso-card .preco-venda {
    display: block;
}

/* ------------------------------------------------------------------
   Bloco timer + badge dentro dos cards — espaçamento lateral no wrapper.
   ------------------------------------------------------------------ */
.mgr-promo-bloco {
    padding: 8px 15px;
}

.mgr-promo-bloco .mgr-produto-promo__timer-wrap {
    border-radius: 6px;
    margin: 0 0 8px;
}

.mgr-promo-bloco .mgr-produto-promo__economia {
    margin: 0;
}

/* ==========================================================================
   Bloco de promoção na página do produto  [mgr_promo_produto]
   Harmonizado com a paleta do site: #082645 (navy), #AB7903 (gold)
   ========================================================================== */

.mgr-produto-promo {
    font-family: 'Nunito', sans-serif;
    margin-bottom: 4px;
}

/* --- Timer --- */
.mgr-produto-promo__timer-wrap {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    margin-bottom: 14px;
}

.mgr-produto-promo__timer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c0392b;
    margin-bottom: 8px;
}

.mgr-produto-timer {
    justify-content: center;
    gap: 6px;
}

.mgr-produto-timer .mgr-timer__value {
    font-size: 2rem;
    font-weight: 800;
    color: #c0392b;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: block;
}

.mgr-produto-timer .mgr-timer__text {
    font-size: 9px;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
    text-align: center;
}

.mgr-produto-timer .mgr-timer__sep {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f87171;
    margin-bottom: 16px;
    line-height: 1;
}

/* --- Preços --- */
.mgr-produto-promo__precos {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mgr-produto-promo__de {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mgr-produto-promo__label-de {
    font-size: 13px;
    color: #888;
}

.mgr-produto-promo__preco-regular {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.mgr-produto-promo__por {
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.1;
}

.mgr-produto-promo__label-por {
    font-size: 14px;
    color: #000;
}

.mgr-produto-promo__preco-venda {
    font-size: 28px;
    font-weight: 800;
    color: #082645;
    line-height: 1;
}

.mgr-produto-promo__economia {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
}
