/**
 * Avisos de frete: barra de frete grátis, alerta de frete caro, frete por
 * unidade. Usa a fonte do tema; a cor da barra vem da tela (--bcf-bar-color).
 */
.bcf-ship-notices {
    --bcf-bar-color: #1e7a46;
}

.bcf-ship-notices:empty {
    display: none;
}

.bcf-ship-notices--blocks,
.bcf-ship-notices--bar {
    margin: 0 0 18px;
}

.bcf-ship-bar {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.bcf-ship-bar__msg {
    margin-bottom: 8px;
}

.bcf-ship-bar__track {
    position: relative;
    height: 8px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}

.bcf-ship-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bcf-bar-color);
}

.bcf-ship-bar.is-done .bcf-ship-bar__msg {
    color: var(--bcf-bar-color);
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .bcf-ship-bar__fill {
        transition: width .5s ease;
    }
}

/* Mini-carrinho: mais compacta. */
.widget_shopping_cart .bcf-ship-notices--bar,
.woocommerce-mini-cart + .bcf-ship-notices--bar,
.cart-widget-side .bcf-ship-notices--bar {
    margin: 0 0 12px;
}

.widget_shopping_cart .bcf-ship-bar,
.cart-widget-side .bcf-ship-bar {
    padding: 10px 12px;
    font-size: 13px;
}

.bcf-ship-alert {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 4px solid;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.bcf-ship-alert--warning { background: #fff8e1; border-color: #f0b400; color: #6b4f00; }
.bcf-ship-alert--info    { background: #e8f4fb; border-color: #3b8fc4; color: #0c4a6e; }
.bcf-ship-alert--success { background: #e9f6ee; border-color: #2f9e5b; color: #14532d; }
.bcf-ship-alert--error   { background: #fdecec; border-color: #d64545; color: #7f1d1d; }

.bcf-ship-per-item {
    margin: 4px 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .035);
    font-size: 13px;
    line-height: 1.45;
}

.bcf-ship-per-item-row td {
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* Oferta do cupom de desconto no frete. */
.bcf-ship-coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 12px 0;
    padding: 12px 16px;
    border: 1px dashed var(--bcf-bar-color, #1e7a46);
    border-radius: 10px;
    background: rgba(30, 122, 70, .06);
    font-size: 14px;
    line-height: 1.45;
}

.bcf-ship-coupon__msg {
    flex: 1 1 220px;
}

.bcf-ship-coupon .bcf-ship-coupon__apply {
    flex: 0 0 auto;
    margin: 0;
}

.bcf-ship-coupon-line {
    font-weight: 600;
    color: var(--bcf-bar-color, #1e7a46);
}

/* Linha "Previsão de entrega" no carrinho em blocos. */
.bcf-ship-notices .bcf-estimate--cart {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 0 12px;
    padding: 10px 14px 10px 38px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.bcf-ship-notices .bcf-estimate--cart::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 14px;
    height: 14px;
    background: currentColor;
    opacity: .7;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3V2zm12 8H5v9h14v-9z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3V2zm12 8H5v9h14v-9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bcf-ship-notices .bcf-estimate--cart .bcf-estimate__date {
    font-weight: 600;
}

.bcf-ship-notices .bcf-estimate--cart .bcf-estimate__note {
    font-size: 13px;
    opacity: .7;
}

/* Checkout em blocos: avisos dentro do resumo do pedido. */
.bcf-ship-notices--sidebar {
    margin: 0 0 12px;
}

.bcf-ship-notices--sidebar .bcf-ship-bar {
    padding: 10px 14px;
}

.bcf-ship-notices--summary .bcf-ship-per-item {
    margin: 0;
    border-radius: 0;
}

/* Painéis escuros do tema (WoodMart: mini-carrinho lateral e outros com
   "color-scheme-light", texto claro): a barra fica translúcida, no tom do
   painel, em vez de uma caixa branca com o texto claro do tema por cima. */
.color-scheme-light .bcf-ship-bar {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .2);
    color: inherit;
}

.color-scheme-light .bcf-ship-bar__track {
    background: rgba(255, 255, 255, .2);
}
