/* ===== WRAPPER PRINCIPAL ===== */
.ml-compras-wrapper {
    font-family: "Proxima Nova",-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

/* ===== CABEÇALHO ===== */
.ml-compras-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ml-compras-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* ===== LISTA DE COMPRAS ===== */
.ml-compras-list {
    padding: 0;
}

.ml-compra-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin: 16px 20px;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
}

.ml-compra-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ml-compra-col {
    display: flex;
    flex-direction: column;
}

/* Coluna 1: Informações */
.ml-compra-col-info {
    flex: 1;
}

.ml-compra-status-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ml-compra-delivery-info {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ml-compra-order-number {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    background: #f0f0f0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ml-compra-product-line {
    margin: 0 0 2px 0 !important;
    font-size: 10px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

/* Coluna 2: Ações */
.ml-compra-col-actions {
    width: 200px;
    gap: 8px;
}

.ml-compra-action-primary, 
.ml-compra-action-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ml-compra-action-primary:hover,
.ml-compra-action-secondary:hover {
    opacity: 0.8;
}

/* Coluna 3: Imagem */
.ml-compra-col-image {
    width: 80px;
}

.ml-product-img-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.ml-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-is-top {
    border: 2px solid #ffe600;
}

.ml-top-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffe600;
    color: #333;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    padding: 2px;
    text-transform: uppercase;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .ml-compra-row {
        flex-direction: column-reverse;
        gap: 16px;
    }
    .ml-compra-col-actions {
        width: 100%;
    }
    .ml-compra-col-image {
        align-self: flex-end;
    }
}
