/* ================= CARRINHO FLUTUANTE SOBRE A PÁGINA ================= */
.quote-sidebar.cart-floating {
    position: fixed;
    top: 96px;
    right: 20px;
    width: 370px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 112px);
    z-index: 2000;
    border: 2px solid var(--navy-dark);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(7, 19, 36, 0.34);

    /* Fechado por padrão */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.quote-sidebar.cart-floating.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Estado minimizado: fica só a barra do topo flutuando */
.quote-sidebar.cart-floating.minimized .quote-body-collapsible {
    display: none;
}

.quote-sidebar.cart-floating.minimized .quote-header {
    margin-bottom: 0;
}

.quote-dark-top {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 14px 16px;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.quote-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}

.quote-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-clear {
    color: var(--celeste-light);
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    margin-right: 4px;
}

.quote-clear:hover {
    color: #ffffff;
}

.cart-win-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cart-win-btn:hover {
    background: var(--celeste);
    border-color: var(--celeste);
}

.quote-body-collapsible {
    background: #ffffff;
}

.quote-body-collapsible .quote-items-list {
    background: var(--navy-dark);
    padding: 0 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.quote-empty-msg {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding: 16px 10px;
    background: rgba(13, 30, 51, 0.75);
    border: 1px dashed rgba(0, 180, 216, 0.3);
    border-radius: 6px;
    line-height: 1.4;
}

.quote-item {
    background: var(--navy-panel);
    border: 1px solid rgba(0, 180, 216, 0.22);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quote-item img {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 5px;
    padding: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.quote-item-info {
    flex: 1;
    min-width: 0;
}

.quote-item-info h4 {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.quote-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quote-qty-box {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

.quote-qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 22px;
    height: 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.quote-qty-btn:hover {
    background: var(--celeste);
}

.quote-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.quote-item-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--celeste-light);
}

.remove-item {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
}

.remove-item:hover {
    color: #f87171;
}

.quote-light-bottom {
    padding: 14px 16px 16px;
    background: #ffffff;
}

.cost-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.total-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
}

.total-values strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--celeste-dark);
}

.quote-custom-note {
    font-size: 11px;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.btn-whatsapp-quote {
    background: var(--celeste);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    transition: background 0.2s;
}

.btn-whatsapp-quote:hover {
    background: var(--celeste-dark);
}

@media (max-width: 600px) {
    .quote-sidebar.cart-floating {
        top: 84px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}