/**
 * Módulo de Checkout - Upsell Mini-Cart e Agrupamento por Fornecedor
 *
 * @package Treinacom_Core\Modules\Checkout\Assets\Css\Upsell
 */

/* ==========================================================================
   2. MINI-CART / CARRINHO UPSELL
   ========================================================================== */

.tc-mini-cart-upsell-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 8px 0;
    padding: 0 4px;
}

.tc-mc-upsell-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tc-mc-upsell-card.tc-free-shipping {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.08);
}

.tc-mc-upsell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.tc-mc-badge-free {
    font-weight: 800;
    color: #16a34a;
    font-size: 13px;
}

.tc-mc-sup-name {
    font-weight: 700;
    color: #0f172a;
}

.tc-mc-gap-text {
    font-size: 13px;
    color: #0369a1;
    font-weight: 500;
}

.tc-mc-gap-text strong {
    font-weight: 800;
    color: #0284c7;
}

.tc-mc-progress-bar {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.tc-mc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #10b981);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.tc-mc-upsell-card.tc-free-shipping .tc-mc-progress-fill {
    background: #16a34a;
}

.tc-mc-upsell-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
}

.tc-mc-upsell-action .tc-upsell-open-btn {
    font-size: 12px;
    padding: 2px 8px;
}

/* ==========================================================================
   Itens de Produtos Agrupados por Fornecedor (Mini-Cart & Checkout)
   ========================================================================== */

.tc-checkout-suppliers-wrap {
    margin: 0 0 16px 0 !important;
    gap: 12px !important;
}

.tc-mc-upsell-card .sc-supplier-cart-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
}

.tc-mc-upsell-card .sc-supplier-cart-items li:last-child {
    border-bottom: none !important;
    padding-bottom: 2px !important;
}

.tc-mc-upsell-card .sc-cart-item,
.tc-mc-upsell-card .sc-mini-cart-item {
    transition: background 0.15s ease;
}

.tc-mc-upsell-card .sc-cart-item:hover,
.tc-mc-upsell-card .sc-mini-cart-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

/* ==========================================================================
   3. SELETOR DE ENVIOS INLINE TRIGGER
   ========================================================================== */

.tc-upsell-shipping-trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 6px 14px;
    padding: 6px 12px;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 6px;
    font-size: 13.5px;
    color: #166534;
    line-height: 1.35;
}

.tc-upsell-bulb {
    font-size: 1.15em;
}

.tc-upsell-text {
    flex: 1;
    min-width: 180px;
}

.tc-upsell-open-btn {
    background: #16a34a;
    color: #ffffff !important;
    border: none;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.tc-upsell-open-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}
